Skip to content

Commit b8d5ae9

Browse files
committed
improv: Use GtkHeaderBar
1 parent 94db1f1 commit b8d5ae9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/application/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@ fn main_keyboard(app: &gtk::Application, keyboard: Rc<Keyboard>) {
2525
..add(&vbox);
2626
};
2727

28+
let header_bar = cascade! {
29+
gtk::HeaderBar::new();
30+
..set_title(Some("System76 Keyboard Configurator"));
31+
..set_show_close_button(true);
32+
};
33+
2834
let window = cascade! {
2935
gtk::ApplicationWindow::new(app);
30-
..set_title("Keyboard Layout");
36+
..set_title("System76 Keyboard Configurator");
3137
..set_border_width(10);
3238
..set_position(gtk::WindowPosition::Center);
3339
..set_default_size(1024, 768);
40+
..set_titlebar(Some(&header_bar));
3441
..add(&scrolled_window);
3542
};
3643

0 commit comments

Comments
 (0)