From cfaab9b0dc6d01be8b1a771601d45700e336335a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:54:22 +0200 Subject: [PATCH] fix(power): use text button for restart in power off dialog --- cosmic-applet-power/src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cosmic-applet-power/src/lib.rs b/cosmic-applet-power/src/lib.rs index d10988fb..eee15ddf 100644 --- a/cosmic-applet-power/src/lib.rs +++ b/cosmic-applet-power/src/lib.rs @@ -354,14 +354,7 @@ impl cosmic::Application for Power { if matches!(power_action, PowerAction::Shutdown) { dialog = dialog.tertiary_action( - button(min_width_and_height( - text(fl!("restart")).size(14).into(), - Length::Shrink, - 32.0, - )) - .padding([0, cosmic_theme.space_s()]) - .style(theme::Button::Link) - .on_press(Message::Action(PowerAction::Restart)), + button::text(fl!("restart")).on_press(Message::Action(PowerAction::Restart)), ); }