diff options
| author | Nippy <nippy@Nippy-Mac-mini.local> | 2026-10-09 17:23:53 +0200 |
|---|---|---|
| committer | Nippy <nippy@Nippy-Mac-mini.local> | 2026-10-09 17:23:53 +0200 |
| commit | 9d5be1660d8f74038ebed3d74fdbc809e43787ae (patch) | |
| tree | 4cb46c3765be87ca4c5219f2f714425d7dfddb56 /raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js | |
| parent | deb4b8a9c407832c35100a643bd7a592589c9679 (diff) | |
| download | RaveOS-PKGBUILD-9d5be1660d8f74038ebed3d74fdbc809e43787ae.tar.gz RaveOS-PKGBUILD-9d5be1660d8f74038ebed3d74fdbc809e43787ae.zip | |
gnome fix
Diffstat (limited to 'raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js')
| -rw-r--r-- | raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js b/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js index 1115710..66b3b09 100644 --- a/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js +++ b/raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js @@ -24,6 +24,12 @@ export const Panel = GObject.registerClass({ 'override_background', 'style_panel', 'override_background_dynamically', + 'override_background_dynamically_mode_row', + 'override_background_dynamically_mode', + 'gradient_panel_row', + 'gradient_panel', + 'gradient_panel_mode_row', + 'gradient_panel_mode', 'hidetopbar_compatibility', 'dtp_blur_original_panel' ], @@ -87,6 +93,28 @@ export const Panel = GObject.registerClass({ this._override_background_dynamically, 'active', Gio.SettingsBindFlags.DEFAULT ); + this.preferences.panel.settings.bind( + 'override-background-dynamically-mode', + this._override_background_dynamically_mode, 'selected', + Gio.SettingsBindFlags.DEFAULT + ); + this.preferences.panel.settings.bind( + 'gradient-panel', this._gradient_panel, 'active', + Gio.SettingsBindFlags.DEFAULT + ); + this.preferences.panel.settings.bind( + 'gradient-panel-mode', this._gradient_panel_mode, 'selected', + Gio.SettingsBindFlags.DEFAULT + ); + this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY_changed( + () => this.proximity_option_changed() + ); + this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY_MODE_changed( + () => this.proximity_option_changed() + ); + this.preferences.panel.GRADIENT_PANEL_changed( + () => this.proximity_option_changed() + ); this.preferences.hidetopbar.settings.bind( 'compatibility', this._hidetopbar_compatibility, 'active', Gio.SettingsBindFlags.DEFAULT @@ -97,6 +125,12 @@ export const Panel = GObject.registerClass({ ); } + proximity_option_changed() { + this._override_background_dynamically_mode_row.set_visible(this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY); + this._gradient_panel_row.set_visible(this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY && this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY_MODE == 0); + this._gradient_panel_mode_row.set_visible(this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY && this.preferences.panel.GRADIENT_PANEL && this.preferences.panel.OVERRIDE_BACKGROUND_DYNAMICALLY_MODE == 0); + } + change_blur_mode(is_static_blur, first_run) { this._mode_static.set_active(is_static_blur); if (first_run) @@ -107,5 +141,7 @@ export const Panel = GObject.registerClass({ this._brightness_row.set_visible(!is_static_blur); this._corner_radius_row.set_visible(!is_static_blur && this.preferences.ROUNDED_BLUR_FOUND); this._corner_radius_not_found_row.set_visible(!is_static_blur && !this.preferences.ROUNDED_BLUR_FOUND); + + this.proximity_option_changed(); } }); |