Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
BarSize=20
Sq1=CPU Percentage Of Usage
Sq2=■■■■■■■■■■■■■■■■■■■■
Sq3=●●●●●●●●●●●●●●●●●●●●
[MeasureCPU]
Measure=CPU
[MeterBack]
Meter=Image
W=335
H=87
SolidColor=47,47,47,255
[MeterStringBar1]
Meter=String
X=5
FontSize=#BarSize#
SolidColor=0,0,0,1
Text=#Sq1#
AntiAlias=1
DynamicVariables=1
InlineSetting=GradientColor | 180 | 119,217,108,255 ; 0.0 | 119,217,108,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; 1.0
InlinePattern=.*
[MeterStringBar2]
Meter=String
X=5
Y=0R
FontSize=#BarSize#
SolidColor=0,0,0,1
Text=#Sq2#
AntiAlias=1
DynamicVariables=1
InlineSetting=GradientColor | 180 | 119,217,108,255 ; 0.0 | 119,217,108,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; 1.0
InlinePattern=.*
[MeterStringBar3]
Meter=String
X=5
Y=0R
FontSize=#BarSize#
SolidColor=0,0,0,1
Text=#Sq3#
AntiAlias=1
DynamicVariables=1
InlineSetting=GradientColor | 180 | 119,217,108,255 ; 0.0 | 119,217,108,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; 1.0
InlinePattern=.*
http://docs.rainmeter.net/manual-beta/meters/string/inline/#InlineSetting
The trick to this is here:
InlineSetting=GradientColor | 180 | 119,217,108,255 ; 0.0 | 119,217,108,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; ([MeasureCPU:%]/100) | 196,196,196,255 ; 1.0
What we are doing is setting a gradient from color A to color A (so the same color) that ends at the percentage value. Then we are setting an immediate change to Color B at that same point. So there is no "gradient" as such, just a clean transition from Color A to Color B at the point of the percentage value. Then we just finish up with Color B out to the end.
The string can be any characters and any length, just be sure that if you are using Unicode characters, as I am above, that you encode the skin .ini file as UTF-16 Little Endian before you paste in the characters.