It is currently March 28th, 2024, 10:07 pm

Using SolidColor

Tips and Tricks from the Rainmeter Community
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Using SolidColor

Post by jsmorley »

One of the general settings for meters, those available on all meter types, is SolidColor. This is a handy little option that has a couple of uses which may not be obvious from the manual.

- It can be used to create a background for any meter. It is set like any other color with RRR,GGG,BBB,AAA (decimal) or RRGGBBAA (hex) with "A" being "alpha / transparency" from 0-255. The background created will be exactly the size of the meter as defined either by what is in the meter or the W and H settings.

- It can be used to create a solid but invisible background on a meter, to make it easier to click on something that has a lot of transparent areas. This is very useful with String meters so you don't have to click exactly on the text characters, or Image meters where a .png image has a lot of transparency. To accomplish this, simply add SolidColor=0,0,0,1 to the meter.

Code: Select all

[MeterImage]
Meter=Image
ImageName=#@#Images\Arrow.png
SolidColor=0,0,0,1

[MeterString]
Meter=String
FontColor=255,0,0,255
SolidColor=0,0,0,1
Text=Hello World
- When used with W and H on an Image meter without any ImageName or MeasureName defined, it can create a square or rectangular shape in any desired color.

Code: Select all

[MeterShape]
Meter=Image
W=50
H=50
SolidColor=0,255,0,255