From a75fc69f2c2e15f6af93033d9c0f8e43a9893804 Mon Sep 17 00:00:00 2001 From: Philipp Unger Date: Sat, 9 Apr 2022 15:45:47 +0200 Subject: [PATCH] migrate box intellihide options to adw preferences group --- prefs.js | 7 + ui/BoxIntellihideOptions.ui | 674 ++++++++++-------------------------- 2 files changed, 181 insertions(+), 500 deletions(-) diff --git a/prefs.js b/prefs.js index 1a40035..82522e5 100644 --- a/prefs.js +++ b/prefs.js @@ -1203,6 +1203,13 @@ const Preferences = class { 'sensitive', Gio.SettingsBindFlags.DEFAULT); + if (this._window) { + this._settings.bind('intellihide-use-pressure', + this._builder.get_object('intellihide_use_pressure_options2'), + 'sensitive', + Gio.SettingsBindFlags.DEFAULT); + } + this._settings.bind('intellihide-show-in-fullscreen', this._builder.get_object('intellihide_show_in_fullscreen_switch'), 'active', diff --git a/ui/BoxIntellihideOptions.ui b/ui/BoxIntellihideOptions.ui index 92125bd..a60dab3 100644 --- a/ui/BoxIntellihideOptions.ui +++ b/ui/BoxIntellihideOptions.ui @@ -37,516 +37,190 @@ - True - False vertical - 1 - 1 + 600 + 24 + 32 + 32 + 32 + 32 + - - True - False - 0 + + - - True - False - none + + Only hide the panel when it is obstructed by windows - - True - True - - - True - False - 12 - 12 - 12 - 12 - 12 - 32 - True - - - True - False - True - Only hide the panel when it is obstructed by windows - True - 0 - - 0 - 0 - - - - - - True - True - end - center - - 0 - 1 - - - - - - True - False - 12 - 4 - - - True - False - True - The panel hides from - 0 - - 0 - 0 - - - - - - True - False - center - - All windows - Focused windows - Maximized windows - - - 0 - 1 - - - - - 1 - 0 - 2 - - - - - - - - - - True - True - - - True - False - 12 - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Require pressure at the edge of the screen to reveal the panel - True - 0 - - 0 - 0 - - - - - - True - True - end - center - - 0 - 1 - - - - - - True - False - 12 - 4 - - - True - False - True - Required pressure threshold (px) - True - 0 - - 0 - 0 - - - - - - True - True - end - 4 - 0 - intellihide_pressure_threshold_adjustment - True - - 0 - 1 - - - - - - True - False - True - Required pressure timeout (ms) - True - 0 - - 1 - 0 - - - - - - True - True - end - 4 - 0 - intellihide_pressure_time_adjustment - True - - 1 - 1 - - - - - 1 - 0 - 2 - - - - - - - - - - 100 - True - True - - - True - False - 12 - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Allow the panel to be revealed while in fullscreen mode - True - 0 - - 0 - 0 - - - - - - True - True - end - center - - 0 - 1 - - - - - - - - - - True - True - - - True - False - 12 - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Only hide secondary panels (requires multi-monitors option) - True - 0 - - 0 - 0 - - - - - - True - True - end - center - - 0 - 1 - - - - - - - - - - True - True - - - True - False - 12 - 12 - 12 - 12 - 32 - - - True - center - 12 - e.g. <Super>i - - 0 - 1 - 2 - - - - - - True - False - True - Keyboard shortcut to reveal and hold the panel - 0 - - 0 - 0 - - - - - - True - False - Syntax: <Shift>, <Ctrl>, <Alt>, <Super> - True - 40 - 0 - - - 1 - 0 - - - - - - - - - - True - True - - - True - False - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Hide and reveal animation duration (ms) - 0 - - 0 - 0 - - - - - - True - True - end - 4 - 0 - intellihide_animation_time_adjustment - True - - 0 - 1 - - - - - - - - - - 100 - True - True - - - True - False - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Delay before hiding the panel (ms) - 0 - - 0 - 0 - - - - - - True - True - end - 4 - 10 - intellihide_close_delay_adjustment - True - 10 - - 0 - 1 - - - - - - - - - - True - True - - - True - False - 12 - 12 - 12 - 12 - 12 - 32 - - - True - False - True - Delay before enabling intellihide on start (ms) - True - 0 - - 0 - 0 - - - - - - True - True - end - 4 - 10 - intellihide_enable_hide_delay_adjustment - True - 10 - - 0 - 1 - - - - - + + center + + + + The panel hides from + + + center + + All windows + Focused windows + Maximized windows + + + + + + + + + + + + + Require pressure at the edge of the screen to reveal the panel + + + center + + + + + + + + Required pressure threshold (px) + + + center + 4 + 0 + intellihide_pressure_threshold_adjustment + True + + + + + + + + Required pressure timeout (ms) + + + center + 4 + 0 + intellihide_pressure_time_adjustment + True + + + + + + + + + + + + + + Allow the panel to be revealed while in fullscreen mode + + + center + + + + + + + + Only hide secondary panels + (requires multi-monitors option) + + + center + + + + + + + + Keyboard shortcut to reveal and hold the panel + Syntax: <Shift>, <Ctrl>, <Alt>, <Super> + + + center + 12 + e.g. <Super>i + + + + + + + + + + + + + + Hide and reveal animation duration (ms) + + + center + 4 + 0 + intellihide_animation_time_adjustment + True + + + + + + + + Delay before hiding the panel (ms) + + + center + 4 + 10 + intellihide_close_delay_adjustment + True + 10 + + + + + + + + Delay before enabling intellihide on start (ms) + + + center + 4 + 10 + intellihide_enable_hide_delay_adjustment + True + 10 + + + + + + + + \ No newline at end of file