mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
migrate box advanced options to adw preferences group, harmonised box dialog file names
This commit is contained in:
9
prefs.js
9
prefs.js
@@ -170,19 +170,19 @@ const Preferences = class {
|
||||
window.set_search_enabled(true);
|
||||
|
||||
// dialogs
|
||||
this._builder.add_from_file(Me.path + '/ui/AnimateAppIconHoverOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxAnimateAppIconHoverOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxDotOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxShowDesktopOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxDynamicOpacityOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxIntellihideOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/ShowApplicationsOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxShowApplicationsOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxWindowPreviewOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxGroupAppsOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxMiddleClickOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxOverlayShortcut.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxSecondaryMenuOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/ScrollPanelOptionsBox.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/ScrollIconOptionsBox.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxScrollPanelOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxScrollIconOptions.ui');
|
||||
this._builder.add_from_file(Me.path + '/ui/BoxAdvancedOptions.ui');
|
||||
|
||||
// pages
|
||||
@@ -1926,7 +1926,6 @@ const Preferences = class {
|
||||
|
||||
// setup dialog for advanced options
|
||||
this._builder.get_object('button_advanced_options').connect('clicked', () => {
|
||||
print("nj");
|
||||
let box = this._builder.get_object('box_advanced_options');
|
||||
|
||||
let dialog = this._createPreferencesDialog(_('Advanced Options'), box);
|
||||
|
||||
@@ -3,40 +3,24 @@
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
|
||||
<object class="GtkBox" id="box_advanced_options">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="hexpand">1</property>
|
||||
<property name="vexpand">1</property>
|
||||
<property name="width-request">600</property>
|
||||
<property name="spacing">8</property>
|
||||
|
||||
<child>
|
||||
<object class="GtkFrame" id="frame_advanced_options">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="margin-top">8</property>
|
||||
<property name="margin-bottom">8</property>
|
||||
<property name="margin-start">8</property>
|
||||
<property name="margin-end">8</property>
|
||||
|
||||
<child>
|
||||
<object class="GtkListBox" id="listbox_advanced_options">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<child>
|
||||
<object class="GtkListBoxRow" id="listbox_advanced_nothing">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">80</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="advanced_nothing_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="label" translatable="yes">Nothing yet!</property>
|
||||
<property name="use_markup">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<object class="AdwActionRow" id="show_showdesktop_width_label">
|
||||
<property name="title" translatable="yes">Nothing yet!</property>
|
||||
<property name="subtitle" translatable="yes">For real...</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Reveal the desktop when hovering the Show Desktop button</property>
|
||||
<property name="subtitle" translatable="yes"></property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="show_showdesktop_hide_switch">
|
||||
<property name="visible">True</property>
|
||||
|
||||
Reference in New Issue
Block a user