cargo fmt

This commit is contained in:
Ashley Wulber 2025-02-28 12:42:59 -05:00
parent 76930d8624
commit e9e01af77d
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
17 changed files with 27 additions and 73 deletions

View file

@ -25,12 +25,7 @@ use cosmic_panel_config::{CosmicPanelBackground, PanelAnchor, PanelSize};
use iced_core::{Layout, Padding, Shadow};
use iced_widget::runtime::platform_specific::wayland::popup::{SctkPopupSettings, SctkPositioner};
use sctk::reexports::protocols::xdg::shell::client::xdg_positioner::{Anchor, Gravity};
use std::{
borrow::Cow,
num::NonZeroU32,
rc::Rc,
sync::LazyLock,
};
use std::{borrow::Cow, num::NonZeroU32, rc::Rc, sync::LazyLock};
use tracing::info;
use crate::app::cosmic;
@ -166,11 +161,7 @@ impl Context {
let height = f32::from(height) + applet_padding as f32 * 2.;
let mut settings = crate::app::Settings::default()
.size(iced_core::Size::new(width, height))
.size_limits(
Limits::NONE
.min_height(height)
.min_width(width),
)
.size_limits(Limits::NONE.min_height(height).min_width(width))
.resizable(None)
.default_text_size(14.0)
.default_font(crate::font::default())