[gnome] Update extensions

This commit is contained in:
2024-10-31 10:19:02 -04:00
parent 851ec4a772
commit 6d1e6d1132
238 changed files with 8705 additions and 4185 deletions

View File

@ -9,31 +9,49 @@ export const Dash = GObject.registerClass({
Template: GLib.uri_resolve_relative(import.meta.url, '../ui/dash.ui', GLib.UriFlags.NONE),
InternalChildren: [
'blur',
'customize',
'static_blur',
'corner_radius',
'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) {
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(
'static-blur',
this._static_blur, 'active',
'sigma', this._sigma, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.dash_to_dock.settings.bind(
'corner-radius',
this._corner_radius, 'value',
'brightness', this._brightness, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.dash_to_dock.settings.bind(
@ -49,7 +67,15 @@ export const Dash = GObject.registerClass({
'unblur-in-overview', this._unblur_in_overview, 'active',
Gio.SettingsBindFlags.DEFAULT
);
}
this._customize.connect_to(this.preferences, this.preferences.dash_to_dock, false);
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);
}
});