🚚 Use simpler effect class names

This commit is contained in:
Simon Schneegans
2022-01-16 05:46:22 +01:00
parent 5287ac2614
commit ee37015d6d
7 changed files with 24 additions and 27 deletions
+3 -4
View File
@@ -33,7 +33,7 @@ let Shader = null;
// The effect class is completely static. It can be used to get some metadata (like the
// effect's name or supported GNOME Shell versions), to initialize the respective page of
// the settings dialog, as well as to create the actual shader for the effect.
var FireEffect = class FireEffect {
var Fire = class Fire {
// ---------------------------------------------------------------------------- metadata
@@ -86,13 +86,12 @@ var FireEffect = class FireEffect {
});
// Initialize the fire-preset dropdown.
FireEffect._createFirePresets(dialog);
Fire._createFirePresets(dialog);
// Finally, append the settings page to the main stack.
const stack = dialog.getBuilder().get_object('main-stack');
stack.add_titled(
dialog.getBuilder().get_object('fire-prefs'), FireEffect.getNick(),
FireEffect.getLabel());
dialog.getBuilder().get_object('fire-prefs'), Fire.getNick(), Fire.getLabel());
}
// ---------------------------------------------------------------- API for extension.js
+3 -3
View File
@@ -33,7 +33,7 @@ let Shader = null;
// The effect class is completely static. It can be used to get some metadata (like the
// effect's name or supported GNOME Shell versions), to initialize the respective page of
// the settings dialog, as well as to create the actual shader for the effect.
var MatrixEffect = class MatrixEffect {
var Matrix = class Matrix {
// ---------------------------------------------------------------------------- metadata
@@ -75,8 +75,8 @@ var MatrixEffect = class MatrixEffect {
// Finally, append the settings page to the main stack.
const stack = dialog.getBuilder().get_object('main-stack');
stack.add_titled(
dialog.getBuilder().get_object('matrix-prefs'), MatrixEffect.getNick(),
MatrixEffect.getLabel());
dialog.getBuilder().get_object('matrix-prefs'), Matrix.getNick(),
Matrix.getLabel());
}
// ---------------------------------------------------------------- API for extension.js
+3 -3
View File
@@ -31,7 +31,7 @@ let Shader = null;
// The effect class is completely static. It can be used to get some metadata (like the
// effect's name or supported GNOME Shell versions), to initialize the respective page of
// the settings dialog, as well as to create the actual shader for the effect.
var TRexEffect = class TRexEffect {
var TRexAttack = class TRexAttack {
// ---------------------------------------------------------------------------- metadata
@@ -73,8 +73,8 @@ var TRexEffect = class TRexEffect {
// Finally, append the settings page to the main stack.
const stack = dialog.getBuilder().get_object('main-stack');
stack.add_titled(
dialog.getBuilder().get_object('trex-prefs'), TRexEffect.getNick(),
TRexEffect.getLabel());
dialog.getBuilder().get_object('trex-prefs'), TRexAttack.getNick(),
TRexAttack.getLabel());
}
// ---------------------------------------------------------------- API for extension.js
+2 -3
View File
@@ -30,7 +30,7 @@ let Shader = null;
// The effect class is completely static. It can be used to get some metadata (like the
// effect's name or supported GNOME Shell versions), to initialize the respective page of
// the settings dialog, as well as to create the actual shader for the effect.
var WispsEffect = class WispsEffect {
var Wisps = class Wisps {
// ---------------------------------------------------------------------------- metadata
@@ -69,8 +69,7 @@ var WispsEffect = class WispsEffect {
// Finally, append the settings page to the main stack.
const stack = dialog.getBuilder().get_object('main-stack');
stack.add_titled(
dialog.getBuilder().get_object('wisps-prefs'), WispsEffect.getNick(),
WispsEffect.getLabel());
dialog.getBuilder().get_object('wisps-prefs'), Wisps.getNick(), Wisps.getLabel());
}
// ---------------------------------------------------------------- API for extension.js