[ Direct Link ]
It will allow you to change any color defined in variables.inc or create new one.
You can chose to set RGBA color with an alpha channel to set some transparency to the color, or only RGB color - this can be usefull if you have a rainmeter suite in one tone and with several defined colors with different transparencies; you can change only the main color and all other will change
(if you have for example variables
BlueColor=20,20,220 ; as the main color
BlueBackground=#BlueColor#,50 ; for soft backgrounds
BlueAnother=#BlueColor#,150 ; for bars and roundlines...)
It will remember the last edited color and will allow you to reverse the changes if you aren't satisfied (however, it will not allow you to "destroy" a new colour you have created).
THERE IS A BETA VERSION TOO? What is the difference?
Exper1mental had some nice and productive suggestions so I wanted to implement them in the skin. The Beta (in the meaning of "second")...
- has come with simply adjustable size. (Included in the original version now too.)
- allows you also to enter the numeric value of desired color.
- has a little RGB(A) HEX converter so you can also see a HEX value of your color or enter the value to the box to get the color. However, the final color is always saved in RGB(A) format.
- requires latest 3.1 Beta version of Rainmeter as it uses IfCondition functions.
How to work with it?
You will need a variables.inc file where you store your clors and other stuff (if you don't understand using the external .inc files, you should reconsider using this). So, when you have that external variables.inc, open ColorSetter (and ColorSetter-Aplha) for editing and put a path for your file to the first @Include in [Variables] section (idealy something like @Include=#SKINSPATH#MySuiteFolder\#@#variables.inc). Then you just need to load the skin (RGB or RGBA, whichever you need), remember the name of your variable and put it in the "Change me" box (press ENTER!). If you are "editing" some color you already have created, the actual color should appear in the left part of the little box next to the "Chosen color:" label. Play with the tint, shade and alpha and click the "Apply new color" when you are done.
If you want to implement it in your own skin, and let the user to change the color, copy the code, adjust the positions etc... Obviously, you will not want the user to write there a name of some variable, so throw away the [InputColor] measure and [ChangedVariable] meter, you will not need those. However, you will still need to set the variable, so you cand create some new string meters for example and do something like this:
Code: Select all
[LabelForText]
Meter=String
Text=Change the color of text
LeftMouseUpAction=[!WriteKeyValue Variables changedcolorvariable "NAMEOFYOURVARIABLE" "#@#variables-color.inc"][!WriteKeyValue Variables defaultcolor "#NAMEOFYOURVARIABLE#" "#@#variables-color.inc"][!Refresh]
[LabelForBackground]
Meter=String
Text=Change the color of background
LefMouseUpAction...
If you find the ColorSetter too big (it isn't small), open the ini file (ColorSetter.ini or ColorSetter-Alpha.ini), in the [Variables] section delete the semicolon on the begining of the line with ;colorsettersize=255 and write there a new value. (Or go to the variables-color.inc in the Resources folder and edit the same line.)
Requirements:
It was created with 3.1. beta Rainmeter but I believe that 3.0.2 version (latest stable releas) should be able to work with it. The Beta version requires the 3.1. Beta Rainmeter as I already said.
Doesn't need any special plugin... I don't understand them... or LUA scripting, so it is pure Rainmeter code:)
Credits
As I already said, it was inspired by jsmorley's RainRGB addon for Rainmeter and exper1mental suggested a new features for Beta version.
I hope it will be of some use for you people. Feel free to take it, edit or use in your own suites or skins, however, don't forget to mention me in credits (ideally, put there link to my DeviantArt page http://squirrel-slayer.deviantart.com/). And of course, let me know if there is anything wrong with it (again, preferably throug DeviantArt if you are there - I am there more often than here).