chore: align applets with local stack

This commit is contained in:
Lionel DARNIS 2026-05-23 20:49:24 +02:00
parent bcc8072a3b
commit 82e00a3e16
37 changed files with 292 additions and 440 deletions

View file

@ -16,9 +16,8 @@ use cosmic::{
window,
},
surface, theme,
widget::{Space, button, divider, icon, space, text},
widget::{button, divider, icon, space, text},
};
use std::sync::LazyLock;
use logind_zbus::{
manager::ManagerProxy,
@ -35,9 +34,6 @@ pub mod session_manager;
use crate::{cosmic_session::CosmicSessionProxy, session_manager::SessionManagerProxy};
static SUBSURFACE_ID: LazyLock<cosmic::widget::Id> =
LazyLock::new(|| cosmic::widget::Id::new("subsurface"));
pub fn run() -> cosmic::iced::Result {
localize::localize();
@ -49,7 +45,6 @@ struct Power {
icon_name: String,
popup: Option<window::Id>,
token_tx: Option<calloop::channel::Sender<TokenRequest>>,
subsurface_id: window::Id,
}
#[derive(Debug, Clone, Copy)]
@ -75,6 +70,7 @@ impl PowerAction {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
enum Message {
Action(PowerAction),
TogglePopup,
@ -104,7 +100,6 @@ impl cosmic::Application for Power {
Self {
core,
icon_name: "system-shutdown-symbolic".to_string(),
subsurface_id: window::Id::unique(),
token_tx: None,
popup: Option::default(),
},