From 46e1fdd9f046ebb039d857db70179c0f1f601f6e 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: Tue, 9 Jul 2024 15:19:00 +0200 Subject: [PATCH] feat(battery): add settings button --- cosmic-applet-battery/src/app.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cosmic-applet-battery/src/app.rs b/cosmic-applet-battery/src/app.rs index 61f8825b..51aa7f0f 100644 --- a/cosmic-applet-battery/src/app.rs +++ b/cosmic-applet-battery/src/app.rs @@ -686,6 +686,18 @@ impl cosmic::Application for CosmicBatteryApplet { ); } } + content.push( + menu_button( + row![ + text(fl!("power-settings")) + .size(14) + .width(Length::Fill) + .horizontal_alignment(Horizontal::Left), + ] + ) + .on_press(Message::OpenSettings) + .into(), + ); self.core .applet