Skip to content

Instantly share code, notes, and snippets.

@flufftronix
Created November 13, 2021 03:47
Show Gist options
  • Save flufftronix/cda45b97b556600ba688d177576ec934 to your computer and use it in GitHub Desktop.
Save flufftronix/cda45b97b556600ba688d177576ec934 to your computer and use it in GitHub Desktop.
[Variables]
GW=(450*#scale#)
GH=(170*#scale#)
P=(22*#Scale#)
Shuffle=0
Control=1
Repeat=0
Heart=1
Prog=1
;==============================================================================================
;==============================================================================================
;==============================================================================================
[MainC]
Measure=Plugin
Plugin=Chameleon
Type=File
Path=[mCover]
Format=Dec
UpdateDivider=1
[LC1]
Measure=Plugin
Plugin=Chameleon
Parent=MainC
Color=Light1
UpdateDivider=1
[BGC]
Measure=Plugin
Plugin=Chameleon
Parent=MainC
Color=Dark1
UpdateDivider=1
[FGC1]
Measure=Plugin
Plugin=Chameleon
Parent=MainC
Color=Light1
UpdateDivider=1
[FGC2]
Measure=Plugin
Plugin=Chameleon
Parent=MainC
Color=Light2
UpdateDivider=1
; [AvC]
; Measure=Plugin
; Plugin=Chameleon
; Parent=MainC
; Color=Average
; Group=Music
[Luminance]
Measure=Plugin
Plugin=Chameleon
Parent=MainC
Color=Luminance
OnChangeAction=[!UpdateMeterGroup DynamicColors]
UpdateDivider=1
[Player]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Player
UpdateDivider = 5
Substitute="":"N/A"
; [BackgroundColor]
; Measure=Calc
; IfConditionMode=1
; IfCondition=Luminance > 1
; IfTrueAction=[!SetVariable BackgroundColor "[FGC1]"][!SetVariable TextColor "[BGC]"][!SetVariable AltTextColor "[BGC]"]
; IfFalseAction=[!SetVariable BackgroundColor "[BGC]"][!SetVariable TextColor "[FGC2]"][!SetVariable AltTextColor "[FGC1]"]
; ; IfCondition2=Luminance > 0.5
; ; IfTrueAction2=[!SetVariable ContrastTextColor "0,0,0"]
; ; IfFalseAction2=[!SetVariable ContrastTextColor "255,255,255"]
; OnUpdateAction=
;==============================================================================================
;==============================================================================================
;==============================================================================================
[B2]
Meter=Shape
Shape=Rectangle 0,0,#GW#,#GH#,15,15 | StrokeWidth 0 | Fill Color 000000BF
DynamicVariables=0
[B]
Meter=Shape
Shape=Rectangle 0,0,#GW#,#GH#,15,15 | StrokeWidth 0 | Fill Color [BGC]2F
DynamicVariables=1
Group=DynamicColors
[IC]
Meter=Shape
Shape=Rectangle 0,0,#GW#,#GH#,#R#,#R# | StrokeWidth 0 | Fill LinearGradient MyFillGradient
MyFillGradient=195 | 0,0,0,0 ; 0.3 | 0,0,0,120 ; .9
DynamicVariables=1
[I]
Meter=Image
ImageName=[mCover]
X=(#GW#-#GH#)-200
Y=-200
W=#GH#*2
H=#GH#*2
PreserveAspectRatio=2
Container=IC
DynamicVariables=1
[SHead]
Meter=String
MeterStyle=S
X=#P#-3
Y=(#P#-5)
W=(#GW#-#GH#)
ClipString=2
FontWeight=200
MeasureName=Player
FontSize=(8*#scale#)
FontColor=[FGC2]60
DynamicVariables=1
Group=DynamicColors
[SName]
Meter=String
MeterStyle=S
X=#P#
Y=(19*#scale#)r
W=(#GW#-#GH#)+100
H=(#GH#-2*#P#-(#GH#-[SArtist:Y]))
ClipString=1
FontWeight=200
FontSize=(17*#scale#)
FontColor=[FGC2]7F
DynamicVariables=1
MeasureName=mTrack
Group=DynamicColors
[SArtist]
Meter=String
MeterStyle=S
X=r
Y=(#GH#*0.42)
W=(#GW#-#GH#)
ClipString=1
FontWeight=200
FontSize=(8*#scale#)
FontColor=[FGC1]7F
DynamicVariables=1
MeasureName=mArtist
Group=DynamicColors
[Heart]
Meter=Image
X=#P#-6
Y=(#GH#*0.55)
W=(20*#scale#)
H=(20*#scale#)
Padding=(5*#scale#),(5*#scale#),(5*#scale#),(5*#scale#)
Grayscale=1
ImageTint=[FGC2]7F
DynamicVariables=1
Group=DynamicColors
[FullHeart]
ImageName=#@#Icons\HeartFull.png
LeftMouseUpAction=[!SetOption Heart MeterStyle EmptyHeart][!UpdateMeter Heart][!Redraw][!CommandMeasure mState "ToggleThumbsDown"]
[EmptyHeart]
ImageName=#@#Icons\Heart.png
LeftMouseUpAction=[!SetOption Heart MeterStyle Fullheart][!UpdateMeter Heart][!Redraw][!CommandMeasure mState "ToggleThumbsUp"]
[Previous]
Meter=Image
ImageName=#@#Icons\Previous.png
X=(20*#Scale#)R
Y=r
W=(20*#scale#)
H=(20*#scale#)
Padding=(5*#scale#),(5*#scale#),(5*#scale#),(5*#scale#)
Grayscale=1
ImageTint=[FGC2]7F
DynamicVariables=1
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure mState "Previous"]
[PlayPause]
Meter=Image
MeterStyle=
X=(20*#Scale#)R
Y=r
W=(20*#scale#)
H=(20*#scale#)
Padding=(5*#scale#),(5*#scale#),(5*#scale#),(5*#scale#)
Grayscale=1
ImageTint=[FGC2]7F
DynamicVariables=1
Group=DynamicColors
[Play]
ImageName=#@#Icons\Play.png
LeftMouseUpAction=[!SetOption PlayPause MeterStyle Pause][!UpdateMeter PlayPause][!Redraw][!CommandMeasure mState "PlayPause"]
[Pause]
ImageName=#@#Icons\Pause.png
LeftMouseUpAction=[!SetOption PlayPause MeterStyle Play][!UpdateMeter PlayPause][!Redraw][!CommandMeasure mState "PlayPause"]
[Next]
Meter=Image
ImageName=#@#Icons\Next.png
X=(20*#Scale#)R
Y=r
W=(20*#scale#)
H=(20*#scale#)
Padding=(5*#scale#),(5*#scale#),(5*#scale#),(5*#scale#)
Grayscale=1
ImageTint=[FGC2]7F
DynamicVariables=1
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure mState "Next"]
[ProgBar]
Meter=Shape
X=#P#+2
Y=(#GH#*0.78)
Shape=Line 0,0,(#GW#-#P#*2)-10,0 | StrokeWidth 2 | Fill Color 0,0,0,1 | Stroke Color [FGC2]60 | StrokeStartCap Round | StrokeEndCap Round
Shape2=Line 0,0,(((#GW#-#P#*2)-10)*[mProgress]/100),0 | StrokeWidth 2 | Fill Color 0,0,0,1 | Stroke Color [FGC2]7F | StrokeStartCap Round | StrokeEndCap Round
Shape3=Ellipse (((#GW#-#P#*2)-10)*[mProgress]/100),0,6,6 | strokeWidth 0 | Fill Color [FGC2]CF | Scale #Scale#,#Scale#
DynamicVariables=1
UpdateDivider=1
Group=DynamicColors
LeftMouseUpAction=[!SetOption PosCalc Formula "($MouseX$/(#GW#-#P#*2)*100)"][!UpdateMeasure PosCalc]
[PosCalc]
Measure=calc
OnUpdateAction=[!CommandMeasure mState "SetPosition [PosCalc]"]
Disabled=1
DynamicVariables=1
UpdateDivider=-1
Group=NUOL
[CurrentTime]
Meter=String
MeterStyle=S
X=r
Y=(#GH#*0.8)+8
FontColor=[FGC2]
DynamicVariables=1
FontSize=(8*#scale#)
MeasureName=mCurrentPosition
UpdateDivider=1
Group=DynamicColors
[MediaLength]
Meter=String
MeterStyle=S
X=(#GW#-6-#P#*2)r
Y=r
FontColor=[FGC2]
StringAlign=Right
DynamicVariables=1
FontSize=(8*#scale#)
MeasureName=mLength
Group=DynamicColors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment