Changes
5 changed files (+24/-1)
-
-
@@ -63,5 +63,10 @@ SPDX-License-Identifier: Apache-2.0<summary>Focus browse items on load</summary> <description>Move focus to the first browse item or search entry right after the page is loaded.</description> </key> <key name="disable-csd" type="b"> <default>false</default> <summary>Hide window titlebar</summary> <description>Hide window control buttons and title. Menu button and sidebar button remain.</description> </key> </schema> </schemalist>
-
-
-
@@ -52,7 +52,7 @@ SPDX-License-Identifier: Apache-2.0<property name="content"> <object class="AdwToolbarView"> <child type="top"> <object class="AdwHeaderBar"> <object class="AdwHeaderBar" id="header_bar"> <child type="start"> <object class="GtkToggleButton"> <property name="icon-name">sidebar-show-symbolic</property>
-
-
-
@@ -55,6 +55,11 @@ namespace PlacGtkAdwaita {} private void on_preferences() { var disable_csd = new Adw.SwitchRow(); settings.settings.bind(Settings.DISABLE_CSD, disable_csd, "active", DEFAULT); disable_csd.title = "Hide window titlebar"; disable_csd.subtitle = "Hide window control buttons and title. Menu button and sidebar button remain."; var label_parsing_enabled = new Adw.SwitchRow(); settings.settings.bind(Settings.LABEL_PARSING_ENABLED, label_parsing_enabled, "active", DEFAULT); label_parsing_enabled.title = "Parse labels";
-
@@ -71,6 +76,7 @@ namespace PlacGtkAdwaita {show_seek_by_10secs.subtitle = "Show buttons that seek forward/backwards by 10 seconds."; var appearance = new Adw.PreferencesGroup(); appearance.add(disable_csd); appearance.add(label_parsing_enabled); appearance.add(show_browse_item_separators); appearance.add(show_seek_by_10secs);
-
-
-
@@ -26,6 +26,7 @@ namespace PlacGtkAdwaita {public const string SHOW_SEEK_BY_10SECS = "show-seek-by-10secs"; public const string SHOW_BROWSE_ITEM_SEPARATORS = "show-browse-item-separators"; public const string FOCUS_BROWSE_ITEMS_ON_LOAD = "focus-browse-items-on-load"; public const string DISABLE_CSD = "disable-csd"; public GLib.Settings settings;
-
@@ -74,5 +75,10 @@ namespace PlacGtkAdwaita {owned get { return settings.get_boolean(FOCUS_BROWSE_ITEMS_ON_LOAD); } set { settings.set_boolean(FOCUS_BROWSE_ITEMS_ON_LOAD, value); } } public bool disable_csd { owned get { return settings.get_boolean(FOCUS_BROWSE_ITEMS_ON_LOAD); } set { settings.set_boolean(FOCUS_BROWSE_ITEMS_ON_LOAD, value); } } } }
-
-
-
@@ -49,6 +49,9 @@ namespace PlacGtkAdwaita {[GtkChild] private unowned Gtk.ListBox browse_hierarchy; [GtkChild] private unowned Adw.HeaderBar header_bar; private Settings settings = new Settings(); private Plac.Server? server = null;
-
@@ -114,6 +117,9 @@ namespace PlacGtkAdwaita {browse.hierarchy = ((BrowseHierarchyRow) row).hierarchy; }); settings.settings.bind(Settings.DISABLE_CSD, header_bar, "show-title", GET | INVERT_BOOLEAN); settings.settings.bind(Settings.DISABLE_CSD, header_bar, "show-end-title-buttons", GET | INVERT_BOOLEAN); } public void start() {
-