Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1162

Help: Rainmeter Skins • Re: Need better way to automatically change background Height

$
0
0
Here's the current code I've tried. It's strange because it looks good at font size 24 but anything smaller or larger it drifts.

Code:

[MeterBackground]Meter=ShapeShape=Rectangle (0 * #Scale#),(0 * #Scale#),((#BgWidth# - 0) * #Scale#),((#BgHeight# - 0) * #Scale#),(0 * #Scale#) | Fill Color #BackgroundColor#,(#BgAlpha#) | StrokeWidth 0; UpdateDivider=-1DynamicVariables=1

Code:

[Variables]; BgHeight=((7 + (#TitleFontSize# - 1)) + (#TitleFontSize# / 4))BgHeight=(0 + [MeterComputerName:H])BgWidth=326BackgroundColor=0,0,0BgAlpha=75TitleFontSize=24

Code:

[MeasureComputerName]Measure=SysInfoSysInfoType=COMPUTER_NAMEUpdateDivider=-1

Code:

[MeterComputerName]Meter=StringFontFace=ArialFontSize=#TitleFontSize#StringAlign=CenterCenterFontWeight=700StringCase=UpperFontColor=255,165,79AntiAlias=1Text=%1; X=(#BgWidth# / 2)X=([MeterBackground:W] / 2)Y=([MeterBackground:H] / 2); Y=((#BgHeight# / 2) - (#TitleFontSize# + 0))TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#; UpdateDivider=-1DynamicVariables=1
I don't see a problem. Can you post a screenshot too?

I assume the problem is in your text. You use the Uppercase string case. The thing is that visually it will not have a height to the visible text like USER. Most of the fonts have a zone for so called "descenders", the hanging from bottom symbol elements like in the letters g j p q y.

To see that, just put SolidColor=200,0,0 and you will see that there is a greater empty zone underneath the USER text, which is what might be causing the unproportional centering.

Statistics: Posted by Active Colors — Yesterday, 11:39 pm



Viewing all articles
Browse latest Browse all 1162

Trending Articles