Hello World, apologies for such a simple question, but I have read through this entire thread and not found an answer.
Just learning the Shape meter, and very much appreciate the rectangle with rounded corners! But I do not quite understand the Line shape in this simple example:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
[Variables]
colorBackground=0,0,191,255
colorTitleBar=0,16,64,255
colorDivider=200,200,200,255
[mtrBackground]
Meter=Shape
Shape=Rectangle 0,0,100,100,7 | StrokeWidth 0 | Fill Color #colorBackground#
Shape2=Rectangle 0,0,100,20,7 | StrokeWidth 0 | Fill Color #colorTitleBar#
Shape3=Rectangle 0,10,100,10 | StrokeWidth 0 | Fill Color #colorTitleBar#
AntiAlias=1
X=100
Y=100
W=100
H=100
[mtrDividers]
Meter=Shape
Shape=Line 20,20,20,99 | Extend DividerModifiers
Shape2=Line 23,20,23,100 | Extend DividerModifiers
Shape3=Line 40,0,40,99 | Extend DividerModifiers
Shape4=Line 43,0,43,100 | Extend DividerModifiers
DividerModifiers=StrokeWidth 2 | Stroke Color #colorDivider#
AntiAlias=1
X=100
Y=100
W=100
H=100
[mtrDividers2]
Meter=Shape
Shape=Rectangle 60,20,2,80 | Extend DividerModifiers
Shape2=Rectangle 63,20,2,81 | Extend DividerModifiers
Shape3=Rectangle 80,0,2,100 | Extend DividerModifiers
Shape4=Rectangle 83,0,2,99 | Extend DividerModifiers
DividerModifiers=StrokeWidth 0 | Fill Color #colorDivider#
AntiAlias=1
X=100
Y=100
W=100
H=100
In the second meter, the first line starts at the top of the main pane, directly below the title bar, and ends at what I think should be the bottom of that pane, but in fact is one pixel too short. The second line appears to end correctly, but why, since the skin/background is 100 pixels high, and therefore should extend from x=0 to x=99 (rather than 100)? The second pair of lines demonstrate the same, but beginning at the top of the skin/meter.
The third meter draws the lines using Rectangle, rather than Line, and in that case the lines seem to end correctly, as it is using a specified Height, rather than a specified End Y. What am I missing?