chore: updates after iced-rebase

This commit is contained in:
Ashley Wulber 2026-03-31 16:34:59 -04:00 committed by GitHub
parent bd0d180482
commit 71d9d6d5bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1786 additions and 2396 deletions

View file

@ -16,7 +16,7 @@ use cosmic::{
window,
},
surface, theme,
widget::{Space, button, divider, icon, text},
widget::{Space, button, divider, icon, space, text},
};
use std::sync::LazyLock;
@ -227,7 +227,7 @@ impl cosmic::Application for Power {
row![
text_icon("system-lock-screen-symbolic", 24),
text::body(fl!("lock-screen")),
Space::with_width(Length::Fill),
space::horizontal().width(Length::Fill),
text::body(fl!("lock-screen-shortcut")),
]
.align_y(Alignment::Center)
@ -238,7 +238,7 @@ impl cosmic::Application for Power {
row![
text_icon("system-log-out-symbolic", 24),
text::body(fl!("log-out")),
Space::with_width(Length::Fill),
space::horizontal().width(Length::Fill),
text::body(fl!("log-out-shortcut")),
]
.align_y(Alignment::Center)
@ -285,7 +285,7 @@ impl cosmic::Application for Power {
activation_token_subscription(0).map(Message::Token)
}
fn style(&self) -> Option<cosmic::iced_runtime::Appearance> {
fn style(&self) -> Option<iced::theme::Style> {
Some(cosmic::applet::style())
}
}