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

Help: Rainmeter Skins • Begginner having trouble with conditinal styling of shapes

$
0
0
hello guys!

i recently started to create some rainmeter skins (with zero base knowledge so i had, and still do have, a lot of reading to do)
most of the skins i envisioned were pretty straightforward and seem to work (maybe structured very clumsily, but work)

One specific skin im having trouble with - its a visual representation of the weekday in a group of 7 squares

essentially looking like this:
NVIDIA_Overlay_bH8tZ9isgV.png
now i made a (non-working) conditional formatting to change the color of the current day - for example blue,
but it doesnt work (it did work for sunday but the rest dont work)

heres the code i made (sorry for how inefficient its structured)

Code:

[Rainmeter]Update = 1000AccurateText = 1DynamicWindowSize=1OnRefreshAction=[!SetWindowPosition "50%" "31.5%" "50%" "50%"][FrostedGlass]Measure=PluginPlugin=FrostedGlassType=BlurCorner=RoundUpdateDivider=-1[VARIABLES]scale = 0.45box = (100*#scale#)fontsize = (38*#scale#)DynamicVariables=1[MeasureDayOfWeek]Measure=TimeFormat=%wIfCondition=(MeasureDayOfWeek = 0)IfTrueAction=[!SetOption Shape0 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape0"][!Redraw]IfFalseAction=[!SetOption Shape0 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape0"][!Redraw]IfCondition=(MeasureDayOfWeek= 1)IfTrueAction=[!SetOption Shape1 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape1"][!Redraw]IfFalseAction=[!SetOption Shape1 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape1"][!Redraw]IfCondition=(MeasureDayOfWeek = 2)IfTrueAction=[!SetOption Shape2 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape2"][!Redraw]IfFalseAction=[!SetOption Shape2 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape2"][!Redraw]IfCondition=(MeasureDayOfWeek = 3)IfTrueAction=[!SetOption Shape3 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape3"][!Redraw]IfFalseAction=[!SetOption Shape3 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape3"][!Redraw]IfCondition=(MeasureDayOfWeek = 4)IfTrueAction=[!SetOption Shape4 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape4"][!Redraw]IfFalseAction=[!SetOption Shape4 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape4"][!Redraw]IfCondition=(MeasureDayOfWeek = 5)IfTrueAction=[!SetOption Shape5 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape5"][!Redraw]IfFalseAction=[!SetOption Shape5 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape5"][!Redraw]IfCondition=(MeasureDayOfWeek = 6)IfTrueAction=[!SetOption Shape6 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 40,140,180,200 | StrokeWidth 0"][!UpdateMeter "Shape6"][!Redraw]IfFalseAction=[!SetOption Shape6 "Shape" "Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0"][!UpdateMeter "Shape6"][!Redraw]DynamicVariables=1[BaseShape] Meter=ShapeShape=Rectangle 0,0,([Shape0:W]*8.6),([Shape0:H]*1.4),0 | FillColor 0,0,0,1 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape0]Meter=ShapeX=([Shape0:W]/5)Y=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape1]Meter=ShapeX=(0.2*[Shape0:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape2]Meter=ShapeX=(0.2*[Shape1:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape3]Meter=ShapeX=(0.2*[Shape0:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape4]Meter=ShapeX=(0.2*[Shape0:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,20 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape5]Meter=ShapeX=(0.2*[Shape0:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,60 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Shape6]Meter=ShapeX=(0.2*[Shape0:W])RY=(([BaseShape:H]-[Shape0:H])/2)Shape=Rectangle 0,0,#box#,#box#,10 | FillColor 0,0,0,60 | StrokeWidth 0DynamicVariables=1UpdateDivider=-1[Sunday]Meter=stringtext=SFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,220X=(([Shape0:W]-[Sunday:W])/2+0.2*[Shape1:W])Y=(([Shape0:H]-[Sunday:H])/2+0.2*[Shape1:W])DynamicVariables=1[Monday]Meter=stringtext= MFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,220X=(([Shape0:W]-[Monday:W])/2+1.4*[Shape0:W])Y=(([Shape0:H]-[Monday:H])/2+0.2*[Shape0:W])DynamicVariables=1[Tuesday]Meter=stringtext=TFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,240X=(([Shape0:W]-[Tuesday:W])/2+2.6*[Shape0:W])Y=(([Shape0:H]-[Tuesday:H])/2+0.2*[Shape0:W])DynamicVariables=1[Wednesday]Meter=stringtext=WFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,240X=(([Shape0:W]-[Wednesday:W])/2+3.8*[Shape0:W])Y=(([Shape0:H]-[Wednesday:H])/2+0.2*[Shape0:W])DynamicVariables=1[Thursday]Meter=stringtext=TFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,240X=(([Shape0:W]-[Thursday:W])/2+5*[Shape0:W])Y=(([Shape0:H]-[Thursday:H])/2+0.2*[Shape0:W])DynamicVariables=1[Friday]Meter=stringtext=FFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,240X=(([Shape0:W]-[Friday:W])/2+6.2*[Shape0:W])Y=(([Shape0:H]-[Friday:H])/2+0.2*[Shape0:W])DynamicVariables=1[Saturday]Meter=stringtext=SFontFace=SF Pro RoundedFontWeight=800FontSize=#fontsize#FontColor=255,255,255,240X=(([Shape0:W]-[Saturday:W])/2+7.4*[Shape0:W])Y=(([Shape0:H]-[Saturday:H])/2+0.2*[Shape0:W])DynamicVariables=1

Statistics: Posted by lonlav — Yesterday, 2:03 pm — Replies 6 — Views 123



Viewing all articles
Browse latest Browse all 712

Trending Articles