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

@ -136,7 +136,7 @@ impl cosmic::Application for IcedWorkspacesApplet {
PanelAnchor::Top | PanelAnchor::Bottom
);
let buttons = self.workspaces.iter().filter_map(|w| {
let content = text(w.0.clone()).font(FONT_BOLD).size(16);
let content = self.core.applet.text(w.0.clone()).font(FONT_BOLD);
let content = row!(
content,