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

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

$
0
0
Post the updated code of the relevan meters. Let’s see.

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

Statistics: Posted by Sh8dyDan — Yesterday, 11:16 pm



Viewing all articles
Browse latest Browse all 1071

Trending Articles