fix(status-area): force size to match symbolic icons

This commit is contained in:
Ashley Wulber 2024-04-30 16:52:25 -04:00 committed by Ashley Wulber
parent 9f51e12fc9
commit 73ae871088

View file

@ -173,9 +173,10 @@ impl cosmic::Application for App {
fn view(&self) -> cosmic::Element<'_, Msg> { fn view(&self) -> cosmic::Element<'_, Msg> {
let children = self.menus.iter().map(|(id, menu)| { let children = self.menus.iter().map(|(id, menu)| {
match menu.icon_pixmap() { match menu.icon_pixmap() {
Some(icon) if menu.icon_name() == "" => { Some(icon) if menu.icon_name() == "" => self
self.core.applet.icon_button_from_handle(icon.clone()) .core
} .applet
.icon_button_from_handle(icon.clone().symbolic(true)),
_ => self.core.applet.icon_button(menu.icon_name()), _ => self.core.applet.icon_button(menu.icon_name()),
} }
.on_press(Msg::TogglePopup(*id)) .on_press(Msg::TogglePopup(*id))