feat: applet text scaling based on panel size

This commit is contained in:
Ashley Wulber 2024-05-15 16:54:52 -04:00 committed by Michael Murphy
parent e57a832b2f
commit afff0793aa
4 changed files with 75 additions and 62 deletions

View file

@ -103,7 +103,7 @@ impl cosmic::Application for Button {
)
} else {
let content = row!(
text(&self.desktop.name).size(14.0),
self.core.applet.text(&self.desktop.name),
vertical_space(Length::Fixed(
(self.core.applet.suggested_size(true).1
+ 2 * self.core.applet.suggested_padding(true)) as f32