mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-28 13:43:00 +00:00
Make HeaderBar compact again
This commit is contained in:
parent
534ff38fed
commit
21e0089cf8
|
@ -1,3 +1,7 @@
|
|||
.titlebar.compact {
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.mode .toggle{
|
||||
border-radius:0px;
|
||||
border-top:none;
|
||||
|
|
|
@ -63,6 +63,7 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||
button_mode.show ();
|
||||
|
||||
header = new Gtk.HeaderBar ();
|
||||
header.get_style_context ().add_class ("compact");
|
||||
header.show_close_button = true;
|
||||
header.title = "Tootle";
|
||||
header.custom_title = button_mode;
|
||||
|
@ -71,7 +72,6 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||
header.pack_end (button_accounts);
|
||||
header.pack_end (spinner);
|
||||
header.show_all ();
|
||||
set_titlebar (header);
|
||||
|
||||
grid = new Gtk.Grid ();
|
||||
grid.attach (primary_stack, 0, 0, 1, 1);
|
||||
|
@ -96,6 +96,7 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||
icon_name = "com.github.bleakgrey.tootle";
|
||||
resizable = true;
|
||||
window_position = WindowPosition.CENTER;
|
||||
set_titlebar (header);
|
||||
update_header ();
|
||||
|
||||
app.toast.connect (on_toast);
|
||||
|
|
Loading…
Reference in a new issue