applet overlap

chore: mpris dep

fix: dock buttons

improv: battery and audio improvements

feat: overlapping padding

fix: input source text button

fix: apply panel spacing to app tray

chore: update libcosmic

fix: spacing and padding

fix(minimize): hide when empty
This commit is contained in:
Ashley Wulber 2025-10-06 16:35:20 -04:00 committed by Ashley Wulber
parent b026db6f7c
commit 836c0e378b
26 changed files with 627 additions and 576 deletions

View file

@ -19,6 +19,7 @@ Keywords=COSMIC;Iced;
Icon=com.system76.CosmicAppletTime-symbolic
NoDisplay=true
X-CosmicApplet=true
X-CosmicShrinkable=true
X-HostWaylandDisplay=true
X-CosmicHoverPopup=Auto
# No shrink priority, as this applet is always visible when configured

View file

@ -226,7 +226,8 @@ impl Window {
date_time_col,
horizontal_space().width(Length::Fixed(
(self.core.applet.suggested_size(true).0
+ 2 * self.core.applet.suggested_padding(true)) as f32
+ 2 * self.core.applet.suggested_padding(true).1)
as f32
))
)
.align_x(Alignment::Center),
@ -282,7 +283,8 @@ impl Window {
self.core.applet.text(formatted_date),
container(vertical_space().height(Length::Fixed(
(self.core.applet.suggested_size(true).1
+ 2 * self.core.applet.suggested_padding(true)) as f32
+ 2 * self.core.applet.suggested_padding(true).1)
as f32
)))
)
.align_y(Alignment::Center),
@ -662,9 +664,9 @@ impl cosmic::Application for Window {
self.vertical_layout()
})
.padding(if horizontal {
[0, self.core.applet.suggested_padding(true)]
[0, self.core.applet.suggested_padding(true).0]
} else {
[self.core.applet.suggested_padding(true), 0]
[self.core.applet.suggested_padding(true).0, 0]
})
.on_press_down(Message::TogglePopup)
.class(cosmic::theme::Button::AppletIcon);