socks-the-fox / Chameleon

Chameleon plugin for Rainmeter
Other
50 stars 0 forks source link

Suggestion: Add a luminance offset to Foreground1 color, Background1 color, etc. #13

Open Cariboudjan opened 3 years ago

Cariboudjan commented 3 years ago

Issues I encounter with Chameleon plugin are that I want a skin to match the background, but not match it exactly. The boarders of the skin are camouflaged, making the skin's shape invisible. (See the "current" image below)

Please add the option to add a luminance offset to each color. So, for example, if the Background1 color is 38,18,30, setting a LumOffset of 10 would increase each RGB value by 10, clamping at 255. So the result would be 48,18,30 (Or its hex equivalent).

A LumOffset of -20, for example, would darken the color by 20. So if Foreground1 color is 38,18,30, setting a LumOffset of -20 would decrease each RGB value by 20, clamping at 0. So the result would be 18,0,10 (Or its hex equivalent).

[DesktopBG1]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Color=Background1
Format=Dec
LumOffset=10

[DesktopFG1]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Color=Foreground1
Format=Dec
LumOffset=-20

Sample: image

socks-the-fox commented 3 years ago

I feel like this might be a little out of the scope of what Chameleon should do, as it might be better to send the results Chameleon gives to a Lua or Calc measure to handle calculating that (probably Lua, since it can handle all the string parsing and whatnot for you).