chore(examples): cosmic-time update

This commit is contained in:
Michael Aaron Murphy 2023-09-13 16:39:44 +02:00 committed by Michael Murphy
parent 7f3013e509
commit ef23cb328f
3 changed files with 10 additions and 7 deletions

View file

@ -13,4 +13,9 @@ once_cell = "1.18"
slotmap = "1.0.6"
env_logger = "0.10"
log = "0.4.17"
cosmic-time = { git = "https://github.com/pop-os/cosmic-time", branch="icon-color", default-features = false, features = ["libcosmic", "once_cell"] }
[dependencies.cosmic-time]
git = "https://github.com/pop-os/cosmic-time"
branch = "icon-color"
default-features = false
features = ["libcosmic", "once_cell"]

View file

@ -271,7 +271,7 @@ impl Window {
sub_page: impl SubPage,
) -> Element<Message> {
iced::widget::Button::new(
container(
list::container(
settings::item_row(vec![
icon::from_name(sub_page.icon_name()).size(20).icon().into(),
column!(
@ -285,8 +285,7 @@ impl Window {
])
.spacing(16),
)
.padding([20, 24])
.style(theme::Container::custom(list::column::style)),
.padding([20, 24]),
)
.padding(0)
.style(theme::iced::Button::Transparent)

View file

@ -14,8 +14,7 @@ default-features = false
features = ["debug", "winit", "tokio"]
[dependencies.cosmic-time]
# git = "https://github.com/pop-os/cosmic-time"
# branch = "icon-color"
path = "../../../cosmic-time"
git = "https://github.com/pop-os/cosmic-time"
branch = "icon-color"
default-features = false
features = ["libcosmic", "once_cell"]