depend on iced_sctk + cosmic-design-system changes

This commit is contained in:
Ashley Wulber 2022-11-09 21:33:23 +01:00
parent 702ea033af
commit 5331cfb61b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 11 additions and 10 deletions

View file

@ -22,38 +22,38 @@ git = "https://github.com/pop-os/cosmic-theme.git"
[dependencies.iced]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced"
features = ["image", "svg"]
[dependencies.iced_core]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/core"
[dependencies.iced_lazy]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/lazy"
[dependencies.iced_native]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/native"
[dependencies.iced_style]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/style"
[dependencies.iced_winit]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/winit"
[dependencies.iced_wgpu]
git = "https://github.com/pop-os/iced.git"
branch = "cosmic-design-system"
branch = "sctk-cosmic"
# path = "../iced/wgpu"
[workspace]

View file

@ -7,6 +7,7 @@ use cosmic::{
iced::{self, Alignment, Application, Color, Command, Length},
iced_lazy::responsive,
iced_winit::window::{drag, maximize, minimize},
iced_native::window,
list_view, list_view_item, list_view_row, list_view_section, scrollable,
theme::{self, Theme},
widget::{button, header_bar, list_box, list_row, list_view::*, toggler},
@ -98,9 +99,9 @@ impl Application for Window {
Message::PickListSelected(value) => self.pick_list_selected = Some(value),
Message::Close => self.exit = true,
Message::ToggleSidebar => self.sidebar_toggled = !self.sidebar_toggled,
Message::Drag => return drag(),
Message::Minimize => return minimize(),
Message::Maximize => return maximize(),
Message::Drag => return drag(window::Id::new(0)),
Message::Minimize => return minimize(window::Id::new(0)),
Message::Maximize => return maximize(window::Id::new(0)),
Message::RowSelected(row) => println!("Selected row {row}"),
}