feat(app): add show_close for toggling close button in header bar

This commit is contained in:
Jeremy Soller 2024-08-26 09:35:41 -06:00 committed by Michael Murphy
parent 23bb4a122f
commit 00f0699042
2 changed files with 6 additions and 1 deletions

View file

@ -36,6 +36,7 @@ pub struct Window {
pub show_context: bool,
pub show_headerbar: bool,
pub show_window_menu: bool,
pub show_close: bool,
pub show_maximize: bool,
pub show_minimize: bool,
height: u32,
@ -128,6 +129,7 @@ impl Default for Core {
sharp_corners: false,
show_context: false,
show_headerbar: true,
show_close: true,
show_maximize: true,
show_minimize: true,
show_window_menu: false,