Skip to content

Commit fac607a

Browse files
committed
improv: Use GtkHeaderBar
1 parent f6e636e commit fac607a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/application/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,19 @@ impl ApplicationImpl for ConfiguratorAppInner {
126126
eprintln!("Focusing current window");
127127
window.present();
128128
} else {
129+
let header_bar = cascade! {
130+
gtk::HeaderBar::new();
131+
..set_title(Some("System76 Keyboard Configurator"));
132+
..set_show_close_button(true);
133+
};
134+
135+
129136
let window = cascade! {
130137
gtk::ApplicationWindow::new(app);
131-
..set_title("Keyboard Layout");
138+
..set_title("System76 Keyboard Configurator");
132139
..set_position(gtk::WindowPosition::Center);
133140
..set_default_size(1024, 768);
141+
..set_titlebar(Some(&header_bar));
134142
..add(&self.scrolled_window);
135143
};
136144

0 commit comments

Comments
 (0)