feat: various improvements to window commands and event handling
This commit is contained in:
parent
6e30394270
commit
96c8527573
2 changed files with 8 additions and 7 deletions
|
|
@ -2,10 +2,11 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use cosmic::{
|
||||
iced::widget::{
|
||||
iced_native::window,
|
||||
iced::{widget::{
|
||||
column, container, horizontal_space, pick_list, progress_bar, radio, row, slider,
|
||||
},
|
||||
iced::{self, wayland::SurfaceIdWrapper, Alignment, Application, Command, Length},
|
||||
}, wayland::window::{start_drag_window, toggle_maximize}},
|
||||
iced::{self, wayland::{SurfaceIdWrapper, window::set_mode_window}, Alignment, Application, Command, Length},
|
||||
iced_lazy::responsive,
|
||||
theme::{self, Theme},
|
||||
widget::{
|
||||
|
|
@ -108,9 +109,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 => todo!(),
|
||||
Message::Minimize => todo!(),
|
||||
Message::Maximize => todo!(),
|
||||
Message::Drag => return start_drag_window(window::Id::new(0)),
|
||||
Message::Minimize => return set_mode_window(window::Id::new(0), window::Mode::Hidden),
|
||||
Message::Maximize => return toggle_maximize(window::Id::new(0)),
|
||||
Message::RowSelected(row) => println!("Selected row {row}"),
|
||||
Message::InputChanged => {}
|
||||
Message::Rectangle(r) => match r {
|
||||
|
|
|
|||
2
iced
2
iced
|
|
@ -1 +1 @@
|
|||
Subproject commit 4c92b828a3866d524d31738dd68e5dd84f208d0d
|
||||
Subproject commit 29ab760cf086f6d53ca678923049094887928e42
|
||||
Loading…
Add table
Add a link
Reference in a new issue