summaryrefslogtreecommitdiff
path: root/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js
diff options
context:
space:
mode:
authornippy <you@example.com>2026-04-18 13:49:56 +0200
committernippy <you@example.com>2026-04-18 13:49:56 +0200
commit5d94c0a7d44a2255b81815a52a7056a94a39842d (patch)
tree759bdea9645c6a62f9e1e4c001f7d81cccd120d2 /raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js
parente79cdf210b267f21a186255ce1a4d50029439d54 (diff)
downloadRaveOS-PKGBUILD-5d94c0a7d44a2255b81815a52a7056a94a39842d.tar.gz
RaveOS-PKGBUILD-5d94c0a7d44a2255b81815a52a7056a94a39842d.zip
update Raveos themes
Diffstat (limited to 'raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js')
-rw-r--r--raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js81
1 files changed, 81 insertions, 0 deletions
diff --git a/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js b/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js
new file mode 100644
index 0000000..aae3768
--- /dev/null
+++ b/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/preferences/dash.js
@@ -0,0 +1,81 @@
+import Adw from 'gi://Adw';
+import GLib from 'gi://GLib';
+import GObject from 'gi://GObject';
+import Gio from 'gi://Gio';
+
+
+export const Dash = GObject.registerClass({
+ GTypeName: 'Dash',
+ Template: GLib.uri_resolve_relative(import.meta.url, '../ui/dash.ui', GLib.UriFlags.NONE),
+ InternalChildren: [
+ 'blur',
+ 'pipeline_choose_row',
+ 'mode_static',
+ 'mode_dynamic',
+ 'sigma_row',
+ 'sigma',
+ 'brightness_row',
+ 'brightness',
+ 'override_background',
+ 'style_dash_to_dock',
+ 'unblur_in_overview'
+ ],
+}, class Dash extends Adw.PreferencesPage {
+ constructor(preferences, pipelines_manager, pipelines_page) {
+ super({});
+
+ this.preferences = preferences;
+ this.pipelines_manager = pipelines_manager;
+ this.pipelines_page = pipelines_page;
+
+ this.preferences.dash_to_dock.settings.bind(
+ 'blur', this._blur, 'active',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+
+ this._pipeline_choose_row.initialize(
+ this.preferences.dash_to_dock, this.pipelines_manager, this.pipelines_page
+ );
+
+ this.change_blur_mode(this.preferences.dash_to_dock.STATIC_BLUR, true);
+
+ this._mode_static.connect('toggled',
+ () => this.preferences.dash_to_dock.STATIC_BLUR = this._mode_static.active
+ );
+ this.preferences.dash_to_dock.STATIC_BLUR_changed(
+ () => this.change_blur_mode(this.preferences.dash_to_dock.STATIC_BLUR, false)
+ );
+
+ this.preferences.dash_to_dock.settings.bind(
+ 'sigma', this._sigma, 'value',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+ this.preferences.dash_to_dock.settings.bind(
+ 'brightness', this._brightness, 'value',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+ this.preferences.dash_to_dock.settings.bind(
+ 'override-background',
+ this._override_background, 'enable-expansion',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+ this.preferences.dash_to_dock.settings.bind(
+ 'style-dash-to-dock', this._style_dash_to_dock, 'selected',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+ this.preferences.dash_to_dock.settings.bind(
+ 'unblur-in-overview', this._unblur_in_overview, 'active',
+ Gio.SettingsBindFlags.DEFAULT
+ );
+ }
+
+ change_blur_mode(is_static_blur, first_run) {
+ this._mode_static.set_active(is_static_blur);
+ if (first_run)
+ this._mode_dynamic.set_active(!is_static_blur);
+
+ this._pipeline_choose_row.set_visible(is_static_blur);
+ this._sigma_row.set_visible(!is_static_blur);
+ this._brightness_row.set_visible(!is_static_blur);
+ }
+}); \ No newline at end of file