cleanup
This commit is contained in:
parent
a3525ef56e
commit
b0ae76ce01
3 changed files with 3 additions and 4 deletions
2
iced
2
iced
|
|
@ -1 +1 @@
|
|||
Subproject commit 07f666981d2d90cf7978f3fd90c0a9dfe22e1f0e
|
||||
Subproject commit 55f6d5c10e0328a04ce584e454de1b831bebe011
|
||||
|
|
@ -108,7 +108,7 @@ impl Context {
|
|||
#[must_use]
|
||||
pub fn suggested_size(&self, is_symbolic: bool) -> (u16, u16) {
|
||||
match &self.size {
|
||||
Size::PanelSize(ref size) => {
|
||||
Size::PanelSize(size) => {
|
||||
let s = size.get_applet_icon_size(is_symbolic) as u16;
|
||||
(s, s)
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@ impl Context {
|
|||
#[must_use]
|
||||
pub fn suggested_padding(&self, is_symbolic: bool) -> u16 {
|
||||
match &self.size {
|
||||
Size::PanelSize(ref size) => size.get_applet_padding(is_symbolic),
|
||||
Size::PanelSize(size) => size.get_applet_padding(is_symbolic),
|
||||
Size::Hardcoded(_) => 8,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -536,7 +536,6 @@ pub fn update<
|
|||
let on_close = surface::action::destroy_popup(id);
|
||||
let on_surface_action_clone = on_surface_action.clone();
|
||||
let translation = layout.virtual_offset();
|
||||
dbg!(translation);
|
||||
let get_popup_action = surface::action::simple_popup::<
|
||||
AppMessage,
|
||||
Box<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue