mirror of
https://gitlab.gnome.org/World/tootle
synced 2025-02-08 15:48:41 +01: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{
|
.mode .toggle{
|
||||||
border-radius:0px;
|
border-radius:0px;
|
||||||
border-top:none;
|
border-top:none;
|
||||||
|
@ -63,6 +63,7 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||||||
button_mode.show ();
|
button_mode.show ();
|
||||||
|
|
||||||
header = new Gtk.HeaderBar ();
|
header = new Gtk.HeaderBar ();
|
||||||
|
header.get_style_context ().add_class ("compact");
|
||||||
header.show_close_button = true;
|
header.show_close_button = true;
|
||||||
header.title = "Tootle";
|
header.title = "Tootle";
|
||||||
header.custom_title = button_mode;
|
header.custom_title = button_mode;
|
||||||
@ -71,7 +72,6 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||||||
header.pack_end (button_accounts);
|
header.pack_end (button_accounts);
|
||||||
header.pack_end (spinner);
|
header.pack_end (spinner);
|
||||||
header.show_all ();
|
header.show_all ();
|
||||||
set_titlebar (header);
|
|
||||||
|
|
||||||
grid = new Gtk.Grid ();
|
grid = new Gtk.Grid ();
|
||||||
grid.attach (primary_stack, 0, 0, 1, 1);
|
grid.attach (primary_stack, 0, 0, 1, 1);
|
||||||
@ -96,6 +96,7 @@ public class Tootle.MainWindow: Gtk.Window {
|
|||||||
icon_name = "com.github.bleakgrey.tootle";
|
icon_name = "com.github.bleakgrey.tootle";
|
||||||
resizable = true;
|
resizable = true;
|
||||||
window_position = WindowPosition.CENTER;
|
window_position = WindowPosition.CENTER;
|
||||||
|
set_titlebar (header);
|
||||||
update_header ();
|
update_header ();
|
||||||
|
|
||||||
app.toast.connect (on_toast);
|
app.toast.connect (on_toast);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user