From 453cc6588e6d849318e704e4626913dc8894e243 Mon Sep 17 00:00:00 2001 From: Eduardo Flores Date: Mon, 18 Sep 2023 01:37:57 -0700 Subject: [PATCH] fix(applet): styling improvements --- src/applet/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/applet/mod.rs b/src/applet/mod.rs index 277b32cd..ace7a214 100644 --- a/src/applet/mod.rs +++ b/src/applet/mod.rs @@ -28,7 +28,7 @@ pub fn button_theme() -> Button { Button::Custom { active: Box::new(|active, t| widget::button::Appearance { border_radius: 0.0.into(), - ..t.active(active, &Button::Text) + ..t.active(active, &Button::Standard) }), hovered: Box::new(|hovered, t| widget::button::Appearance { border_radius: 0.0.into(), @@ -40,7 +40,7 @@ pub fn button_theme() -> Button { }), disabled: Box::new(|t| widget::button::Appearance { border_radius: 0.0.into(), - ..t.disabled(&Button::Text) + ..t.disabled(&Button::Standard) }), } } @@ -134,7 +134,7 @@ impl Context { ) -> crate::widget::Button<'a, Message, Renderer> { crate::widget::button( widget::icon::from_name(icon_name) - .prefer_svg(true) + .symbolic(true) .size(self.suggested_size().0), ) .padding(8)