From 9d5be1660d8f74038ebed3d74fdbc809e43787ae Mon Sep 17 00:00:00 2001 From: Nippy Date: Fri, 9 Oct 2026 17:23:53 +0200 Subject: gnome fix --- .../blur-my-shell@aunetx/preferences/panel.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'raveos-gnome-theme/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/panel.js') 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(); } }); -- cgit v1.3