Skip to content

Commit

Permalink
[[email protected]] Fix for Mint 20+/Cinnamon 4…
Browse files Browse the repository at this point in the history
….6+ (#740)

1. Fix to work with Mint 20+/Cinnamon 4.6+ (tested Mint20.3 and Mint22)
2. Changed the config slider to be a percentage
3. Clarified the wording so that it makes it a bit more clear that this really is a dimming effect not really a blur effect
  • Loading branch information
klangman authored Sep 12, 2024
1 parent 5abc744 commit 5ccf4f5
Show file tree
Hide file tree
Showing 18 changed files with 187 additions and 147 deletions.
13 changes: 10 additions & 3 deletions [email protected]/files/[email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@ let settings;
function _animateVisible() {
if (this.visible || this.animationInProgress)
return;

this._oldAnimateVisible();

Tweener.addTween(this._background,
{ opacity: settings.opacity,
// Get the overview's backgroundShade child and set it's color to solid black
let children = this._background.get_children();
let backgroundShade = children[1];
let [ret,color] = Clutter.Color.from_string( "rgba(0,0,0,1)" );
backgroundShade.set_background_color(color);

// Dim the backgroundShade to the configured percentage
Tweener.addTween( backgroundShade,
{ opacity: Math.round(settings.opacity*2.55),
time: ANIMATION_TIME,
transition: 'easeNone'
});
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/files/[email protected]/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"uuid": "[email protected]",
"name": "Blur Overview",
"description": "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])",
"description": "Adjust the background dimming for the overview (window selection screen)",
"cinnamon-version": [
"3.4",
"3.6",
Expand Down
25 changes: 13 additions & 12 deletions ...es/[email protected]/po/[email protected]
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# BLUR OVERVIEW
# This file is put in the public domain.
# nailfarmer, 2017
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"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"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -22,9 +22,10 @@ msgid "Blur Overview"
msgstr ""

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
16 changes: 9 additions & 7 deletions [email protected]/files/[email protected]/po/ca.po
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Odyssey <[email protected]>, 2024.
Expand All @@ -7,8 +7,9 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2024-07-25 16:56+0200\n"
"Last-Translator: Odyssey <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -23,9 +24,10 @@ msgid "Blur Overview"
msgstr "Desenfocar la vista general de les finestres obertes"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Desenfocar el fons mostrant totes les finestres obertes a l'escriptori actual ([Ctrl]+[Alt]+[Fletxa avall])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Opacitat del fons en mostrar totes les finestres obertes a l'escriptori actual ([Ctrl]+[Alt]+[Fletxa avall])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
22 changes: 12 additions & 10 deletions [email protected]/files/[email protected]/po/da.po
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2022-08-09 19:18+0200\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Language-Team: \n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: da\n"

#. metadata.json->name
msgid "Blur Overview"
msgstr "Sløret oversigt"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Sløret baggrund i oversigten (Ctrl+Alt+Pil ned)"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Baggrundens uigennemsigtighed i oversigt (Ctrl+Alt+Pil ned)"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
22 changes: 12 additions & 10 deletions [email protected]/files/[email protected]/po/de.po
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2021-03-14 15:59+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: de\n"

#. metadata.json->name
msgid "Blur Overview"
msgstr "Übersichtsmodus-Unschärfe"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Hintergrund im Übersichtsmodus verwischen ([Strg]+[Alt]+[Pfeil runter])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Deckkraft des Hintergrunds im Übersichtsmodus ([Strg]+[Alt]+[Pfeil runter])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
18 changes: 10 additions & 8 deletions [email protected]/files/[email protected]/po/es.po
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2023-11-03 12:40-0300\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -22,9 +23,10 @@ msgid "Blur Overview"
msgstr "Desenfocar la vista general de las ventanas abiertas"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Desenfocar el fondo mostrando todas las ventanas abiertas en el escritorio actual ([Ctrl]+[Alt]+[Flecha abajo])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Opacidad del fondo al mostrar todas las ventanas abiertas en el escritorio actual ([Ctrl]+[Alt]+[Flecha abajo])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
17 changes: 9 additions & 8 deletions [email protected]/files/[email protected]/po/eu.po
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\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 @@ -22,10 +23,10 @@ msgid "Blur Overview"
msgstr "Lausotzea Ikuspegi Orokorrean"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Horma-papera lausotu ikuspegi orokorrean ([Ctrl]+[Alt]+[Behera])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
"Horma-paperaren opakutasuna ikuspegi orokorrean ([Ctrl]+[Alt]+[Behera])"
22 changes: 12 additions & 10 deletions [email protected]/files/[email protected]/po/fi.po
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2024-07-25 17:47+0300\n"
"Last-Translator: Kimmo Kujansuu <[email protected]>\n"
"Language-Team: \n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: Kimmo Kujansuu <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: fi\n"

#. metadata.json->name
msgid "Blur Overview"
msgstr "Sumennettu esittely"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Sumetaa avoimet ohjelmat taustalle painamalla ([Ctrl]+[Alt]+[nuoli alas])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Taustan peittävyys kun painat ([Ctrl]+[Alt]+[nuoli alas])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
22 changes: 12 additions & 10 deletions [email protected]/files/[email protected]/po/hu.po
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2021-09-26 08:21+0200\n"
"Last-Translator: Kálmán „KAMI” Szalai <[email protected]>\n"
"Language-Team: \n"
"Language: hu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Kálmán „KAMI” Szalai <[email protected]>\n"
"Language-Team: \n"
"X-Generator: Poedit 2.3\n"

#. metadata.json->name
msgid "Blur Overview"
msgstr "Elmosott áttekintés"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Háttér elmosása áttekintésnél ([Ctrl]+[Alt]+[Down Arrow])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Háttér átlátszatlansága áttekintésnél ([Ctrl]+[Alt]+[Down Arrow])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
22 changes: 12 additions & 10 deletions [email protected]/files/[email protected]/po/it.po
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# SOME DESCRIPTIVE TITLE.
# BLUR OVERVIEW
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# nailfarmer, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-14 14:54+0000\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2024-09-11 23:37-0400\n"
"PO-Revision-Date: 2022-06-03 10:44+0200\n"
"Last-Translator: Dragone2 <[email protected]>\n"
"Language-Team: \n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: Dragone2 <[email protected]>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: it\n"

#. metadata.json->name
msgid "Blur Overview"
msgstr "Sfocatura della Panoramica"

#. metadata.json->description
msgid "Blur background in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Sfocatura dello sfondo in panoramica ([Ctrl]+[Alt]+[Freccia Giù])"
msgid ""
"Adjust the background dimming for the overview (window selection screen)"
msgstr ""

#. settings-schema.json->opacity->description
msgid "Background opacity in overview ([Ctrl]+[Alt]+[Down Arrow])"
msgstr "Opacità dello sfondo in panoramica ([Ctrl]+[Alt]+[Freccia Giù])"
msgid "Overview (window selection screen) background dimming percentage"
msgstr ""
Loading

0 comments on commit 5ccf4f5

Please sign in to comment.