[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

@ -43,6 +43,7 @@ export const DummyPipeline = class DummyPipeline {
this.build_effect({
unscaled_radius: 2 * this.settings.SIGMA,
brightness: this.settings.BRIGHTNESS,
corner_radius: this.settings.CORNER_RADIUS,
});
this.actor_destroy_id = this.actor.connect(
@ -75,6 +76,9 @@ export const DummyPipeline = class DummyPipeline {
this._brightness_changed_id = this.settings.settings.connect(
'changed::brightness', () => this.effect.brightness = this.settings.BRIGHTNESS
);
this._corner_radius_changed_id = this.settings.settings.connect(
'changed::corner-radius', () => this.effect.corner_radius = this.settings.CORNER_RADIUS
);
}
repaint_effect() {
@ -92,8 +96,11 @@ export const DummyPipeline = class DummyPipeline {
this.settings.settings.disconnect(this._sigma_changed_id);
if (this._brightness_changed_id)
this.settings.settings.disconnect(this._brightness_changed_id);
if (this._corner_radius_changed_id)
this.settings.settings.disconnect(this._corner_radius_changed_id);
delete this._sigma_changed_id;
delete this._brightness_changed_id;
delete this._corner_radius_changed_id;
}
/// Do nothing for this dummy pipeline.
@ -109,4 +116,4 @@ export const DummyPipeline = class DummyPipeline {
_warn(str) {
console.warn(`[Blur my Shell > dummy pip] ${str}`);
}
};
};

View File

@ -6,6 +6,7 @@ export const KEYS = [
component: "general", schemas: [
{ type: Type.PIPELINES, name: "pipelines" },
{ type: Type.I, name: "hacks-level" },
{ type: Type.B, name: "rounded-blur-found" },
{ type: Type.B, name: "debug" },
]
},
@ -31,6 +32,7 @@ export const KEYS = [
{ type: Type.S, name: "pipeline" },
{ type: Type.I, name: "sigma" },
{ type: Type.D, name: "brightness" },
{ type: Type.I, name: "corner-radius" },
{ type: Type.B, name: "unblur-in-overview" },
{ type: Type.B, name: "force-light-text" },
{ type: Type.B, name: "override-background" },
@ -45,6 +47,7 @@ export const KEYS = [
{ type: Type.S, name: "pipeline" },
{ type: Type.I, name: "sigma" },
{ type: Type.D, name: "brightness" },
{ type: Type.I, name: "corner-radius" },
{ type: Type.B, name: "unblur-in-overview" },
{ type: Type.B, name: "override-background" },
{ type: Type.I, name: "style-dash-to-dock" },
@ -57,6 +60,8 @@ export const KEYS = [
{ type: Type.S, name: "pipeline" },
{ type: Type.I, name: "sigma" },
{ type: Type.D, name: "brightness" },
{ type: Type.I, name: "corner-radius" },
{ type: Type.B, name: "corner-when-maximized" },
{ type: Type.I, name: "opacity" },
{ type: Type.B, name: "dynamic-opacity" },
{ type: Type.B, name: "blur-on-overview" },
@ -187,4 +192,4 @@ export const DEPRECATED_KEYS = [
{ type: Type.D, name: "noise-lightness" },
]
},
];
];

View File

@ -29,6 +29,7 @@ export function update_from_old_settings(gsettings) {
if (!deprecated_component.CUSTOMIZE) {
new_component.SIGMA = deprecated_preferences.SIGMA;
new_component.BRIGHTNESS = deprecated_preferences.BRIGHTNESS;
new_component.CORNER_RADIUS = deprecated_preferences.CORNER_RADIUS;
}
});
@ -37,4 +38,4 @@ export function update_from_old_settings(gsettings) {
}
preferences.settings.set_int('settings-version', CURRENT_SETTINGS_VERSION);
}
}

View File

@ -9,7 +9,11 @@ export const IS_IN_PREFERENCES = typeof global === 'undefined';
export async function import_in_shell_only(module) {
if (IS_IN_PREFERENCES)
return null;
return (await import(module)).default;
try {
return (await import(module)).default;
} catch (e) {
return null;
}
}
// In use for the effects, to prevent boilerplate code