🔧 Work on effect profiles

This commit is contained in:
Simon Schneegans
2023-01-13 20:41:28 +01:00
parent 532aad1341
commit a4b9f70cc3
26 changed files with 231 additions and 445 deletions
+5 -11
View File
@@ -47,7 +47,7 @@ You will have to ...
### 1. Expanding the Schema
For enabling the new effect, the boolean settings keys `simple-fade-open-effect`, `simple-fade-close-effect`, and `simple-fade-animation-time` are required.
For enabling the new effect, the boolean settings keys `simple-fade-enable-effect` and `simple-fade-animation-time` are required.
In this example, we also add a floating point value for storing another property of the effect - we will use them later in the tutorial.
Just copy the XML code below to the file [`schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml`](../schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml).
Just remember to replace `simple-fade` with your custom name!
@@ -57,16 +57,10 @@ Just remember to replace `simple-fade` with your custom name!
<!-- Simple Fade Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="simple-fade-close-effect" type="b">
<key name="simple-fade-enable-effect" type="b">
<default>false</default>
<summary>Simple Fade Close Effect</summary>
<description>Use the Simple Fade effect for window closing.</description>
</key>
<key name="simple-fade-open-effect" type="b">
<default>false</default>
<summary>Simple Fade Open Effect</summary>
<description>Use the Simple Fade effect for window opening.</description>
<summary>Simple Fade Enable Effect</summary>
<description>Use the Simple Fade effect.</description>
</key>
<key name="simple-fade-animation-time" type="i">
@@ -201,7 +195,7 @@ var SimpleFade = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'simple-fade';
+5 -5
View File
@@ -379,8 +379,7 @@ class Extension {
// If an effect is to be previewed, we have to affect dialogs es well. This is
// because the preview window is a dialog window...
const action = forOpening ? 'open' : 'close';
const previewNick = this._settings.get_string(action + '-preview-effect');
const previewNick = this._settings.get_string('preview-effect');
if (isDialogWindow && !shouldDestroyDialogs && previewNick == '') {
this._fixAnimationTimes(isDialogWindow, forOpening, null);
@@ -418,15 +417,16 @@ class Extension {
effect = this._ALL_EFFECTS.find(effect => effect.getNick() == previewNick);
// Only preview the effect once.
this._settings.set_string(action + '-preview-effect', '');
if (!forOpening) {
this._settings.set_string('preview-effect', '');
}
}
// Else we choose a random effect from all enabled effects.
else {
// Therefore, we first create a list of all currently enabled effects.
const enabled = this._ALL_EFFECTS.filter(effect => {
return this._settings.get_boolean(`${effect.getNick()}-${action}-effect`);
return this._settings.get_boolean(`${effect.getNick()}-enable-effect`);
});
// And then choose a random effect.
+13 -65
View File
@@ -155,53 +155,25 @@ var PreferencesDialog = class PreferencesDialog {
}
});
// Add three buttons on the right.
const box = new Gtk.Box();
box.set_spacing(8);
// The preview button.
const previewButton = Gtk.Button.new_from_icon_name('bmw-preview-symbolic');
previewButton.add_css_class('circular');
previewButton.add_css_class('flat');
previewButton.set_tooltip_text(_('Preview this effect'));
previewButton.set_valign(Gtk.Align.CENTER);
box.append(previewButton);
row.add_action(previewButton);
previewButton.connect('clicked', () => {
this._previewEffect(effect);
});
// Now add the two toggle buttons for enabling and disabling the effect.
const addToggle = (action, tooltip) => {
const button = Gtk.ToggleButton.new();
button.set_action_name(
`${action}-effects.${effect.getNick()}-${action}-effect`);
button.set_child(
Gtk.Image.new_from_icon_name(`bmw-window-${action}-symbolic`));
button.set_tooltip_text(tooltip);
button.set_valign(Gtk.Align.CENTER);
const button = Gtk.Switch.new();
button.set_action_name(`enabled-effects.${effect.getNick()}-enable-effect`);
button.set_tooltip_text(_('Use this effect'));
button.set_valign(Gtk.Align.CENTER);
// We switch some class when the button is enabled in order to make it more
// apparent which effects are currently in use.
button.add_css_class('circular');
button.add_css_class('flat');
button.connect('toggled', button => {
if (button.active) {
button.add_css_class('suggested-action');
button.remove_css_class('flat');
} else {
button.remove_css_class('suggested-action');
button.add_css_class('flat');
}
});
box.append(button);
};
addToggle('open', _('Use this effect when opening windows'));
addToggle('close', _('Use this effect when closing windows'));
row.add_action(box);
row.add_prefix(button);
group.add(row);
this._effectRows.push(row);
@@ -277,7 +249,7 @@ var PreferencesDialog = class PreferencesDialog {
const viewport = clamp.get_parent();
viewport.get_parent().set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER);
viewport.set_child(flap);
const scrolledWindow = Gtk.ScrolledWindow.new();
scrolledWindow.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
scrolledWindow.set_propagate_natural_height(true);
@@ -407,47 +379,24 @@ var PreferencesDialog = class PreferencesDialog {
group.add_action(aboutAction);
}
// Populate the open-effects drop-down menu.
// Populate the enabled-effects drop-down menu.
{
const group = Gio.SimpleActionGroup.new();
window.insert_action_group('open-effects', group);
window.insert_action_group('enabled-effects', group);
this._ALL_EFFECTS.forEach(effect => {
const [minMajor, minMinor] = effect.getMinShellVersion();
if (utils.shellVersionIsAtLeast(minMajor, minMinor)) {
const actionName = effect.getNick() + '-open-effect';
const actionName = effect.getNick() + '-enable-effect';
const action = this._settings.create_action(actionName);
group.add_action(action);
// The menu only exists if not using libadwaita. With libadwaita, individual
// ToggleButtons are used for triggering the above actions.
if (!utils.isADW()) {
const menu = this._builder.get_object('open-effect-menu');
const menu = this._builder.get_object('enabled-effects-menu');
const label = effect.getLabel();
menu.append_item(Gio.MenuItem.new(label, 'open-effects.' + actionName));
}
}
});
}
// Populate the close-effects drop-down menu.
{
const group = Gio.SimpleActionGroup.new();
window.insert_action_group('close-effects', group);
this._ALL_EFFECTS.forEach(effect => {
const [minMajor, minMinor] = effect.getMinShellVersion();
if (utils.shellVersionIsAtLeast(minMajor, minMinor)) {
const actionName = effect.getNick() + '-close-effect';
const action = this._settings.create_action(actionName);
group.add_action(action);
// The menu only exists if not using libadwaita. With libadwaita, individual
// ToggleButtons are used for triggering the above actions.
if (!utils.isADW()) {
const menu = this._builder.get_object('close-effect-menu');
const label = effect.getLabel();
menu.append_item(Gio.MenuItem.new(label, 'close-effects.' + actionName));
menu.append_item(Gio.MenuItem.new(label, 'enabled-effects.' + actionName));
}
}
});
@@ -592,8 +541,7 @@ var PreferencesDialog = class PreferencesDialog {
_previewEffect(effect) {
// Set the to-be-previewed effect.
this.getSettings().set_string('open-preview-effect', effect.getNick());
this.getSettings().set_string('close-preview-effect', effect.getNick());
this.getSettings().set_string('preview-effect', effect.getNick());
// Make sure that the window.show() firther below "sees" this change.
Gio.Settings.sync();
+121 -47
View File
@@ -47,69 +47,116 @@ GPL-3.0-or-later
</style>
<property name="child">
<object class="AdwPreferencesGroup">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-start">20</property>
<property name="spacing">20</property>
<child>
<object class="AdwEntryRow">
<property name="title" translatable="yes">Application</property>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkButton" id="reset-doom-animation-time">
<property name="icon-name">bmw-select-app-symbolic</property>
<property name="valign">center</property>
<object class="AdwEntryRow">
<property name="title" translatable="yes">Choose an Application</property>
<child>
<object class="GtkButton" id="reset-doom-animation-time">
<property name="icon-name">bmw-select-app-symbolic</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Animation Type</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Open Windows</item>
<item>Close Windows</item>
</items>
</object>
</property>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Window Type</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Normal Windows</item>
<item>Dialogs</item>
</items>
</object>
</property>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Mode</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>On Battery</item>
<item>Plugged In</item>
</items>
</object>
</property>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Profile</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Power-Saver Mode</item>
<item>Balanced Mode</item>
<item>Performance Mode</item>
<item>Power Saver or Balanced</item>
<item>Balanced or Performance</item>
</items>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Window Type</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Normal Windows</item>
<item>Dialogs</item>
</items>
</object>
</property>
</object>
</child>
<object class="GtkBox">
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Mode</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>On Battery</item>
<item>Plugged In</item>
</items>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">Delete this Profile...</property>
</object>
</property>
</object>
</child>
</child>
<child>
<object class="AdwComboRow">
<property name="title" translatable="yes">Power Profile</property>
<property name="model">
<object class="GtkStringList">
<items>
<item>Any</item>
<item>Power Saver</item>
<item>Balanced</item>
<item>Performance</item>
<item>Power Saver or Balanced</item>
<item>Balanced or Performance</item>
</items>
<child>
<object class="GtkButton">
<property name="halign">end</property>
<property name="hexpand">true</property>
<property name="icon-name">system-help-symbolic</property>
<style>
<class name="circular" />
</style>
</object>
</property>
</child>
</object>
</child>
@@ -131,6 +178,33 @@ GPL-3.0-or-later
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="title" translatable="yes">Effect Settings</property>
<property name="description" translatable="yes">If multiple are selected, one is chosen randomly.</property>
<child type="header-suffix">
<object class="GtkBox">
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton">
<property name="icon-name">edit-paste-symbolic</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">edit-paste-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
+4 -69
View File
@@ -8,8 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<interface domain="burn-my-windows">
<requires lib="gtk" version="3.0" />
<menu id="close-effect-menu"></menu>
<menu id="open-effect-menu"></menu>
<menu id="enabled-effects-menu"></menu>
<object class="GtkMenuButton" id="menu-button">
<property name="menu-model">main-menu</property>
@@ -77,7 +76,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Open Window Animation</property>
<property name="label" translatable="yes">Enabled Effects</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
@@ -100,72 +99,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
</object>
</child>
<child>
<object class="GtkMenuButton" id="open-effect-button">
<property name="menu-model">open-effect-menu</property>
<child>
<object class="GtkBox">
<property name="spacing">8</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Choose Effects</property>
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon-name">pan-down-symbolic</property>
<property name="icon-size">1</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="activatable">0</property>
<child>
<object class="GtkBox">
<property name="spacing">8</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Close Window Animation</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">If multiple are selected, one is chosen randomly.</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="dim-label" />
<class name="caption" />
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton" id="close-effect-button">
<property name="menu-model">close-effect-menu</property>
<object class="GtkMenuButton" id="enabled-effects-button">
<property name="menu-model">enabled-effects-menu</property>
<child>
<object class="GtkBox">
<property name="spacing">8</property>
+4 -49
View File
@@ -8,8 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<interface domain="burn-my-windows">
<requires lib="gtk" version="4.0" />
<menu id="close-effect-menu"></menu>
<menu id="open-effect-menu"></menu>
<menu id="enabled-effects-menu"></menu>
<object class="GtkMenuButton" id="menu-button">
<property name="menu-model">main-menu</property>
@@ -69,7 +68,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Open Window Animation</property>
<property name="label" translatable="yes">Enabled Effects</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
@@ -92,53 +91,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
</object>
</child>
<child>
<object class="GtkMenuButton" id="open-effect-button">
<object class="GtkMenuButton" id="enabled-effects-button">
<property name="label" translatable="yes">Choose Effects</property>
<property name="menu-model">open-effect-menu</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<property name="activatable">0</property>
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Close Window Animation</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">If multiple are selected, one is chosen randomly.</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="dim-label" />
<class name="caption" />
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton" id="close-effect-button">
<property name="label" translatable="yes">Choose Effects</property>
<property name="menu-model">close-effect-menu</property>
<property name="menu-model">enabled-effects-menu</property>
</object>
</child>
</object>
@@ -31,16 +31,10 @@ SPDX-License-Identifier: CC0-1.0
<description>Enable effects only if power saver is disabled.</description>
</key>
<key name="close-preview-effect" type="s">
<key name="preview-effect" type="s">
<default>""</default>
<summary>Close Preview Effect</summary>
<description>The effect with this nick will be used for the next window-close animation.</description>
</key>
<key name="open-preview-effect" type="s">
<default>""</default>
<summary>Open Preview Effect</summary>
<description>The effect with this nick will be used for the next window-open animation.</description>
<summary>Preview Effect</summary>
<description>The effect with this nick will be used for the next window animation.</description>
</key>
<key name="test-mode" type="b">
@@ -53,16 +47,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Apparition Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="apparition-open-effect" type="b">
<key name="apparition-enable-effect" type="b">
<default>false</default>
<summary>Apparition Open Effect</summary>
<description>Use the apparition effect for window openeing.</description>
</key>
<key name="apparition-close-effect" type="b">
<default>false</default>
<summary>Apparition Close Effect</summary>
<description>Use the apparition effect for window closing.</description>
<summary>Apparition Enable Effect</summary>
<description>Use the apparition effect.</description>
</key>
<key name="apparition-animation-time" type="i">
@@ -100,16 +88,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Pixelate Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="pixelate-close-effect" type="b">
<key name="pixelate-enable-effect" type="b">
<default>false</default>
<summary>Pixelate Close Effect</summary>
<description>Use the Pixelate effect for window closing.</description>
</key>
<key name="pixelate-open-effect" type="b">
<default>false</default>
<summary>Pixelate Open Effect</summary>
<description>Use the Pixelate effect for window opening.</description>
<summary>Pixelate Enable Effect</summary>
<description>Use the Pixelate effect.</description>
</key>
<key name="pixelate-animation-time" type="i">
@@ -135,16 +117,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Pixel Wipe Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="pixel-wipe-close-effect" type="b">
<key name="pixel-wipe-enable-effect" type="b">
<default>false</default>
<summary>Pixel Wipe Close Effect</summary>
<description>Use the Pixel Wipe effect for window closing.</description>
</key>
<key name="pixel-wipe-open-effect" type="b">
<default>false</default>
<summary>Pixel Wipe Open Effect</summary>
<description>Use the Pixel Wipe effect for window opening.</description>
<summary>Pixel Wipe Enable Effect</summary>
<description>Use the Pixel Wipe effect.</description>
</key>
<key name="pixel-wipe-animation-time" type="i">
@@ -163,16 +139,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Pixel Wheel Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="pixel-wheel-close-effect" type="b">
<key name="pixel-wheel-enable-effect" type="b">
<default>false</default>
<summary>Pixel Wheel Close Effect</summary>
<description>Use the Pixel Wheel effect for window closing.</description>
</key>
<key name="pixel-wheel-open-effect" type="b">
<default>false</default>
<summary>Pixel Wheel Open Effect</summary>
<description>Use the Pixel Wheel effect for window opening.</description>
<summary>Pixel Wheel Enable Effect</summary>
<description>Use the Pixel Wheel effect.</description>
</key>
<key name="pixel-wheel-animation-time" type="i">
@@ -197,16 +167,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Doom Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="doom-close-effect" type="b">
<key name="doom-enable-effect" type="b">
<default>false</default>
<summary>Doom Close Effect</summary>
<description>Use the Doom effect for window closing.</description>
</key>
<key name="doom-open-effect" type="b">
<default>false</default>
<summary>Doom Open Effect</summary>
<description>Use the Doom effect for window opening.</description>
<summary>Doom Enable Effect</summary>
<description>Use the Doom effect.</description>
</key>
<key name="doom-animation-time" type="i">
@@ -237,16 +201,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Fire Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="fire-close-effect" type="b">
<key name="fire-enable-effect" type="b">
<default>true</default>
<summary>Fire Close Effect</summary>
<description>Use the fire effect for window closing.</description>
</key>
<key name="fire-open-effect" type="b">
<default>false</default>
<summary>Fire Open Effect</summary>
<description>Use the fire effect for window opening.</description>
<summary>Fire Enable Effect</summary>
<description>Use the fire effect.</description>
</key>
<key name="fire-animation-time" type="i">
@@ -307,16 +265,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Glide Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="glide-close-effect" type="b">
<default>true</default>
<summary>Glide Close Effect</summary>
<description>Use the glide effect for window closing.</description>
</key>
<key name="glide-open-effect" type="b">
<key name="glide-enable-effect" type="b">
<default>false</default>
<summary>Glide Open Effect</summary>
<description>Use the glide effect for window opening.</description>
<summary>Glide Enable Effect</summary>
<description>Use the glide effect.</description>
</key>
<key name="glide-animation-time" type="i">
@@ -353,16 +305,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Matrix Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="matrix-close-effect" type="b">
<key name="matrix-enable-effect" type="b">
<default>false</default>
<summary>Matrix Close Effect</summary>
<description>Use the matrix effect for window closing.</description>
</key>
<key name="matrix-open-effect" type="b">
<default>false</default>
<summary>Matrix Open Effect</summary>
<description>Use the matrix effect for window opening.</description>
<summary>Matrix Enable Effect</summary>
<description>Use the matrix effect.</description>
</key>
<key name="matrix-animation-time" type="i">
@@ -405,16 +351,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- TV Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="tv-close-effect" type="b">
<key name="tv-enable-effect" type="b">
<default>false</default>
<summary>TV Close Effect</summary>
<description>Use the tv effect for window closing.</description>
</key>
<key name="tv-open-effect" type="b">
<default>false</default>
<summary>TV Open Effect</summary>
<description>Use the tv effect for window opening.</description>
<summary>TV Enable Effect</summary>
<description>Use the tv effect.</description>
</key>
<key name="tv-animation-time" type="i">
@@ -433,16 +373,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- T-Rex Attack Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="trex-close-effect" type="b">
<key name="trex-enable-effect" type="b">
<default>false</default>
<summary>T-Rex Close Effect</summary>
<description>Use the trex effect for window closing.</description>
</key>
<key name="trex-open-effect" type="b">
<default>false</default>
<summary>T-Rex Open Effect</summary>
<description>Use the trex effect for window opening.</description>
<summary>T-Rex Enable Effect</summary>
<description>Use the trex effect.</description>
</key>
<key name="trex-animation-time" type="i">
@@ -479,16 +413,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Hexagon Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="hexagon-close-effect" type="b">
<key name="hexagon-enable-effect" type="b">
<default>false</default>
<summary>Hexagon Close Effect</summary>
<description>Use the Hexagon effect for window closing.</description>
</key>
<key name="hexagon-open-effect" type="b">
<default>false</default>
<summary>Hexagon Open Effect</summary>
<description>Use the Hexagon effect for window opening.</description>
<summary>Hexagon Enable Effect</summary>
<description>Use the Hexagon effect.</description>
</key>
<key name="hexagon-animation-time" type="i">
@@ -531,16 +459,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Incinerate Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="incinerate-close-effect" type="b">
<key name="incinerate-enable-effect" type="b">
<default>false</default>
<summary>Incinerate Close Effect</summary>
<description>Use the Incinerate effect for window closing.</description>
</key>
<key name="incinerate-open-effect" type="b">
<default>false</default>
<summary>Incinerate Open Effect</summary>
<description>Use the Incinerate effect for window opening.</description>
<summary>Incinerate Enable Effect</summary>
<description>Use the Incinerate effect.</description>
</key>
<key name="incinerate-animation-time" type="i">
@@ -577,16 +499,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Energize A Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="energize-a-close-effect" type="b">
<key name="energize-a-enable-effect" type="b">
<default>false</default>
<summary>Energize A Close Effect</summary>
<description>Use the Energize A effect for window closing.</description>
</key>
<key name="energize-a-open-effect" type="b">
<default>false</default>
<summary>Energize A Open Effect</summary>
<description>Use the Energize A effect for window opening.</description>
<summary>Energize A Enable Effect</summary>
<description>Use the Energize A effect.</description>
</key>
<key name="energize-a-animation-time" type="i">
@@ -611,16 +527,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Energize B Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="energize-b-close-effect" type="b">
<key name="energize-b-enable-effect" type="b">
<default>false</default>
<summary>Energize B Close Effect</summary>
<description>Use the Energize B effect for window closing.</description>
</key>
<key name="energize-b-open-effect" type="b">
<default>false</default>
<summary>Energize B Open Effect</summary>
<description>Use the Energize B effect for window opening.</description>
<summary>Energize B Enable Effect</summary>
<description>Use the Energize B effect.</description>
</key>
<key name="energize-b-animation-time" type="i">
@@ -646,16 +556,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Glitch Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="glitch-close-effect" type="b">
<key name="glitch-enable-effect" type="b">
<default>false</default>
<summary>Glitch Close Effect</summary>
<description>Use the Glitch effect for window closing.</description>
</key>
<key name="glitch-open-effect" type="b">
<default>false</default>
<summary>Glitch Open Effect</summary>
<description>Use the Glitch effect for window opening.</description>
<summary>Glitch Enable Effect</summary>
<description>Use the Glitch effect.</description>
</key>
<key name="glitch-animation-time" type="i">
@@ -692,16 +596,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Wisps Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="wisps-close-effect" type="b">
<key name="wisps-enable-effect" type="b">
<default>false</default>
<summary>Wisps Close Effect</summary>
<description>Use the wisps effect for window closing.</description>
</key>
<key name="wisps-open-effect" type="b">
<default>false</default>
<summary>Wisps Open Effect</summary>
<description>Use the wisps effect for window opening.</description>
<summary>Wisps Enable Effect</summary>
<description>Use the wisps effect.</description>
</key>
<key name="wisps-animation-time" type="i">
@@ -726,16 +624,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Broken Glass Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="broken-glass-close-effect" type="b">
<key name="broken-glass-enable-effect" type="b">
<default>false</default>
<summary>Broken Glass Close Effect</summary>
<description>Use the broken glass effect for window closing.</description>
</key>
<key name="broken-glass-open-effect" type="b">
<default>false</default>
<summary>Broken Glass Open Effect</summary>
<description>Use the broken glass effect for window opening.</description>
<summary>Broken Glass Enable Effect</summary>
<description>Use the broken glass effect.</description>
</key>
<key name="broken-glass-animation-time" type="i">
@@ -772,16 +664,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Portal Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="portal-close-effect" type="b">
<key name="portal-enable-effect" type="b">
<default>false</default>
<summary>Portal Close Effect</summary>
<description>Use the Portal effect for window closing.</description>
</key>
<key name="portal-open-effect" type="b">
<default>false</default>
<summary>Portal Open Effect</summary>
<description>Use the Portal effect for window opening.</description>
<summary>Portal Enable Effect</summary>
<description>Use the Portal effect.</description>
</key>
<key name="portal-animation-time" type="i">
@@ -818,16 +704,10 @@ SPDX-License-Identifier: CC0-1.0
<!-- Snap of Disintegration Effect Options -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<key name="snap-open-effect" type="b">
<key name="snap-enable-effect" type="b">
<default>false</default>
<summary>Snap Open Effect</summary>
<description>Use the snap effect for window openeing.</description>
</key>
<key name="snap-close-effect" type="b">
<default>false</default>
<summary>Snap Close Effect</summary>
<description>Use the snap effect for window closing.</description>
<summary>Snap Enable Effect</summary>
<description>Use the snap effect.</description>
</key>
<key name="snap-animation-time" type="i">
+1 -1
View File
@@ -69,7 +69,7 @@ var Apparition = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'apparition';
+1 -1
View File
@@ -127,7 +127,7 @@ var BrokenGlass = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'broken-glass';
+1 -1
View File
@@ -76,7 +76,7 @@ var Doom = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'doom';
+1 -1
View File
@@ -68,7 +68,7 @@ var EnergizeA = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'energize-a';
+1 -1
View File
@@ -69,7 +69,7 @@ var EnergizeB = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'energize-b';
+1 -1
View File
@@ -88,7 +88,7 @@ var Fire = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'fire';
+1 -1
View File
@@ -66,7 +66,7 @@ var Glide = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'glide';
+1 -1
View File
@@ -77,7 +77,7 @@ var Glitch = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'glitch';
+1 -1
View File
@@ -86,7 +86,7 @@ var Hexagon = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'hexagon';
+1 -1
View File
@@ -119,7 +119,7 @@ var Incinerate = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'incinerate';
+1 -1
View File
@@ -102,7 +102,7 @@ var Matrix = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'matrix';
+1 -1
View File
@@ -62,7 +62,7 @@ var PixelWheel = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'pixel-wheel';
+1 -1
View File
@@ -88,7 +88,7 @@ var PixelWipe = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'pixel-wipe';
+1 -1
View File
@@ -62,7 +62,7 @@ var Pixelate = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'pixelate';
+1 -1
View File
@@ -79,7 +79,7 @@ var Portal = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'portal';
+1 -1
View File
@@ -106,7 +106,7 @@ var SnapOfDisintegration = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'snap';
+1 -1
View File
@@ -104,7 +104,7 @@ var TRexAttack = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'trex';
+1 -1
View File
@@ -66,7 +66,7 @@ var TVEffect = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. '*-close-effect'), and its animation time
// effect is enabled currently (e.g. '*-enable-effect'), and its animation time
// (e.g. '*-animation-time').
getNick() {
return 'tv';
+1 -1
View File
@@ -75,7 +75,7 @@ var Wisps = class {
// This will be called in various places where a unique identifier for this effect is
// required. It should match the prefix of the settings keys which store whether the
// effect is enabled currently (e.g. the '*-close-effect').
// effect is enabled currently (e.g. the '*-enable-effect').
getNick() {
return 'wisps';
}