Skip to content

Commit c32731a

Browse files
authored
[BlurCinnamon@klangman] Version 1.1.0 Unique panel effects / fixes (#813)
- Add the ability to apply different effects for every panel (or disable effects for some panels) based on the panel location and the monitor it is on - Fix the blur overlay animation for showing/hiding a panel when the panel is not set to "Always show panel" - Simplify the settings: always show the dimming color but default to black giving a traditional dimming effect - Add an option to prevent the extension from modifying the panel setting, so it it will only add a blur effect under the panel. This is useful when using a theme that is already transparent and you want the themes settings to remain
1 parent 7c3c450 commit c32731a

File tree

7 files changed

+405
-206
lines changed

7 files changed

+405
-206
lines changed

BlurCinnamon@klangman/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.1.0
4+
5+
- Added the ability to apply different effects for every panel (or disable effects for some panels) based on the panel location and the monitor it is on
6+
- Fixed the blur overlay animation for showing/hiding a panel when the panel is not set to "Always show panel"
7+
- Simplify the settings: always show the dimming color but default to black giving a traditional dimming effect
8+
- Added an option to prevent the extension from modifying the panel setting, so it it will only add a blur effect under the panel. This is useful when using a theme that is already transparent and you want the themes settings to remain
9+
310
## 1.0.0
411

512
* Initial version committed to cinnamon spices

BlurCinnamon@klangman/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ A Cinnamon extension to Dim, Blur and Colorize parts of the Cinnamon Desktop.
77
1. Gaussian blur algorithm (borrowed from the Gnome extension Blur-my-Shell) with a user configurable intensity
88
2. Dimming overlay with user configurable color and intensity (0-100%, transparent to a solid color)
99
3. Simple blur algorithm (the Cinnamon built-in algorithm) which I would only recommend for very old computers
10-
4. Makes the Panels and the Expo transparent so that the desktop background image effects are visible
10+
4. Makes the Panels and the Expo transparent so that the desktop background image blur effects are visible
1111
5. Applies blurring, colorization and dimming effects to all Panels, the Overview and the Expo
1212
6. You can use general settings for Panels/Overview/Expo or use unique settings for each Cinnamon component
13+
7. Allows unique settings for each panel based on it's location and the monitor is is on
1314

1415
## Requirements
1516

BlurCinnamon@klangman/files/BlurCinnamon@klangman/6.0/extension.js

Lines changed: 150 additions & 100 deletions
Large diffs are not rendered by default.

BlurCinnamon@klangman/files/BlurCinnamon@klangman/6.0/settings-schema.json

Lines changed: 68 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"generic-effect-settings" : {
3333
"type" : "section",
3434
"title" : "Generic effect settings",
35-
"keys" : ["opacity", "colorBlend", "blendColor", "blurType", "radius"]
35+
"keys" : ["opacity", "blendColor", "blurType", "radius"]
3636
},
3737

3838
"overview-override" : {
@@ -44,7 +44,7 @@
4444
"type" : "section",
4545
"title" : "Overview effect settings",
4646
"dependency" : "enable-overview-override=1",
47-
"keys" : ["overview-opacity", "overview-colorBlend", "overview-blendColor", "overview-blurType", "overview-radius"]
47+
"keys" : ["overview-opacity", "overview-blendColor", "overview-blurType", "overview-radius"]
4848
},
4949

5050
"expo-override" : {
@@ -56,19 +56,19 @@
5656
"type" : "section",
5757
"title" : "Expo effect settings",
5858
"dependency" : "enable-expo-override=1",
59-
"keys" : ["expo-opacity", "expo-colorBlend", "expo-blendColor", "expo-blurType", "expo-radius"]
59+
"keys" : ["expo-opacity", "expo-blendColor", "expo-blurType", "expo-radius"]
6060
},
6161

6262
"panels-override" : {
6363
"type" : "section",
6464
"title" : "Panels settings",
65-
"keys" : ["enable-panels-override", "panels-info"]
65+
"keys" : ["enable-panels-override", "panels-info", "allow-transparent-color-panels" ]
6666
},
6767
"panels-effect-settings" : {
6868
"type" : "section",
6969
"title" : "Panel effects settings",
70-
"dependency" : "enable-panels-override=1",
71-
"keys" : ["panels-opacity", "panels-colorBlend", "panels-blendColor", "panels-blurType", "panels-radius"]
70+
"dependency" : "enable-panels-override",
71+
"keys" : ["enable-panel-unique-settings", "panel-unique-settings", "panels-opacity", "panels-blendColor", "panels-blurType", "panels-radius"]
7272
}
7373

7474
},
@@ -107,6 +107,12 @@
107107
"description" : "Panel effects are currently disabled under the General tab.",
108108
"dependency" : "!enable-panels-effects"
109109
},
110+
"allow-transparent-color-panels" : {
111+
"type": "switch",
112+
"description": "Modify the panels transparency and background color (recommended)",
113+
"tooltip": "Allow this extension to modify the panels transparency and background color settings. If this is disabled the extension will only apply a blur overlay under the panels. This setting should only be disabled when the theme already uses transparent panels and you want the themes setting to apply",
114+
"default": true
115+
},
110116

111117
"enable-overview-override" : {
112118
"type": "switch",
@@ -127,6 +133,34 @@
127133
"default": false
128134
},
129135

136+
"enable-panel-unique-settings" : {
137+
"type": "switch",
138+
"description": "Use unique effect settings for each panel",
139+
"dependency" : "enable-panels-override",
140+
"default": false
141+
},
142+
143+
"panel-unique-settings" : {
144+
"type" : "list",
145+
"description" : "Panel specific settings",
146+
"dependency" : "enable-panel-unique-settings",
147+
"columns" : [
148+
{"id": "enabled", "title": "Enabled", "type": "boolean", "default": true},
149+
{"id": "panels", "title": "Panel", "type": "integer", "default": 0, "options": { "All" : 0, "Top" : 1, "Bottom" : 2, "Left" : 3, "Right" : 4 } },
150+
{"id": "monitors", "title": "Monitor", "type": "integer", "default": 0, "options": { "All" : 100, "1" : 0, "2" : 1, "3" : 2, "4" : 3 } },
151+
{"id": "opacity", "title": "Dimming", "type": "integer", "default": 40, "min": 0, "max": 100},
152+
{"id": "color", "title": "Color", "type": "string", "default": "rgb(0,0,0)"},
153+
{"id": "blurtype", "title": "Blur", "type": "integer", "default": 2, "options": { "None": 0, "Simple": 1, "Gaussian": 2 } },
154+
{"id": "radius", "title": "Intensity", "type": "integer", "default": 10, "min": 0, "max": 100}
155+
],
156+
"tooltip": "Defines the effects applied to different panels. If a panel does not meet the criteria of any enabled entry in this list, it will have no effects applied. The settings of the first entry in this list that can apply to a given panel will take effect. The color field is in the rgb(#,#,#) syntax and black will be used when a color is not provided or is in an incorrect syntax",
157+
"default" : [
158+
{ "enabled": true, "panels": 1, "monitors": 0, "opacity": 40, "color": "rgb(0,0,0)", "blurtype": 2, "radius": 10 },
159+
{ "enabled": true, "panels": 2, "monitors": 0, "opacity": 40, "color": "rgb(0,0,0)", "blurtype": 2, "radius": 10 },
160+
{ "enabled": true, "panels": 3, "monitors": 0, "opacity": 40, "color": "rgb(0,0,0)", "blurtype": 2, "radius": 10 },
161+
{ "enabled": true, "panels": 4, "monitors": 0, "opacity": 40, "color": "rgb(0,0,0)", "blurtype": 2, "radius": 10 }
162+
]
163+
},
130164

131165
"opacity" : {
132166
"type": "scale",
@@ -137,18 +171,11 @@
137171
"step": 1
138172
},
139173

140-
"colorBlend" : {
141-
"type": "switch",
142-
"description": "Enable color blend effect",
143-
"tooltip": "Use a custom color as the dimming overlay color. The color intensity can be controlled using the \"Dim Background\" slider control above",
144-
"default": false
145-
},
146-
147174
"blendColor": {
148175
"type": "colorchooser",
149-
"description" : "Blend effect Color",
150-
"dependency" : "colorBlend=true",
151-
"default": "rgb(0,0,0)"
176+
"description" : "Dimming overlay color",
177+
"default": "rgb(0,0,0)",
178+
"tooltip": "Defines the color that is blended into the background based on the dimming control above. Use black for a normal dimming effect or some other color for a color blend effect"
152179
},
153180

154181
"blurType": {
@@ -184,18 +211,11 @@
184211
"step": 1
185212
},
186213

187-
"overview-colorBlend" : {
188-
"type": "switch",
189-
"description": "Enable color blend effect",
190-
"tooltip": "Use a custom color as the dimming overlay color. The color intensity can be controlled using the \"Dim Background\" slider control above",
191-
"default": false
192-
},
193-
194214
"overview-blendColor": {
195215
"type": "colorchooser",
196-
"description" : "Blend effect Color",
197-
"dependency" : "overview-colorBlend=true",
198-
"default": "rgb(0,0,0)"
216+
"description" : "Dimming overlay color",
217+
"default": "rgb(0,0,0)",
218+
"tooltip": "Defines the color that is blended into the background based on the dimming control above. Use black for a normal dimming effect or some other color for a color blend effect"
199219
},
200220

201221
"overview-blurType": {
@@ -228,21 +248,16 @@
228248
"min": 0,
229249
"max": 100,
230250
"default": 40,
231-
"step": 1
232-
},
233-
234-
"expo-colorBlend" : {
235-
"type": "switch",
236-
"description": "Enable color blend effect",
237-
"tooltip": "Use a custom color as the dimming overlay color. The color intensity can be controlled using the \"Dim Background\" slider control above",
238-
"default": false
251+
"step": 1,
252+
"dependency" : "enable-expo-override=1"
239253
},
240254

241255
"expo-blendColor": {
242256
"type": "colorchooser",
243-
"description" : "Blend effect Color",
244-
"dependency" : "expo-colorBlend=true",
245-
"default": "rgb(0,0,0)"
257+
"description" : "Dimming overlay color",
258+
"default": "rgb(0,0,0)",
259+
"dependency" : "enable-expo-override=1",
260+
"tooltip": "Defines the color that is blended into the background based on the dimming control above. Use black for a normal dimming effect or some other color for a color blend effect"
246261
},
247262

248263
"expo-blurType": {
@@ -254,7 +269,8 @@
254269
"Gaussian": 2
255270
},
256271
"description": "Type of blur effect",
257-
"tooltip": "What type of blur algorithm should be used to blur the background"
272+
"tooltip": "What type of blur algorithm should be used to blur the background",
273+
"dependency" : "enable-expo-override=1"
258274
},
259275

260276
"expo-radius": {
@@ -263,9 +279,9 @@
263279
"min" : 0.0,
264280
"max" : 100,
265281
"step" : 0.1,
266-
"dependency" : "expo-blurType=2",
267282
"tooltip": "Adjusts the intensity of the blur effect by changing the radius use by the effect.",
268-
"default": 9
283+
"default": 9,
284+
"dependency" : "enable-expo-override=1"
269285
},
270286

271287

@@ -275,21 +291,16 @@
275291
"min": 0,
276292
"max": 100,
277293
"default": 30,
278-
"step": 1
279-
},
280-
281-
"panels-colorBlend" : {
282-
"type": "switch",
283-
"description": "Enable color blend effect",
284-
"tooltip": "Use a custom color as the dimming overlay color. The color intensity can be controlled using the \"Dim Background\" slider control above",
285-
"default": false
294+
"step": 1,
295+
"dependency" : "!enable-panel-unique-settings"
286296
},
287297

288298
"panels-blendColor": {
289299
"type": "colorchooser",
290-
"description" : "Blend effect Color",
291-
"dependency" : "panels-colorBlend=true",
292-
"default": "rgb(0,0,0)"
300+
"description" : "Dimming ovrerlay color",
301+
"default": "rgb(0,0,0)",
302+
"dependency" : "!enable-panel-unique-settings",
303+
"tooltip": "Defines the color that is blended into the background based on the dimming control above. Use black for a normal dimming effect or some other color for a color blend effect"
293304
},
294305

295306
"panels-blurType": {
@@ -301,17 +312,18 @@
301312
"Gaussian": 2
302313
},
303314
"description": "Type of blur effect",
304-
"tooltip": "What type of blur algorithm should be used to blur the background"
315+
"tooltip": "What type of blur algorithm should be used to blur the background",
316+
"dependency" : "!enable-panel-unique-settings"
305317
},
306318

307319
"panels-radius": {
308320
"type": "scale",
309-
"description" : "Gaussian blur intensity",
321+
"description" : "Blur intensity (Gaussian only)",
310322
"min" : 0.0,
311323
"max" : 100,
312324
"step" : 0.1,
313-
"dependency" : "panels-blurType=2",
314-
"tooltip": "Adjusts the intensity of the blur effect by changing the radius use by the effect.",
315-
"default": 6
325+
"tooltip": "Adjusts the intensity of the Gaussian blur effect by changing the radius use by the effect. This setting does not effect the Simple blur type",
326+
"default": 6,
327+
"dependency" : "!enable-panel-unique-settings"
316328
}
317329
}

BlurCinnamon@klangman/files/BlurCinnamon@klangman/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"uuid": "BlurCinnamon@klangman",
33
"name": "Blur Cinnamon",
4-
"version": "1.0.0",
4+
"version": "1.1.0",
55
"description": "Allows you to blur, colorize and adjust the dimming of some Cinnamon Desktop components (i.e. Panels, Overview, Expo)",
66
"url": "https://github.com/klangman/BlurCinnamon",
77
"cinnamon-version": [

0 commit comments

Comments
 (0)