Skip to content

Commit

Permalink
[[email protected]] Restore blur effect (#769)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
klangman authored Nov 8, 2024
1 parent 8b679c5 commit e9ba05e
Show file tree
Hide file tree
Showing 21 changed files with 210 additions and 46 deletions.
11 changes: 11 additions & 0 deletions [email protected]/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## 1.1.0

* Restored the ability to blur the overview background. It was removed in 2021 for no reason that I can discern
* Added a config option to control if the blur effect is applied (defaults to on)
* Changed the maintainer to myself since it currently has no maintainer
* Added a README, CHANGELOG and version number



12 changes: 12 additions & 0 deletions [email protected]/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Blur Overview

Allows you to Blur and adjust the dimming of the overview's background (window selection screen)

## Installation

1. Right click on the cinnamon panel and click "System Settings"
2. Click on the "Extensions" icon under the "Preferences" category
3. Click the "Download" tab and then click the "Blur Overview" entry
4. Click the "Install" button on the right and then return to the "Manage" tab
6. Select the new "Blur Overview" entry and then click the "+" button at the bottom of the window
7. Use the "gears" icon next to the "Blur Overview" entry to open the setting window and setup the preferred behaviour
15 changes: 12 additions & 3 deletions [email protected]/files/[email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Author: Jen Bowen aka nailfarmer
// Fixes and changes 2024 by Kevin Langman

const Clutter = imports.gi.Clutter;
const Tweener = imports.ui.tweener;
Expand All @@ -27,7 +28,7 @@ const Settings = imports.ui.settings;

const ANIMATION_TIME = 0.25;

let originalAnimate, fx;
let originalAnimate;

let settings;

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

this._oldAnimateVisible();

// Get the overview's backgroundShade child and set it's color to solid black
let children = this._background.get_children();
// Get the overview's background image and add the BlurEffect to it if configured to do so
if (settings.blur) {
let desktopBackground = children[0];
let fx = new Clutter.BlurEffect();
desktopBackground.add_effect_with_name( "blur", fx );
}
// Get the overview's backgroundShade child and set it's color to see-through solid black
let backgroundShade = children[1];
let [ret,color] = Clutter.Color.from_string( "rgba(0,0,0,1)" );
backgroundShade.set_opacity(0);
backgroundShade.set_background_color(color);

// Dim the backgroundShade to the configured percentage
// Dim the backgroundShade by making the black color less see-through by the configured percentage
Tweener.addTween( backgroundShade,
{ opacity: Math.round(settings.opacity*2.55),
time: ANIMATION_TIME,
Expand All @@ -59,6 +67,7 @@ BlurSettings.prototype = {
_init: function(uuid) {
this.settings = new Settings.ExtensionSettings(this, uuid);
this.settings.bindProperty(Settings.BindingDirection.IN, 'opacity', 'opacity', null);
this.settings.bindProperty(Settings.BindingDirection.IN, 'blur', 'blur', null);
}
};

Expand Down
3 changes: 2 additions & 1 deletion [email protected]/files/[email protected]/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"uuid": "[email protected]",
"name": "Blur Overview",
"description": "Adjust the background dimming for the overview (window selection screen)",
"version": "1.1.0",
"description": "Allows you to blur and adjust the dimming of the overview's background (window selection screen)",
"cinnamon-version": [
"3.4",
"3.6",
Expand Down
12 changes: 10 additions & 2 deletions ...es/[email protected]/po/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: [email protected] 1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -26,6 +26,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
19 changes: 14 additions & 5 deletions [email protected]/files/[email protected]/po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-09-14 03:03+0200\n"
"Last-Translator: Odyssey <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -27,11 +27,20 @@ msgstr "Desenfocar la vista general de les finestres obertes"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""
"Ajusteu el nivell d'atenuació per a la vista general (pantalla de "
"selecció de finestres)"
"Ajusteu el nivell d'atenuació per a la vista general (pantalla de selecció "
"de finestres)"

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
#. settings-schema.json->header->description
#, fuzzy
msgid "Blur Overview (window selection screen) settings"
msgstr ""
"Percentatge d'atenuació de la vista general (pantalla de selecció de "
"finestres)"

#. settings-schema.json->opacity->description
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2022-08-09 19:18+0200\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -28,6 +28,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2021-03-14 15:59+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -28,6 +28,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
21 changes: 15 additions & 6 deletions [email protected]/files/[email protected]/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-09-12 11:19-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -26,11 +26,20 @@ msgstr "Desenfocar la vista general de las ventanas abiertas"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""
"Ajuste la atenuación del fondo para la vista general (pantalla de "
"selección de ventanas)"
"Ajuste la atenuación del fondo para la vista general (pantalla de selección "
"de ventanas)"

#. settings-schema.json->header->description
#, fuzzy
msgid "Blur Overview (window selection screen) settings"
msgstr ""
"Vista general (pantalla de selección de ventanas) porcentaje de atenuación "
"de fondo"

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
"Vista general (pantalla de selección de ventanas) porcentaje de "
"atenuación de fondo"
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-05-30 9:50+1\n"
"Last-Translator: Muxutruk <[email protected]>\n"
"Language-Team: Basque <[email protected]>\n"
Expand All @@ -27,6 +27,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-07-25 17:47+0300\n"
"Last-Translator: Kimmo Kujansuu <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -28,6 +28,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
18 changes: 13 additions & 5 deletions [email protected]/files/[email protected]/po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-10-02 10:08+0200\n"
"Last-Translator: Kálmán „KAMI” Szalai <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -26,11 +26,19 @@ msgstr "Elmosott áttekintés"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""
"Állítsa be a háttér elsötétítését az áttekintéshez (ablakválasztó "
"képernyő)"
"Állítsa be a háttér elsötétítését az áttekintéshez (ablakválasztó képernyő)"

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
#. settings-schema.json->header->description
#, fuzzy
msgid "Blur Overview (window selection screen) settings"
msgstr ""
"Áttekintés (ablakválasztó képernyő) a háttér elsötétítésének százalékos "
"aránya"

#. settings-schema.json->opacity->description
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2022-06-03 10:44+0200\n"
"Last-Translator: Dragone2 <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -28,6 +28,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2024-04-16 15:30+0200\n"
"Last-Translator: qadzek\n"
"Language-Team: \n"
Expand All @@ -26,6 +26,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
12 changes: 10 additions & 2 deletions [email protected]/files/[email protected]/po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"POT-Creation-Date: 2024-11-07 23:19-0500\n"
"PO-Revision-Date: 2021-09-26 21:23-0300\n"
"Last-Translator: Marcelo Aof\n"
"Language-Team: \n"
Expand All @@ -28,6 +28,14 @@ msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->header->description
msgid "Blur Overview (window selection screen) settings"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Overview (window selection screen) background dimming percentage"
msgid "Dim Background (percentage)"
msgstr ""

#. settings-schema.json->blur->description
msgid "Blur Background"
msgstr ""
Loading

0 comments on commit e9ba05e

Please sign in to comment.