fix(applet): fixes for recent updates
This commit is contained in:
parent
0aa518984e
commit
cb682be3c8
2 changed files with 2 additions and 3 deletions
|
|
@ -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