feat(headerbar): double click to maximize

This commit is contained in:
leb-kuchen 2024-07-23 11:58:55 +02:00 committed by GitHub
parent 3d22fb8fe2
commit 8e67f3ce1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View file

@ -708,7 +708,8 @@ impl<App: Application> ApplicationExt for App {
.title(&core.window.header_title)
.on_drag(Message::Cosmic(cosmic::Message::Drag))
.on_close(Message::Cosmic(cosmic::Message::Close))
.on_right_click(Message::Cosmic(cosmic::Message::ShowWindowMenu));
.on_right_click(Message::Cosmic(cosmic::Message::ShowWindowMenu))
.on_double_click(Message::Cosmic(cosmic::Message::Maximize));
if self.nav_model().is_some() {
let toggle = crate::widget::nav_bar_toggle()