feat: applet text scaling based on panel size
This commit is contained in:
parent
e57a832b2f
commit
afff0793aa
4 changed files with 75 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue