diff --git a/extension.js b/extension.js index 7892e8a..a1173a9 100644 --- a/extension.js +++ b/extension.js @@ -154,7 +154,8 @@ class Extension { const float EDGE_BLEND = 70; const float BURN_RANGE = 0.1; const float BURN_TIME = 0.2; - const vec2 FIRE_SCALE = vec2(400, 600); + const vec2 FIRE_SCALE = vec2(400, 600) * ${ + this._settings.get_double('flame-scale')}; const float FIRE_SPEED = ${this._settings.get_double('flame-movement-speed')}; float rand(vec2 co) { diff --git a/prefs.js b/prefs.js index a024c8f..8781fc1 100644 --- a/prefs.js +++ b/prefs.js @@ -45,6 +45,7 @@ var PreferencesDialog = class PreferencesDialog { // Bind all properties. this._bindAdjustment('destroy-animation-time'); this._bindAdjustment('flame-movement-speed'); + this._bindAdjustment('flame-scale'); this._bindColorButton('fire-color-1'); this._bindColorButton('fire-color-2'); this._bindColorButton('fire-color-3'); diff --git a/resources/ui/settings.ui b/resources/ui/settings.ui index 3de9c22..7a06458 100644 --- a/resources/ui/settings.ui +++ b/resources/ui/settings.ui @@ -86,6 +86,52 @@ + + + 0 + + + + + Flame Scale + 0 + start + center + 1 + + + + + end + center + 1 + 2 + left + 300 + + + 5 + 0.1 + 0.01 + 0.1 + + + + + + + edit-clear-symbolic + Reset to Default Value + + + + + + + + 0 diff --git a/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml b/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml index 65c6c52..dc4e287 100644 --- a/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml +++ b/schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml @@ -15,6 +15,12 @@ The speed at which the flames move. + + 1.0 + Flame Scale + The size of the flames. + + "rgba(76, 51, 25, 0.0)" Fire Color 1