chore: update applet icon sizes
This commit is contained in:
parent
08a334fc13
commit
8bf340aa8e
8 changed files with 297 additions and 286 deletions
|
|
@ -49,7 +49,8 @@ impl App {
|
|||
}
|
||||
|
||||
fn resize_window(&self) -> Command<Msg> {
|
||||
let icon_size = self.core.applet.suggested_size().0 as u32 + APPLET_PADDING * 2;
|
||||
let icon_size = self.core.applet.suggested_size(true).0 as u32
|
||||
+ self.core.applet.suggested_padding(true) as u32 * 2;
|
||||
let n = self.menus.len() as u32;
|
||||
resize_window(window::Id::MAIN, 1.max(icon_size * n), icon_size)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue