chore: align applets with local stack

This commit is contained in:
Lionel DARNIS 2026-05-23 20:49:24 +02:00
parent c117f172cb
commit b4fbfe168a
35 changed files with 96 additions and 71 deletions

View file

@ -186,6 +186,7 @@ impl CosmicBatteryApplet {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
enum Message {
TogglePopup,
CloseRequested(window::Id),
@ -525,7 +526,7 @@ impl cosmic::Application for CosmicBatteryApplet {
Task::none()
}
fn view(&self) -> Element<Message> {
fn view(&self) -> Element<'_, Message> {
let is_horizontal = match self.core.applet.anchor {
PanelAnchor::Top | PanelAnchor::Bottom => true,
PanelAnchor::Left | PanelAnchor::Right => false,