diff --git a/examples/cosmic/Cargo.toml b/examples/cosmic/Cargo.toml index 74b7e30..67e1978 100644 --- a/examples/cosmic/Cargo.toml +++ b/examples/cosmic/Cargo.toml @@ -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"] \ No newline at end of file diff --git a/examples/cosmic/src/window.rs b/examples/cosmic/src/window.rs index 4c8ccb6..023dadf 100644 --- a/examples/cosmic/src/window.rs +++ b/examples/cosmic/src/window.rs @@ -271,7 +271,7 @@ impl Window { sub_page: impl SubPage, ) -> Element { 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) diff --git a/examples/design-demo/Cargo.toml b/examples/design-demo/Cargo.toml index 5d4f9e2..021ee9a 100644 --- a/examples/design-demo/Cargo.toml +++ b/examples/design-demo/Cargo.toml @@ -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"]