@@ -26,7 +26,6 @@ public class Sequeler.Layouts.HeaderBar : Gtk.HeaderBar {
2626 private Gtk . Button new_db_button;
2727 private Gtk . Button delete_db_button;
2828 private Gtk . Button edit_db_button;
29- private Granite . ModeSwitch mode_switch;
3029 private Gtk . Popover menu_popover;
3130
3231 public bool logged_out { get ; set ; }
@@ -85,19 +84,6 @@ public class Sequeler.Layouts.HeaderBar : Gtk.HeaderBar {
8584 delete_db_button. visible = false ;
8685 delete_db_button. no_show_all = true ;
8786
88- mode_switch = new Granite .ModeSwitch .from_icon_name (" display-brightness-symbolic" , " weather-clear-night-symbolic" );
89- mode_switch. primary_icon_tooltip_text = _(" Light background" );
90- mode_switch. secondary_icon_tooltip_text = _(" Dark background" );
91- mode_switch. valign = Gtk . Align . CENTER ;
92- mode_switch. bind_property (" active" , settings, " dark-theme" );
93- mode_switch. notify. connect (() = > {
94- Gtk . Settings . get_default (). gtk_application_prefer_dark_theme = settings. dark_theme;
95- });
96-
97- if (settings. dark_theme) {
98- mode_switch. active = true ;
99- }
100-
10187 var new_window_item = new_menuitem (_(" New Window" ), " <Control>n" );
10288 new_window_item. action_name = Sequeler . Services . ActionManager . ACTION_PREFIX + Sequeler . Services . ActionManager . ACTION_NEW_WINDOW ;
10389
@@ -140,8 +126,6 @@ public class Sequeler.Layouts.HeaderBar : Gtk.HeaderBar {
140126 pack_start (delete_db_button);
141127
142128 pack_end (open_menu);
143- pack_end (headerbar_separator ());
144- pack_end (mode_switch);
145129 }
146130
147131 private Gtk .ModelButton new_menuitem (string label , string accels ) {
0 commit comments