But enough with the history, let's see the (simplified) example:
Code: Select all
[Rainmeter] DynamicWindowSize=1 AccurateText=1 [Styles] [SCol] SolidColor=64,64,96,160 ClipString=2 FontFace=Tahoma FontColor=0,0,0,255 FontSize=12 AntiAlias=1 Y=5 Padding=4,0,4,0 [STitleCol] StringStyle=Bold X=5 [STitleColText] FontColor=255,255,255,255 X=5 W=[MT_TitleCol:W] H=[MT_TitleCol:H] DynamicVariables=1 ---Meters--- [MT_TitleCol] Meter=STRING MeterStyle=SCol | STitleCol Text="DK.W" UpdateDivider=-1 DynamicVariables=1 [MT_Actual_Title] Meter=STRING MeterStyle=SCol | STitleCol | STitleColText Text="CPU" DynamicVariables=1 [MT_Info] Meter=STRING FontSize=12 FontColor=255,255,255,255 SolidColor=0,0,0,255 AntiAlias=1 H=20 X=5 Y=50 Text=Reference Title (fixed) W: [MT_TitleCol:W], Actual Title (variable) W: [MT_Actual_Title:W] DynamicVariables=1
What happens is that is setting up a fixed (but font dependant) width/height for , but since both meters have (a single) instance of padding in their inheritance "chain", that padding gets duplicated. I would like either to eliminate the double padding, if possible (while still be able to set up a width for using or similar reference) or ... find another way of achieving a font specific width that should be the "placeholder" for the actual title meter (which, in practice, will be "up to" the width of the reference string/meter, aka ).
Hopefully, I wasn't too ellaborate in my description, but I had to explain what I would like to achieve so that if a better way is available, you could point me in that direction.