chore: update dependencies

Also removes unused dependencies from workspace members.
This commit is contained in:
Vukašin Vojinović 2025-09-10 12:43:40 +02:00 committed by Michael Murphy
parent 4224929098
commit c54bf8e189
10 changed files with 138 additions and 130 deletions

View file

@ -6,8 +6,7 @@ license = "GPL-3.0-only"
[dependencies]
cosmic-applets-config.workspace = true
cosmic-config.workspace = true
chrono = { version = "0.4.41", features = ["clock"] }
chrono = { version = "0.4.42", features = ["clock"] }
chrono-tz = "0.10"
i18n-embed-fl.workspace = true
i18n-embed.workspace = true
@ -18,7 +17,6 @@ tracing-log.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
icu = { version = "2.0.0", features = ["compiled_data"] }
serde.workspace = true
zbus.workspace = true
timedate-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
logind-zbus = "5.3.2"

View file

@ -5,7 +5,7 @@ use chrono::{Datelike, Timelike};
use cosmic::iced_futures::stream;
use cosmic::widget::Id;
use cosmic::{
Element, Task, app,
Apply, Element, Task, app,
applet::{cosmic_panel_config::PanelAnchor, menu_button, padded_control},
cctk::sctk::reexports::calloop,
cosmic_theme::Spacing,
@ -133,10 +133,9 @@ impl Window {
let date = day_iter.next().unwrap();
let datetime = self.create_datetime(&date);
calendar = calendar.push(
text(weekday.format(&datetime).to_string())
.size(12)
.width(Length::Fixed(44.0))
.align_x(Alignment::Center),
text::caption(weekday.format(&datetime).to_string())
.apply(container)
.center_x(Length::Fixed(44.0)),
);
first_day_of_week = first_day_of_week.succ();
}
@ -716,10 +715,14 @@ fn date_button(day: u32, is_month: bool, is_day: bool, is_today: bool) -> Button
button::ButtonClass::Text
};
let button = button::custom(text::body(format!("{day}")).center())
.class(style)
.height(Length::Fixed(44.0))
.width(Length::Fixed(44.0));
let button = button::custom(
text::body(format!("{day}"))
.apply(container)
.center(Length::Fill),
)
.class(style)
.height(Length::Fixed(44.0))
.width(Length::Fixed(44.0));
if is_month {
button.on_press(Message::SelectDay(day))