Example code
meter_highlight.gif
Code:
[Variables];;;; Skin scaling - Based on display resolution;; ;; 1.00 (100%) - 1920x1080, 1280x720;; 1.25 (125%) - 1920x1200;; 1.50 (150%) - 2560x1440, 2560x1600, 3440x1440;; 2.00 (200%) - 3840x2160;; 4.00 (400%) - 7680x4320;;$=(Max(1.00,Ceil(Min(#SCREENAREAWIDTH#,#SCREENAREAHEIGHT#)/1080*100/25)*25/100));; Border width$B=(Round(#$#-0.25))PANE_W=80PANE_H=80[Rainmeter]Update=-1; DefaultUpdateDivider=-1AccurateText=1MouseActionCursor=0OnRefreshAction=[!EnableMeasureGroup gAction];; ============================;; === Measures =============;; ============================;;;; IfConditions | https://docs.rainmeter.net/manual/measures/general-options/ifconditions/;; Section Variables | https://docs.rainmeter.net/manual/variables/section-variables/;; Nesting Variables | https://docs.rainmeter.net/manual/variables/nesting-variables/;;[aFoldUnfold]Measure=StringDynamicVariables=1Group=gActionIfConditionMode=1IfCondition=0<[[#SECTION_NAME]:H]IfTrueAction=[!HideMeterGroup "[#GROUP_NAME]"][!UpdateMeter Ninja][!Redraw]IfFalseAction=[!ShowMeterGroup "[#GROUP_NAME]"][!UpdateMeter Ninja][!Redraw]Disabled=1;; ============================;; === Meters ===============;; ============================;;;; Shape meter | https://docs.rainmeter.net/manual/meters/shape/ ;;[Pane]Meter=ShapeShape=Rectangle 0,0,#PANE_W#,#PANE_H#|StrokeWidth 0|Extend BackgroundColorBackgroundColor=Fill Color 434C5EMouseLeaveAction=[!HideMeter ButtonHover][!Redraw]MouseOverAction=[!ShowMeter ButtonHover][tButton]X=0rY=0RShape=Rectangle 0,0,(Trunc(120*#$#)),(Trunc(20*#$#))|StrokeWidth 0|Extend BackgroundColorBackgroundColor=Fill Color 202020Group=gHeaderFontMouseOverAction=[!SetOption ButtonHover Y "[#CURRENTSECTION#:Y]"][!UpdateMeter ButtonHover][!Redraw][Button0]Meter=ShapeMeterStyle=tButtonX=(10*#$#)Y=(10*#$#)Group=LeftMouseUpAction=[!SetVariable GROUP_NAME "gHeaderFont"][!SetVariable SECTION_NAME "Button1"][!UpdateMeasure aFoldUnfold][Button1]Meter=ShapeMeterStyle=tButton[Button2]Meter=ShapeMeterStyle=tButton[Button3]Meter=ShapeMeterStyle=tButton[Button4]Meter=ShapeMeterStyle=tButton[ButtonHover]Meter=ShapeX=0rY=-100Shape=Rectangle #$B#,0,(Trunc(120*#$#)-2*#$B#),(Trunc(20*#$#)),(Trunc(5*#$#))|StrokeWidth 0|Extend BackgroundColorBackgroundColor=Fill Color 444444Hidden=1;;;; String meter | https://docs.rainmeter.net/manual/meters/string/;;[tLabel]AntiAlias=1FontColor=C0C0C0FontFace=Segoe UIFontSize=(10*#$#)Group=gHeaderFontPadding=0,0,(4*#$#),0StringAlign=RightCenter[Label0]Meter=StringMeterStyle=tLabelX=([Button0:XW])Y=([Button0:Y]+[Button0:H]/2)FontColor=FFA54FGroup=Text=Header Font[Label1]Meter=StringMeterStyle=tLabelX=([Button1:XW])Y=([Button1:Y]+[Button1:H]/2)Text=Font[Label2]Meter=StringMeterStyle=tLabelX=([Button2:XW])Y=([Button2:Y]+[Button2:H]/2)Text=Size[Label3]Meter=StringMeterStyle=tLabelX=([Button3:XW])Y=([Button3:Y]+[Button3:H]/2)Text=Color[Label4]Meter=StringMeterStyle=tLabelX=([Button4:XW])Y=([Button4:Y]+[Button4:H]/2)Text=Weight[Ninja]Meter=StringDynamicVariables=1Hidden=1UpdateDivider=-1OnUpdateAction=[!SetVariable PANE_W "([Button0:W]+2*Trunc(10*#$#))"][!SetVariable PANE_H "([Button4:YH]+Trunc(10*#$#))"][!SetOption Pane DynamicVariables 0][!UpdateMeter Pane]
I appreciate this code. I've been looking at and trying to apply it to my project but some of it is I'm having issues comprehending. After reviewing the links I understand it on a basic level but using it is another thing. Good information in the manual as usual but a little light on practical application.
Would you mind sharing a walk-through of the code and how I could add multiple collapsible sections?
Statistics: Posted by Sh8dyDan — 39 minutes ago