feat: apply overlay to headerbar when it loses focus
This commit is contained in:
parent
9fb3d874e1
commit
8157ed5c63
5 changed files with 245 additions and 15 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue