fix(status-area): force size to match symbolic icons
This commit is contained in:
parent
9f51e12fc9
commit
73ae871088
1 changed files with 4 additions and 3 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue