[gnome] Update extensions

This commit is contained in:
2026-06-10 11:03:09 -04:00
parent 20fc1e4e75
commit 6c973853c6
394 changed files with 12513 additions and 1340 deletions

View File

@ -37,6 +37,11 @@ export const Applications = GObject.registerClass({
'sigma',
'brightness_row',
'brightness',
'corner_radius_not_found_row',
'corner_radius_row',
'corner_radius',
'corner_when_maximized_row',
'corner_when_maximized',
'opacity',
'dynamic_opacity',
'blur_on_overview',
@ -97,6 +102,14 @@ export const Applications = GObject.registerClass({
'brightness', this._brightness, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.applications.settings.bind(
'corner-radius', this._corner_radius, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.applications.settings.bind(
'corner-when-maximized', this._corner_when_maximized, 'active',
Gio.SettingsBindFlags.DEFAULT
);
// connect 'enable all' button to whitelist/blacklist visibility
this._enable_all.bind_property(
@ -213,5 +226,9 @@ export const Applications = GObject.registerClass({
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);
this._corner_radius_row.set_visible(!is_static_blur);
this._corner_radius_row.set_visible(!is_static_blur && this.preferences.ROUNDED_BLUR_FOUND);
//this._corner_when_maximized_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);
}
});
});

View File

@ -16,6 +16,9 @@ export const Dash = GObject.registerClass({
'sigma',
'brightness_row',
'brightness',
'corner_radius_not_found_row',
'corner_radius_row',
'corner_radius',
'override_background',
'style_dash_to_dock',
'unblur_in_overview'
@ -54,6 +57,10 @@ export const Dash = GObject.registerClass({
'brightness', this._brightness, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.dash_to_dock.settings.bind(
'corner-radius', this._corner_radius, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.dash_to_dock.settings.bind(
'override-background',
this._override_background, 'enable-expansion',
@ -77,5 +84,7 @@ export const Dash = GObject.registerClass({
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);
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);
}
});
});

View File

@ -16,6 +16,9 @@ export const Panel = GObject.registerClass({
'sigma',
'brightness_row',
'brightness',
'corner_radius_not_found_row',
'corner_radius_row',
'corner_radius',
'unblur_in_overview',
'force_light_text',
'override_background',
@ -58,6 +61,10 @@ export const Panel = GObject.registerClass({
'brightness', this._brightness, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.panel.settings.bind(
'corner-radius', this._corner_radius, 'value',
Gio.SettingsBindFlags.DEFAULT
);
this.preferences.panel.settings.bind(
'unblur-in-overview', this._unblur_in_overview, 'active',
Gio.SettingsBindFlags.DEFAULT
@ -98,5 +105,7 @@ export const Panel = GObject.registerClass({
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);
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);
}
});
});

View File

@ -154,18 +154,24 @@ export const EffectRow = GObject.registerClass({
width_request: 75,
height_request: 45,
show_editor: true,
use_alpha: true
use_alpha: param.use_alpha
});
row.add_suffix(color_button);
// set original color
let c = color_button.get_rgba().copy();
[c.red, c.green, c.blue, c.alpha] = this.get_effect_param(param_key);
if (param.use_alpha)
[c.red, c.green, c.blue, c.alpha] = this.get_effect_param(param_key);
else
[c.red, c.green, c.blue] = this.get_effect_param(param_key);
color_button.set_rgba(c);
// update on on 'color-set'
color_button.connect(
'color-set', () => {
let c = color_button.get_rgba();
this.set_effect_param(param_key, [c.red, c.green, c.blue, c.alpha]);
if (param.use_alpha)
this.set_effect_param(param_key, [c.red, c.green, c.blue, c.alpha]);
else
this.set_effect_param(param_key, [c.red, c.green, c.blue]);
}
);
break;