feat: apply overlay to headerbar when it loses focus

This commit is contained in:
Ashley Wulber 2024-01-11 15:16:21 -05:00 committed by Ashley Wulber
parent 9fb3d874e1
commit 8157ed5c63
5 changed files with 245 additions and 15 deletions

View file

@ -647,6 +647,7 @@ impl<App: Application> ApplicationExt for App {
.push_maybe(if core.window.show_headerbar {
Some({
let mut header = crate::widget::header_bar()
.window_id(window::Id::MAIN)
.title(&core.window.header_title)
.on_drag(Message::Cosmic(cosmic::Message::Drag))
.on_close(Message::Cosmic(cosmic::Message::Close));