How do i enable/disable Acrylic blur?
I have tried this:
MouseOverAction=[!Redraw][!SetOption Blur Type Acrylic][!UpdateMeasure Blur]
MouseLeaveAction=[!Redraw][!SetOption Blur Type None][!UpdateMeasure Blur]
Also tried defining global variables and using [!SetVariable]. no luck.
Using [!CommandMeasure Blur EnableBlur] [!CommandMeasure Blur DisableBlur] forces the plugin to use normal blur instead of acrylic type.
It is currently September 8th, 2024, 12:42 am
[V1.1.2] FrostedGlass - Now with more acrylic
-
- Posts: 1
- Joined: August 18th, 2020, 12:53 am
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Hi mhunchojack
IIRC, this measure option changes blur on(1)/off(0), BlurEnabled=1.
IIRC, this measure option changes blur on(1)/off(0), BlurEnabled=1.
-
- Posts: 92
- Joined: July 18th, 2020, 1:23 am
- Location: California
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Edit: BlurEnabled= is depreciated, rather use something as [!SetOption measureFrosted Type "Acrylic"] or similar.
mak_kawa's BlurEnabled=1 does work to toggle the given blur effect, and can be used with !SetOption. If it's a change to be permanent based on the user's choice, then use !WriteKeyValue as well. An example:
Aside but might be still related and I don't think it was mentioned specifically yet, but just checked and found the slowdown when using Acrylic is a result of using Border= of any type aside from None, so Acrylic should still be useable if you remove borders.
mak_kawa's BlurEnabled=1 does work to toggle the given blur effect, and can be used with !SetOption. If it's a change to be permanent based on the user's choice, then use !WriteKeyValue as well. An example:
Code: Select all
[Rainmeter]
Update=-1
AccurateText=1
DynamicWindowSize=1
DefaultAlwaysOnTop=1
[styleText]
FontFace=Segoe UI
FontSize=10
StringAlign=CenterCenter
FontColor=255,255,255
AntiAlias=1
[measureFrosted]
Measure=Plugin
Plugin=FrostedGlass
Type=Acrylic
; Edit: BlurEnabled is depreciated
[MeterBackground]
Meter=Image
SolidColor=50,50,50,50
W=200
H=100
[MeterSelect1]
Meter=String
MeterStyle=styleText
Text=Click to Disable Acrylic
X=100
Y=40
LeftMouseUpAction=[!SetOption measureFrosted Type "None"][!Update][!Redraw]
[MeterSelect2]
Meter=String
MeterStyle=styleText
Text=Click to Enable Acrylic
X=100
Y=60
LeftMouseUpAction=[!SetOption measureFrosted Type "Acrylic"][!Update][!Redraw]
Last edited by Alex88 on August 18th, 2020, 4:06 am, edited 2 times in total.
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Ah... sorry, BlurEnabled= option is deprecated. (But still works...
)
![Grinning :-)](./images/smilies/ab2.gif)
-
- Posts: 92
- Joined: July 18th, 2020, 1:23 am
- Location: California
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Hi Alex88 and mhunchojack
My version for toggle blur, using variables...
My version for toggle blur, using variables...
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=192,192,192,64
SkinWidth=100
SkinHeight=100
[Variables]
BlurNum=0
Blur0=Blur
Blur1=None
BlurStr=#Blur0#
[someMeasure]
Measure=Plugin
Plugin=FrostedGlass
UpdateDivider=-1
Type=#BlurStr#
DynamicVariables=1
[someMeter]
Meter=String
X=5
Y=5
Text=Toggle Blur
AntiAlias=1
LeftMouseUpAction=[!SetVariable BlurNum (1-#BlurNum#)][!SetVariable BlurStr [#Blur[#BlurNum]]][!UpdateMeasure someMeasure][!UpdateMeter *][!Redraw]
DynamicVariables=1
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: [V1.1.2] FrostedGlass - Now with more acrylic
So, mhunchojack, I am not sure why your blur control code doesn't work. What I can suggest is...
But it doesn't seem to be an essential problem... Anyway, if you post your whole code here, someone might help you...
Position of the !Redraw bang seems to be somewhat problematic. What if;MouseOverAction=[!Redraw][!SetOption Blur Type Acrylic][!UpdateMeasure Blur]
MouseLeaveAction=[!Redraw][!SetOption Blur Type None][!UpdateMeasure Blur]
Code: Select all
MouseOverAction=[!SetOption Blur Type Acrylic][!UpdateMeasure Blur][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption Blur Type None][!UpdateMeasure Blur][!UpdateMeter *][!Redraw]
-
- Posts: 278
- Joined: May 12th, 2019, 8:55 am
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Still no possibility to define an area of blur (instead of covering the entire window)?
-
- Posts: 16
- Joined: December 16th, 2020, 7:04 pm
Re: [V1.1.2] FrostedGlass - Now with more acrylic
Is there any way I could just disable that like cursor thing, where it takes over.
-
- Posts: 139
- Joined: September 27th, 2017, 6:32 pm
- Location: Netherlands
Re: [V1.1.2] FrostedGlass - Now with more acrylic
It's a known issue since a certain Windows 10 update a long time ago. Just don't use Acrylic as the blur type and you'll be fine.