Update sctk, libcosmic, cosmic-client-toolkit

This commit is contained in:
Ian Douglas Scott 2023-03-01 10:06:14 -08:00 • committed by Ashley Wulber
parent 4ce5a8b8ac
commit 6d7727a5d0
15 changed files with 58 additions and 269 deletions

View file

@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
once_cell = "1.16.0"
libcosmic = { git = "https://github.com/pop-os/libcosmic/", branch = "master", default-features = false, features = ["tokio", "wayland", "applet"] }
sctk = { package = "smithay-client-toolkit", git = "https://github.com/Smithay/client-toolkit", rev = "3776d4a" }
sctk = { package = "smithay-client-toolkit", git = "https://github.com/Smithay/client-toolkit", rev = "69bffe5" }
futures = "0.3"
zbus = { version = "3.5", default-features = false, features = ["tokio"] }
log = "0.4"

View file

@ -20,7 +20,7 @@ use cosmic::iced::{
};
use cosmic::iced_native::layout::Limits;
use cosmic::iced_style::application::{self, Appearance};
use cosmic::iced_style::{svg, Color};
use cosmic::iced_style::Color;
use cosmic::theme::Svg;
use cosmic::widget::{button, divider, icon, toggler};
use cosmic::{Element, Theme};
@ -243,11 +243,7 @@ impl Application for CosmicBatteryApplet {
column![
row![
icon(&*self.icon_name, 24)
.style(Svg::Custom(|theme| {
svg::Appearance {
color: Some(theme.palette().text),
}
}))
.style(Svg::Symbolic)
.width(Length::Units(24))
.height(Length::Units(24)),
column![name, description]
@ -328,11 +324,7 @@ impl Application for CosmicBatteryApplet {
.padding([0, 12]),
row![
icon("display-brightness-symbolic", 24)
.style(Svg::Custom(|theme| {
svg::Appearance {
color: Some(theme.palette().text),
}
}))
.style(Svg::Symbolic)
.width(Length::Units(24))
.height(Length::Units(24)),
slider(
@ -348,11 +340,7 @@ impl Application for CosmicBatteryApplet {
.spacing(12),
row![
icon("keyboard-brightness-symbolic", 24)
.style(Svg::Custom(|theme| {
svg::Appearance {
color: Some(theme.palette().text),
}
}))
.style(Svg::Symbolic)
.width(Length::Units(24))
.height(Length::Units(24)),
slider(