Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Cariboudjan opened this issue Jan 22, 2021 · 1 comment

Comments

@Cariboudjan
Copy link

Cariboudjan commented Jan 22, 2021

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
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants