Skip to content

Commit e9ba05e

Browse files
authored
[blur-overview@nailfarmer.nailfarmer.com] Restore blur effect (#769)
* Restore the Blur Effect which was removed in 2021 for no reason that I can discern * Add a config option to disable the blur effect * Add README and CHANGELOG * Add myself as maintainer since it's currently without one
1 parent 8b679c5 commit e9ba05e

File tree

21 files changed

+210
-46
lines changed

21 files changed

+210
-46
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## 1.1.0
4+
5+
* Restored the ability to blur the overview background. It was removed in 2021 for no reason that I can discern
6+
* Added a config option to control if the blur effect is applied (defaults to on)
7+
* Changed the maintainer to myself since it currently has no maintainer
8+
* Added a README, CHANGELOG and version number
9+
10+
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Blur Overview
2+
3+
Allows you to Blur and adjust the dimming of the overview's background (window selection screen)
4+
5+
## Installation
6+
7+
1. Right click on the cinnamon panel and click "System Settings"
8+
2. Click on the "Extensions" icon under the "Preferences" category
9+
3. Click the "Download" tab and then click the "Blur Overview" entry
10+
4. Click the "Install" button on the right and then return to the "Manage" tab
11+
6. Select the new "Blur Overview" entry and then click the "+" button at the bottom of the window
12+
7. Use the "gears" icon next to the "Blur Overview" entry to open the setting window and setup the preferred behaviour

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/extension.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// along with this program. If not, see <http://www.gnu.org/licenses/>.
2020

2121
// Author: Jen Bowen aka nailfarmer
22+
// Fixes and changes 2024 by Kevin Langman
2223

2324
const Clutter = imports.gi.Clutter;
2425
const Tweener = imports.ui.tweener;
@@ -27,7 +28,7 @@ const Settings = imports.ui.settings;
2728

2829
const ANIMATION_TIME = 0.25;
2930

30-
let originalAnimate, fx;
31+
let originalAnimate;
3132

3233
let settings;
3334

@@ -37,13 +38,20 @@ function _animateVisible() {
3738

3839
this._oldAnimateVisible();
3940

40-
// Get the overview's backgroundShade child and set it's color to solid black
4141
let children = this._background.get_children();
42+
// Get the overview's background image and add the BlurEffect to it if configured to do so
43+
if (settings.blur) {
44+
let desktopBackground = children[0];
45+
let fx = new Clutter.BlurEffect();
46+
desktopBackground.add_effect_with_name( "blur", fx );
47+
}
48+
// Get the overview's backgroundShade child and set it's color to see-through solid black
4249
let backgroundShade = children[1];
4350
let [ret,color] = Clutter.Color.from_string( "rgba(0,0,0,1)" );
51+
backgroundShade.set_opacity(0);
4452
backgroundShade.set_background_color(color);
4553

46-
// Dim the backgroundShade to the configured percentage
54+
// Dim the backgroundShade by making the black color less see-through by the configured percentage
4755
Tweener.addTween( backgroundShade,
4856
{ opacity: Math.round(settings.opacity*2.55),
4957
time: ANIMATION_TIME,
@@ -59,6 +67,7 @@ BlurSettings.prototype = {
5967
_init: function(uuid) {
6068
this.settings = new Settings.ExtensionSettings(this, uuid);
6169
this.settings.bindProperty(Settings.BindingDirection.IN, 'opacity', 'opacity', null);
70+
this.settings.bindProperty(Settings.BindingDirection.IN, 'blur', 'blur', null);
6271
}
6372
};
6473

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/metadata.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"uuid": "blur-overview@nailfarmer.nailfarmer.com",
33
"name": "Blur Overview",
4-
"description": "Adjust the background dimming for the overview (window selection screen)",
4+
"version": "1.1.0",
5+
"description": "Allows you to blur and adjust the dimming of the overview's background (window selection screen)",
56
"cinnamon-version": [
67
"3.4",
78
"3.6",

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/blur-overview@nailfarmer.nailfarmer.com.pot

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: blur-overview@nailfarmer.nailfarmer.com 1.0\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -26,6 +26,14 @@ msgid ""
2626
"Adjust the background dimming for the overview (window selection screen)"
2727
msgstr ""
2828

29+
#. settings-schema.json->header->description
30+
msgid "Blur Overview (window selection screen) settings"
31+
msgstr ""
32+
2933
#. settings-schema.json->opacity->description
30-
msgid "Overview (window selection screen) background dimming percentage"
34+
msgid "Dim Background (percentage)"
35+
msgstr ""
36+
37+
#. settings-schema.json->blur->description
38+
msgid "Blur Background"
3139
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/ca.po

+14-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1111
"extensions/issues\n"
12-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
12+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1313
"PO-Revision-Date: 2024-09-14 03:03+0200\n"
1414
"Last-Translator: Odyssey <odysseyhyd@gmail.com>\n"
1515
"Language-Team: \n"
@@ -27,11 +27,20 @@ msgstr "Desenfocar la vista general de les finestres obertes"
2727
msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
30-
"Ajusteu el nivell d'atenuació per a la vista general (pantalla de "
31-
"selecció de finestres)"
30+
"Ajusteu el nivell d'atenuació per a la vista general (pantalla de selecció "
31+
"de finestres)"
3232

33-
#. settings-schema.json->opacity->description
34-
msgid "Overview (window selection screen) background dimming percentage"
33+
#. settings-schema.json->header->description
34+
#, fuzzy
35+
msgid "Blur Overview (window selection screen) settings"
3536
msgstr ""
3637
"Percentatge d'atenuació de la vista general (pantalla de selecció de "
3738
"finestres)"
39+
40+
#. settings-schema.json->opacity->description
41+
msgid "Dim Background (percentage)"
42+
msgstr ""
43+
44+
#. settings-schema.json->blur->description
45+
msgid "Blur Background"
46+
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/da.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2022-08-09 19:18+0200\n"
1313
"Last-Translator: Alan Mortensen <alanmortensen.am@gmail.com>\n"
1414
"Language-Team: \n"
@@ -28,6 +28,14 @@ msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
3030

31+
#. settings-schema.json->header->description
32+
msgid "Blur Overview (window selection screen) settings"
33+
msgstr ""
34+
3135
#. settings-schema.json->opacity->description
32-
msgid "Overview (window selection screen) background dimming percentage"
36+
msgid "Dim Background (percentage)"
37+
msgstr ""
38+
39+
#. settings-schema.json->blur->description
40+
msgid "Blur Background"
3341
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/de.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2021-03-14 15:59+0100\n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -28,6 +28,14 @@ msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
3030

31+
#. settings-schema.json->header->description
32+
msgid "Blur Overview (window selection screen) settings"
33+
msgstr ""
34+
3135
#. settings-schema.json->opacity->description
32-
msgid "Overview (window selection screen) background dimming percentage"
36+
msgid "Dim Background (percentage)"
37+
msgstr ""
38+
39+
#. settings-schema.json->blur->description
40+
msgid "Blur Background"
3341
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/es.po

+15-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2024-09-12 11:19-0300\n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -26,11 +26,20 @@ msgstr "Desenfocar la vista general de las ventanas abiertas"
2626
msgid ""
2727
"Adjust the background dimming for the overview (window selection screen)"
2828
msgstr ""
29-
"Ajuste la atenuación del fondo para la vista general (pantalla de "
30-
"selección de ventanas)"
29+
"Ajuste la atenuación del fondo para la vista general (pantalla de selección "
30+
"de ventanas)"
31+
32+
#. settings-schema.json->header->description
33+
#, fuzzy
34+
msgid "Blur Overview (window selection screen) settings"
35+
msgstr ""
36+
"Vista general (pantalla de selección de ventanas) porcentaje de atenuación "
37+
"de fondo"
3138

3239
#. settings-schema.json->opacity->description
33-
msgid "Overview (window selection screen) background dimming percentage"
40+
msgid "Dim Background (percentage)"
41+
msgstr ""
42+
43+
#. settings-schema.json->blur->description
44+
msgid "Blur Background"
3445
msgstr ""
35-
"Vista general (pantalla de selección de ventanas) porcentaje de "
36-
"atenuación de fondo"

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/eu.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1111
"extensions/issues\n"
12-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
12+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1313
"PO-Revision-Date: 2024-05-30 9:50+1\n"
1414
"Last-Translator: Muxutruk <muxutruk2@users.noreply.github.com>\n"
1515
"Language-Team: Basque <muxutruk2@users.noreply.github.com>\n"
@@ -27,6 +27,14 @@ msgid ""
2727
"Adjust the background dimming for the overview (window selection screen)"
2828
msgstr ""
2929

30+
#. settings-schema.json->header->description
31+
msgid "Blur Overview (window selection screen) settings"
32+
msgstr ""
33+
3034
#. settings-schema.json->opacity->description
31-
msgid "Overview (window selection screen) background dimming percentage"
35+
msgid "Dim Background (percentage)"
36+
msgstr ""
37+
38+
#. settings-schema.json->blur->description
39+
msgid "Blur Background"
3240
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/fi.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2024-07-25 17:47+0300\n"
1313
"Last-Translator: Kimmo Kujansuu <mrkujansuu@gmail.com>\n"
1414
"Language-Team: \n"
@@ -28,6 +28,14 @@ msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
3030

31+
#. settings-schema.json->header->description
32+
msgid "Blur Overview (window selection screen) settings"
33+
msgstr ""
34+
3135
#. settings-schema.json->opacity->description
32-
msgid "Overview (window selection screen) background dimming percentage"
36+
msgid "Dim Background (percentage)"
37+
msgstr ""
38+
39+
#. settings-schema.json->blur->description
40+
msgid "Blur Background"
3341
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/hu.po

+13-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2024-10-02 10:08+0200\n"
1313
"Last-Translator: Kálmán „KAMI” Szalai <kami911@gmail.com>\n"
1414
"Language-Team: \n"
@@ -26,11 +26,19 @@ msgstr "Elmosott áttekintés"
2626
msgid ""
2727
"Adjust the background dimming for the overview (window selection screen)"
2828
msgstr ""
29-
"Állítsa be a háttér elsötétítését az áttekintéshez (ablakválasztó "
30-
"képernyő)"
29+
"Állítsa be a háttér elsötétítését az áttekintéshez (ablakválasztó képernyő)"
3130

32-
#. settings-schema.json->opacity->description
33-
msgid "Overview (window selection screen) background dimming percentage"
31+
#. settings-schema.json->header->description
32+
#, fuzzy
33+
msgid "Blur Overview (window selection screen) settings"
3434
msgstr ""
3535
"Áttekintés (ablakválasztó képernyő) a háttér elsötétítésének százalékos "
3636
"aránya"
37+
38+
#. settings-schema.json->opacity->description
39+
msgid "Dim Background (percentage)"
40+
msgstr ""
41+
42+
#. settings-schema.json->blur->description
43+
msgid "Blur Background"
44+
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/it.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2022-06-03 10:44+0200\n"
1313
"Last-Translator: Dragone2 <dragone2@risposteinformatiche.it>\n"
1414
"Language-Team: \n"
@@ -28,6 +28,14 @@ msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
3030

31+
#. settings-schema.json->header->description
32+
msgid "Blur Overview (window selection screen) settings"
33+
msgstr ""
34+
3135
#. settings-schema.json->opacity->description
32-
msgid "Overview (window selection screen) background dimming percentage"
36+
msgid "Dim Background (percentage)"
37+
msgstr ""
38+
39+
#. settings-schema.json->blur->description
40+
msgid "Blur Background"
3341
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/nl.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2024-04-16 15:30+0200\n"
1313
"Last-Translator: qadzek\n"
1414
"Language-Team: \n"
@@ -26,6 +26,14 @@ msgid ""
2626
"Adjust the background dimming for the overview (window selection screen)"
2727
msgstr ""
2828

29+
#. settings-schema.json->header->description
30+
msgid "Blur Overview (window selection screen) settings"
31+
msgstr ""
32+
2933
#. settings-schema.json->opacity->description
30-
msgid "Overview (window selection screen) background dimming percentage"
34+
msgid "Dim Background (percentage)"
35+
msgstr ""
36+
37+
#. settings-schema.json->blur->description
38+
msgid "Blur Background"
3139
msgstr ""

blur-overview@nailfarmer.nailfarmer.com/files/blur-overview@nailfarmer.nailfarmer.com/po/pt_BR.po

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
11+
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
1212
"PO-Revision-Date: 2021-09-26 21:23-0300\n"
1313
"Last-Translator: Marcelo Aof\n"
1414
"Language-Team: \n"
@@ -28,6 +28,14 @@ msgid ""
2828
"Adjust the background dimming for the overview (window selection screen)"
2929
msgstr ""
3030

31+
#. settings-schema.json->header->description
32+
msgid "Blur Overview (window selection screen) settings"
33+
msgstr ""
34+
3135
#. settings-schema.json->opacity->description
32-
msgid "Overview (window selection screen) background dimming percentage"
36+
msgid "Dim Background (percentage)"
37+
msgstr ""
38+
39+
#. settings-schema.json->blur->description
40+
msgid "Blur Background"
3341
msgstr ""

0 commit comments

Comments
 (0)