feat(battery): add settings button

This commit is contained in:
Vukašin Vojinović 2024-07-09 15:19:00 +02:00 committed by Michael Murphy
parent 0640e88412
commit 46e1fdd9f0

View file

@ -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