Byproduct Color Slider
Hello, there i am again
I have written (or tinkered) a Color-Slider for my main skin, now I wanted to ask for advice and get your opinion before I integrate the color slider into the main skin.
- What needs to be added and what can be left out.
- What makes sense and what doesn't.
Skin-Code:
Thanks for your help an opinion
Hello, there i am again
I have written (or tinkered) a Color-Slider for my main skin, now I wanted to ask for advice and get your opinion before I integrate the color slider into the main skin.
- What needs to be added and what can be left out.
- What makes sense and what doesn't.
Skin-Code:
Code:
[Rainmeter]Update=1000DynamicWindowSize=1[Variables]Red=64Green=70Blue=166[Background]Meter=ShapeShape=Rectangle 0,0,300,70,10 | Fill Color 0,0,0,150 | StrokeWidth 2 | Stroke Color 0,0,0,140AntiAlias=1DynamicVariables=1;--------------------------------------------;#MEASURES MOUSE#MEASURES MOUSE;--------------------------------------------;[MeasureMouseR]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetOption SliderRed X "(Clamp($MouseX$,140,180))"][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure MeasureMouseR "Stop"][!UpdateMeter *][!Delay 1000][!SetVariable Red [MeasureColorRed]][!WriteKeyValue Variables Red [MeasureColorRed]][!Redraw]RelativeToSkin=1RequireDragging=1DynamicVariables=1[MeasureMouseG]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetOption SliderGreen X "(Clamp($MouseX$,190,230))"][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure MeasureMouseG "Stop"][!UpdateMeter *][!Delay 1000][!SetVariable Green [MeasureColorGreen]][!WriteKeyValue Variables Green [MeasureColorGreen]][!Redraw]RelativeToSkin=1RequireDragging=1DynamicVariables=1[MeasureMouseB]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetOption SliderBlue X "(Clamp($MouseX$,240,280))"][!UpdateMeter *][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure MeasureMouseB "Stop"][!UpdateMeter *][!Delay 1000][!SetVariable Blue [MeasureColorBlue]][!WriteKeyValue Variables Blue [MeasureColorBlue]][!Redraw]RelativeToSkin=1RequireDragging=1DynamicVariables=1;;--------------------------------------------;#MEASURES CALC#MEASURES CALC;--------------------------------------------;[MeasureColorRed]Measure=CalcFormula=(Round(([SliderRed:X]-140)*255/40))MinValue=1MaxValue=255DynamicVariables=1FinishAction=[!WriteKeyValue Variables Red [MeasureColorRed]][MeasureColorGreen]Measure=CalcFormula=(Round(([SliderGreen:X]-190)*255/40))MinValue=1MaxValue=255DynamicVariables=1[MeasureColorBlue]Measure=CalcFormula=(Round(([SliderBlue:X]-240)*255/40))MinValue=1MaxValue=255DynamicVariables=1;;----------------------------------------------------;#STRINGS|#BAR COLORS#STRINGS|#BAR COLORS;----------------------------------------------------;;-----------------------;RED;-----------------------[LineRed]Group=COLORMeter=ImageX=140Y=27W=40H=5SolidColor=[MeasureColorRed],0,0,255DynamicVariables=1[SliderRed]Group=COLORMeter=ImageX=140Y=25W=5H=8SolidColor=255,255,255DynamicVariables=1LeftMouseDownAction=[!CommandMeasure MeasureMouseR "Start"];;-----------------------;GREEN;-----------------------;[LineGreen]Group=COLORMeter=ImageX=190Y=27W=40H=5SolidColor=0,[MeasureColorGreen],0,255DynamicVariables=1[SliderGreen]Group=COLORMeter=ImageX=190Y=25W=5H=8SolidColor=255,255,255DynamicVariables=1LeftMouseDownAction=[!CommandMeasure MeasureMouseG "Start"];;-----------------------;BLUE;-----------------------[LineBlue]Group=COLORMeter=ImageX=240Y=27W=40H=5SolidColor=0,0,[MeasureColorBlue],255DynamicVariables=1[SliderBlue]Group=COLORMeter=ImageX=240Y=25W=5H=8SolidColor=255,255,255DynamicVariables=1LeftMouseDownAction=[!CommandMeasure MeasureMouseB "Start"];;----------------------------------------------------;#######;----------------------------------------------------;[StringBar]Group=COLORMeter=StringFontFace=ArialFontStyle=BOLDFontSize=10FontColor=255,255,255,255InlineSetting=Shadow | 1 | 1 | 2 | 0,0,0,255X=72Y=20Text=Bar ColorAntiAlias=1DynamicVariables=1Hidden=0;[DEMO_IMAGE]Group=COLORMeter=ImageX=8Y=23W=42H=42SolidColor=[MeasureColorRed],[MeasureColorGreen],[MeasureColorBlue],255;SolidColor=#Red#,#Green#,#Blue#,255DynamicVariables=1[StringColors]Meter=StringX=80Y=50FontColor=255,255,255,255FontSize=12Text=R=[MeasureColorRed] | G=[MeasureColorGreen] | B=[MeasureColorBlue]DynamicVariables=1[Variable]Blue=121Red=0Green=153
Screenshot 2024-12-26 161350.png
-> Just, out on it. <- Thanks for your help an opinion
Statistics: Posted by Rooky_89 — Yesterday, 2:18 pm — Replies 12 — Views 179