It is currently December 3rd, 2022, 4:02 pm

Volume Control (illustro Style)

Media controls, music players, video and animated visualizers
farshad
Posts: 4
Joined: May 1st, 2022, 3:53 pm

Volume Control (illustro Style)

Post by farshad »

Volume Control (illustro Style)
based on Volume Bar Skin by Abruzzi (zivallh) = https://www.deviantart.com/zivallh/art/Volume-Bar-1-1-859147003

Download From deviantart:
https://www.deviantart.com/paranical/art/Volume-Control-illustro-Style-914777228
You do not have the required permissions to view the files attached to this post.
RoseRain
Posts: 6
Joined: June 30th, 2022, 1:39 pm

Re: Volume Control (illustro Style)

Post by RoseRain »

farshad wrote: May 1st, 2022, 4:33 pm Volume Control (illustro Style)
based on Volume Bar Skin by Abruzzi (zivallh) = https://www.deviantart.com/zivallh/art/Volume-Bar-1-1-859147003

Download From deviantart:
https://www.deviantart.com/paranical/art/Volume-Control-illustro-Style-914777228
I love this skin, its lovely, thank you. Though I was wondering, is it possible to make it vertical? :)
farshad
Posts: 4
Joined: May 1st, 2022, 3:53 pm

Re: Volume Control (illustro Style)

Post by farshad »

thank you RoseRain. Actually, I am not very familiar with the codes of rainmeter sikns.
I did as much as I could. But volume slider needs to be reversed.

Code: Select all

[Rainmeter]
Update=-1
AccurateText=1
DynamicWindowSize=1
Group=Switch

ContextTitle=Settings
ContextAction=["#@#Variables.inc"]
ContextTitle2=Skin Color
ContextAction2=["#@#Addons\RainRGB4.exe" "VarName=Color" "FileName=#@#Variables.inc"]
ContextTitle3=Gradient Color
ContextAction3=["#@#Addons\RainRGB4.exe" "VarName=GradientColor" "FileName=#@#Variables.inc"]

OnUnfocusAction=[!CommandMeasure MeasureMouse "Stop" ]
;https://github.com/NighthawkSLO/Mouse.dll/wiki/Documentation

[Metadata]
Name=Volume Control - illustro Style
Information=A Sound Controller
Author=Farshad - based on Volume Bar Skin by Abruzzi
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
@Include=#@#Variables.inc
Scale=1

;0,255,150 GREEN

;Changed
[MeterBackground]
Meter=Shape
Shape=Rectangle 4,0,36,184,5,5 | Fill Color = 1,1,1,150 | StrokeWidth 0

[MeasureVolume]
Measure=Plugin
Plugin=Win7AudioPlugin

IfCondition=MeasureVolume = -1
IfTrueAction=[!SetOption MeterMuteIcon ImageName "volume_mute.png"]

IfCondition2=(MeasureVolume = 0)
IfTrueAction2=[!SetOption MeterMuteIcon ImageName "volume_0.png"]

IfCondition3=(MeasureVolume > 0) && (MeasureVolume <= 34)
IfTrueAction3=[!SetOption MeterMuteIcon ImageName "volume_1.png"]

IfCondition4=(MeasureVolume > 34) && (MeasureVolume <= 67)
IfTrueAction4=[!SetOption MeterMuteIcon ImageName "volume_2.png"]

IfCondition5=(MeasureVolume > 67)
IfTrueAction5=[!SetOption MeterMuteIcon ImageName "volume_3.png"]

IfConditionMode=1

;Changed
[MeasureMouse]
Measure=Plugin
Plugin=Mouse
LeftMouseDragAction=[!SetOption SliderDragCalc Formula "(Clamp((($MouseY$-(44*#Scale#))/[SliderSizeCalc]),0,100))"][!UpdateMeasure SliderDragCalc][!CommandMeasure "MeasureVolume" "SetVolume [SliderDragCalc]"][!UpdateMeter *][!Update]
LeftMouseUpAction=[!CommandMeasure MeasureMouse "Stop"][!SetOption SliderDragCalc Formula "MeasureVolume"][!Update]
RelativeToSkin=1
RequireDragging=1
DynamicVariables=1
UpdateDivider=-1
 
[SliderDragCalc]
Measure=Calc
Formula=MeasureVolume

[SliderSizeCalc]
Measure=Calc
Formula=(1.1*#Scale#)

[VolumeFormula]
Measure=Calc

;Changed
[MeterVolumeScrollBox]
Meter=Shape
Shape=Rectangle 2,2,(41*#Scale#),(202*#Scale#),5 | Fill Color 0,0,0,1 | StrokeWidth 0 | Stroke Color 255,255,255,1
MouseScrollDownAction=[!CommandMeasure MeasureVolume "ChangeVolume -1"][!Update]
MouseScrollUpAction=[!CommandMeasure MeasureVolume "ChangeVolume +1"][!Update]
MouseActionCursor=0
UpdateDivider=-1

;Changed
[MeterVolumeBar]
Meter=Shape
X=(20*#Scale#)
Y=(44*#Scale#)
;Bar
Shape=Rectangle 0,-14,3,(110*#Scale#),2 | Fill Color #Color#,70 | StrokeWidth 0

;SliderBar
Shape2=Rectangle -1,-14,3,([SliderDragCalc]*[SliderSizeCalc]),2 | Fill LinearGradient Gradient | StrokeWidth 0
Gradient= 180 | #Color#,#GradientOpacity# ; 0.10 | #GradientColor# ; 1

;SliderShadow
Shape3=Ellipse 1,([SliderDragCalc]*[SliderSizeCalc])-12,10 | Fill Color 0,0,0 | StrokeWidth 0 | Fill RadialGradient ShadowGradient
ShadowGradient= 0,0 | 0,0,0,140 ; -0.2 | 0,0,0,1 ; 0.9

;Slider
Shape4=Ellipse 1,([SliderDragCalc]*[SliderSizeCalc])-12,3 | Fill Color #GradientColor#,255 | StrokeWidth 9 | Stroke Color #GradientColor#,100

LeftMouseDownAction=[!CommandMeasure MeasureVolume "SetVolume $MouseY:%$"][!Update]
MouseOverAction=[!CommandMeasure MeasureMouse "Start"]
DynamicVariables=1

;Changed
[MeterPercent]
Meter=String
MeasureName=MeasureVolume
FontFace=Tahoma 
StringAlign=Center
FontSize=(10*#Scale#)
AntiAlias=1
FontColor=#Color#
X=(22*#Scale#)
Y=(-39*#Scale#)r
Text=[MeasureVolume:%,0]
;Text=[MeasureVolume:]
DynamicVariables=1
Hidden=#Hidden#

;Changed
[MeterMuteIcon]
Meter=Image
ImageTint=#Color#
X=(12*#Scale#)
Y=(153*#Scale#)
W=(21*#Scale#)
PreserveAspectRatio=1
ImagePath=#@#/Images
LeftMouseUpAction=[!CommandMeasure "MeasureVolume" "ToggleMute"][!Update]
DynamicVariables=1
Hidden=#Hidden#