fix(power): use text button for restart in power off dialog

This commit is contained in:
Vukašin Vojinović 2024-08-01 00:54:22 +02:00 committed by Ashley Wulber
parent df46c8d5b8
commit cfaab9b0dc

View file

@ -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)),
);
}