chore(examples): cosmic-time update
This commit is contained in:
parent
7f3013e509
commit
ef23cb328f
3 changed files with 10 additions and 7 deletions
|
|
@ -13,4 +13,9 @@ once_cell = "1.18"
|
||||||
slotmap = "1.0.6"
|
slotmap = "1.0.6"
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
log = "0.4.17"
|
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"]
|
||||||
|
|
@ -271,7 +271,7 @@ impl Window {
|
||||||
sub_page: impl SubPage,
|
sub_page: impl SubPage,
|
||||||
) -> Element<Message> {
|
) -> Element<Message> {
|
||||||
iced::widget::Button::new(
|
iced::widget::Button::new(
|
||||||
container(
|
list::container(
|
||||||
settings::item_row(vec![
|
settings::item_row(vec![
|
||||||
icon::from_name(sub_page.icon_name()).size(20).icon().into(),
|
icon::from_name(sub_page.icon_name()).size(20).icon().into(),
|
||||||
column!(
|
column!(
|
||||||
|
|
@ -285,8 +285,7 @@ impl Window {
|
||||||
])
|
])
|
||||||
.spacing(16),
|
.spacing(16),
|
||||||
)
|
)
|
||||||
.padding([20, 24])
|
.padding([20, 24]),
|
||||||
.style(theme::Container::custom(list::column::style)),
|
|
||||||
)
|
)
|
||||||
.padding(0)
|
.padding(0)
|
||||||
.style(theme::iced::Button::Transparent)
|
.style(theme::iced::Button::Transparent)
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,7 @@ default-features = false
|
||||||
features = ["debug", "winit", "tokio"]
|
features = ["debug", "winit", "tokio"]
|
||||||
|
|
||||||
[dependencies.cosmic-time]
|
[dependencies.cosmic-time]
|
||||||
# git = "https://github.com/pop-os/cosmic-time"
|
git = "https://github.com/pop-os/cosmic-time"
|
||||||
# branch = "icon-color"
|
branch = "icon-color"
|
||||||
path = "../../../cosmic-time"
|
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["libcosmic", "once_cell"]
|
features = ["libcosmic", "once_cell"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue