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

Help: Rainmeter Skins • Re: Problems with minimum and dynamic width

$
0
0
Change the 'X' value of your style to equal the measured width of the song info:

Code:

[playerstyle]SolidColor=0,0,0,190FontFace=Segoe UI Variable SmallFontColor=225,225,225FontSize=9AntiAlias=1StringAlign=Rightx=[MeasureWidth]
Change your [MeasureWidth] section to set the maximum of 200 or the song info width:

Code:

[MeasureWidth]Measure=CalcFormula=Max([MeterSongInfo:W]+40,200)DynamicVariables=1
A random number (40) was added to the measured width; this may need to be adjusted if padding, fontsize, or fontface are change.

-=-
I would suggest setting the skin anchor in Rainmeter.ini (Edit settings) for this skin to:

Code:

AnchorX=RAnchorY=0
Or add OnRefreshAction=[!SetAnchor "R" "0"] to the [Rainmeter] section of the skin.

With that setting the skin will expand right-to-left rather than the default left-to-right.
That sounds good on the first sight, but does not work unforunately. The x value is just there for the alignment of the text https://docs.rainmeter.net/manual/meters/string/, I want it like that, could also be left aligned, then it still wouldn't work dynamic.

Hi :bow:

It would also give the option of a kind of slider function. The slider opens when music is played. I don't know to what extent this would be transferable to your skin, it is a suggestion
Its just an Example:

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1Anchor="100%","0%"[Variables]ContainerH=50ContainerW=3U=[!UpdateMeasure Slider][!UpdateMeter *][!Redraw];==================================================================; #BASE#BASE#BASE#BASE;==================================================================;[MeterBackVisible]Meter=ShapeShape=Rectangle 2,2,#ContainerW#,#ContainerH#,10 | Fill Color 0,0,0,150 | StrokeWidth 4 | Stroke Color 0,0,0,180DynamicVariables=1AntiAlias=1[MeterBackContainer]Meter=ShapeShape=Rectangle 2,2,#ContainerW#,#ContainerH#,10DynamicVariables=1AntiAlias=1;============MEASURES=================[Slider]Measure=PluginPlugin=ActionTimerActionList1=Repeat SlideDown,2,100SlideDown=[!SetVariable ContainerW "(Clamp(#ContainerW#+2,#ContainerW#,150))"]#U#ActionList2=Repeat SlideUp,2,100SlideUp=[!SetVariable ContainerW "(Clamp(#ContainerW#-2,2,150))"]#U#DynamicVariables=1[MeasureAudioRaw]Measure=PluginPlugin=AudioLevelIfCondition=[MeasureAudioRaw] > 0.001IfTrueAction=[!CommandMeasure Slider "Execute 1"][!HideMeterGroup HEADLINE][UpdateMeter *][!Redraw]IfCondition2=[MeasureAudioRaw] < 0.03IfTrueAction2=[!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Execute 2"][UpdateMeter *][!Redraw]DynamicVariables=1;============STRINGS=================[StringTitle]Meter=STRINGContainer=MeterBackContainerText=Your InterpreterFontFace=ArialFontStyle=BOLDFontSize=10FontColor=255,255,255,255SolidColor=100,100,100,170X=10Y=10W=0H=0StringAlign=LeftAntiAlias=1[StringSong]Meter=STRINGContainer=MeterBackContainerText=Yout TitelFontFace=ArialFontStyle=BOLDFontSize=10FontColor=255,255,255,255SolidColor=100,100,100,170X=10Y=20RW=0H=0StringAlign=LeftAntiAlias=1
This is Kind of what I want, now I just need to know how to implement it and also make it sizeable to the textcontent..

Statistics: Posted by devlink — 35 minutes ago



Viewing all articles
Browse latest Browse all 1345

Latest Images

Trending Articles



Latest Images