On to my problem: I started using the Chameleon Plugin by socks-the-fox (https://software.socksthefox.net/chameleon/), which basically chooses colors for measures based on your desktop wallpaper colors. You probably know it anyway
The thing is, I want to use the "Luminance" function implemented, which gives you a value between 0-1 by looking at the overall brightness of the wallpaper. What I want to do is, to implement an IfCondition that changes the Colors of my measures based on this luminance value. In other words when the value is above 0.5, which means the wallpaper is bright/white, the skin color changes to black and vice versa, to garantuee that the skin is actually visible no matter which wallpaper is loaded.
The thing is, i don't really know how to write and where to even place this IfCondition. I imagined it might be something like this:
Code: Select all
[ChameleonDesktop]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
[DesktopBG1]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Color=Luminance
IfAboveValue=0.5
IfAboveAction=[!SetOption MeterBatteryPercent FontColor "0,0,0,255"] [!Redraw]
IfBelowValue=0.5
IfBelowAction=[!SetOption MeterBatteryPercent Fontcolor "255,255,255,255"] [!Redraw]
[MeasureBatteryPercent]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent
[MeterBatteryPercent]
Meter=String
MeasureName=MeasureBatteryPercent
X=250
Y=237
StringAlign=CENTER
FontSize=15
FontFace=Century Gothic
FontColor=255,255,255,255
Text=%1%
AntiAlias=1
DynamicVariables=1