balala wrote: ↑December 15th, 2022, 6:30 pm
No problem from my part, just keep in mind that you can't duplicate anything in Rainmeter codes. Can't use twice the same variable, section name or option on any section. This is a general rule for any .ini formatted file.
Post them, please.
Not sure I follow. Please give a detailed list of what would you like the buttons to look like. I'd like something like this:
- When the mouse is not over them, they should have Color1.
- When hovering the mouse over them they should get Color2.
- When clicking they should get Color3.
What Color1, Color2 and Color3 are? If there are further, above not-listed cases, please list them all.
So my plan is that the normal color is Grey, when I hover over it with the mouse it is BRED and when I click on it it is RED, I have already named the colors under Variables and given them the correct color as assignment. Therefore it would also be desirable if I sometime the colors DarkBlue, AlmostBlack and AlmostWhite disappear completely from the code. So that it is uniform I colored all used Icons white, these I will add also again as appendix.
For the time being, I have deliberately used Play, Pause etc.. NOT colored, because they work through ImageTint.
Here the complete code
Code: Select all
[Rainmeter]
Update=200
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 1 ? 1 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
MouseActionCursorName=Hand
MouseOverAction=!CommandMeasure Lua Pause=0
MouseLeaveAction=!CommandMeasure Lua Pause=1
[Variables]
ScrollMouseIncrement=0.1
Player=Spotify
Scale=3.1
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
AlmostBlack=40,40,40,255
AlmostWhite=255,255,255
RED=211,40,56
GREY=117,140,148
BRED=123,0,44
Heart=0
Shuffle=0
Repeat=0
;-------------------------------------------------------------
[MeasureStatus]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowFade]
IfFalseAction=[!HideFade]
;-----[Album Art]-----
[MeasureAlbumArt]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=COVER
[MeterAlbumArt]
Meter=Image
MeasureName=MeasureAlbumArt
Meter=String
MeasureName=MeasureTitle
StringAlign=Left
X=(0*#Scale#)
Y=(0*#Scale#)
W=(100*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1
;-----[Title]-----
[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=TITLE
Substitue="":""
[LuaTitle]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureTitle
[MeterTitle]
Meter=String
MeasureName=LuaTitle
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(8*#Scale#)
X=(105*#Scale#)
Y=(5*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1
;-----[Artist]-----
[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ARTIST
Substitue="":""
[LuaArtist]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureArtist
[MeterArtist]
Meter=String
MeasureName=LuaArtist
StringAlign=Left
StringCase=Upper
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(7*#Scale#)
X=(105*#Scale#)
Y=(18*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1
;-----[Album Title]-----
[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=ALBUM
Substitue="":""
[LuaAlbum]
Measure=Script
ScriptFile=#@#Marquee.lua
MeasureName=MeasureAlbum
[MeterAlbum]
Meter=String
MeterStyle=SpotifyStyleAlbum
MeasureName=LuaAlbum
StringAlign=Left
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(6*#Scale#)
X=(105*#Scale#)
Y=(30*#Scale#)
W=(130*#Scale#)
Text="%1"
ClipString=1
AntiAlias=1
;-----[Song Progress]-----
[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=PROGRESS
[MeterBar]
Meter=Shape
X=(105*#Scale#)
Y=(70*#Scale#)
Shape=Rectangle 0,0,(130*#Scale#),(1.5*#Scale#),0 | Fill Color 255,255,255,30 | StrokeWidth 0
Shape2=Rectangle 0,0,([MeasureProgress]*1.2*#Scale#),(1.5*#Scale#),0 | Fill Color 211,40,56 | StrokeWidth 0
Shape3=Ellipse ([MeasureProgress]*1.2*#Scale#),(0.8*#Scale#),(1.5*#Scale#) |Fill Color 255,255,255 | StrokeWidth 0
Shape4=Rectangle 0,(-1*#Scale#),(120*#Scale#),(3*#Scale#),0 | Fill Color 255,255,255,1 | StrokeWidth 0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureProgress" "SetPosition $MouseX:%$"]
;-----[Song Duration]-----
[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=DURATION
[MeasurePosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position
UpdateDivider = 5
Substitute="":"N/A"
[MeasureMinutesRemaining]
Measure=Calc
Formula=Trunc((MeasureDuration - MeasurePosition)/60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"
[MeasureSecondsRemaining]
Measure=Calc
Formula=((MeasureDuration - MeasurePosition) % 60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"
[MeterDuration]
Meter=String
MeasureName=MeasureDuration
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(112*#Scale#)
Y=(75*#Scale#)
Text="%1"
AntiAlias=1
[MeterDuration2]
Meter=String
MeasureName=MeasureMinutesRemaining
MeasureName2=MeasureSecondsRemaining
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(75*#Scale#)
Text="%1:%2"
AntiAlias=1
;-----[Song Play & Pause]-----
[MeasureStateButton]
Measure=Plugin
Plugin=WebNowPlaying
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Images\Play.png","1":"#@#Images\Pause.png","2":"#@#Images\Play.png"
[MeterPlayPause]
Meter=Image
ImageName=[MeasureStateButton]
X=(160*#Scale#)
Y=(50*#Scale#)
W=(15*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "MeasureStateButton" "PlayPause"]
;-----[Song Previous]-----
[MeterPrevious]
Meter=Image
ImageName=#@#Images\Previous.png
X=(145*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Previous"]
;-----[Song Next]-----
[MeterNext]
Meter=Image
ImageName=#@#Images\Next.png
X=(180*#Scale#)
Y=(52*#Scale#)
W=(10*#Scale#)
AntiAlias=1
SolidColor=255,255,255,1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]
;-----[Song Heart]-----
[MeasureHeartRaw]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Rating
IfCondition=((MeasureHeartRaw=0)&&(#Heart#=0))
IfTrueAction=[!SetOption MeterHeart ImageTint "#GREY#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition2=((MeasureHeartRaw=5)&&(#Heart#=0))
IfTrueAction2=[!SetOption MeterHeart ImageTint "#RED#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition3=((MeasureHeartRaw=0)&&(#Heart#=1))
IfTrueAction3=[!SetOption MeterHeart ImageTint "#BRED#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition4=((MeasureHeartRaw=5)&&(#Heart#=1))
IfTrueAction4=[!SetOption MeterHeart ImageTint "#GREY#"][!UpdateMeter "MeterHeart"][!Redraw]
DynamicVariables=1
[MeasureHeart]
Measure=Calc
Formula=(MeasureHeartRaw=5 ? 0 : 5)
[MeterHeart]
Meter=Image
ImageName=#@#images\heart.png
ImageTint=#AlmostWhite#
X=(145*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureHeartRaw "SetRating [&MeasureHeart]"]
AntiAlias=1
MouseOverAction=[!SetVariable Heart "1"][!UpdateMeasure "MeasureHeartRaw"]
MouseLeaveAction=[!SetVariable Heart "0"][!UpdateMeasure "MeasureHeartRaw"]
SolidColor=0,0,0,1
;-----[Song Shuffle]-----
[MeasureShuffle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Shuffle
IfCondition=MeasureShuffle = 0
IfCondition=((MeasureShuffle=0)&&(#Shuffle#=0))
IfTrueAction=[!SetOption MeterShuffle ImageTint "#MediumBlue#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition2=((MeasureShuffle=5)&&(#Shuffle#=0))
IfTrueAction2=[!SetOption MeterShuffle ImageTint "#AlmostWhite#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition3=((MeasureShuffle=0)&&(#Shuffle#=1))
IfTrueAction3=[!SetOption MeterShuffle ImageTint "#RED#"][!UpdateMeter "MeterHeart"][!Redraw]
IfCondition4=((MeasureShuffle=5)&&(#Shuffle#=1))
IfTrueAction4=[!SetOption MeterShuffle ImageTint "#GREY#"][!UpdateMeter "MeterHeart"][!Redraw]
DynamicVariables=1
[MeterShuffle]
Meter=Image
ImageName=#@#Images\shuffle.png
X=(160*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureShuffle "Shuffle"]
AntiAlias=1
MouseOverAction=[!SetVariable Shuffle "1"][!UpdateMeasure "MeasureShuffle"]
MouseLeaveAction=[!SetVariable Shuffle "0"][!UpdateMeasure "MeasureShuffle"]
SolidColor=0,0,0,1
;-----[Song Repeat]-----
[MeasureRepeat]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Repeat
IfCondition=MeasureRepeat = 0
IfTrueAction=[!SetOption MeterRepeat ImageTint "#MediumBlue#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition2=MeasureRepeat = 1
IfTrueAction2=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition3=MeasureRepeat = 2
IfTrueAction3=[!SetOption MeterRepeat ImageTint "#AlmostWhite#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
[MeterRepeat]
Meter=Image
ImageName=#@#Images\shuffle.png
X=(175*#Scale#)
Y=(75*#Scale#)
W=(15*#Scale#)
H=(15*#Scale#)
Group=DynamicColors
LeftMouseUpAction=[!CommandMeasure MeasureRepeat "Repeat"]
AntiAlias=1
MouseOverAction=[!SetVariable Repeat "1"][!UpdateMeasure "Measurerepeat"]
MouseLeaveAction=[!SetVariable Repeat "0"][!UpdateMeasure "MeasureRepeat"]
SolidColor=0,0,0,1
IfCondition=((MeasureRepeat=0)&&(#Repeat#=0))
IfTrueAction=[!SetOption MeterRepeat ImageTint "#GREY#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition2=((MeasureRepeat=1)&&(#Repeat#=0))
IfTrueAction2=[!SetOption MeterRepeat ImageTint "#RED#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition3=((MeasureRepeat=2)&&(#Repeat#=0))
IfTrueAction3=[!SetOption MeterRepeat ImageTint "#RED#""][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
IfCondition4=((MeasureRepeat=0)&&(#Repeat#=1))
IfTrueAction4=[!SetOption MeterRepeat ImageTint "#RED#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition5=((MeasureRepeat=1)&&(#Repeat#=1))
IfTrueAction5=[!SetOption MeterRepeat ImageTint "#GREY#"][!SetOption MeterRepeat ImageName "#@#Images\repeat.png"]
IfCondition6=((MeasureRepeat=2)&&(#Repeat#=1))
IfTrueAction6=[!SetOption MeterRepeat ImageTint "#BRED#"][!SetOption MeterRepeat ImageName "#@#Images\repeat1.png"]
DynamicVariables=1
;-----[Song Volume]-----
[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
MinValue=0
MaxValue=100
IfCondition=MeasureVolume = 0
IfTrueAction=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMute.png"]
IfCondition2=(MeasureVolume >= 1) && (MeasureVolume <= 32)
IfTrueAction2=[!SetOption MeterVolumeIcon ImageName "#@#Images\volLow.png"]
IfCondition3=(MeasureVolume >= 33) && (MeasureVolume <= 65)
IfTrueAction3=[!SetOption MeterVolumeIcon ImageName "#@#Images\volMed.png"]
IfCondition4=MeasureVolume >= 66
IfTrueAction4=[!SetOption MeterVolumeIcon ImageName "#@#Images\volHigh.png"]
[MeasureVolumePercentage]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
Substitute="":"N/A"
[MeterVolumeIcon]
Meter=Image
ImageName=#@#Images\volMute.png
ImageTint=#RED#
X=(103*#Scale#)
Y=(85*#Scale#)
W=(17*#Scale#)
H=(17*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume 0"]
AntiAlias=1
[MeterVolumeBar]
Meter=Bar
MeasureName=MeasureVolume
BarOrientation=Horizontal
BarColor=#RED#
SolidColor=#DarkBlue#
X=(120*#Scale#)
Y=(93*#Scale#)
W=(95*#Scale#)
H=(1.5*#Scale#)
LeftMouseUpAction=[!CommandMeasure MeasureVolume "SetVolume $MouseX:%$"]
[MeterVolume]
Meter=String
MeasureName=MeasureVolumePercentage
StringAlign=Center
FontFace=b Bath Towel
FontColor=211,40,56
FontSize=(5*#Scale#)
X=(226*#Scale#)
Y=(91*#Scale#)
Text=%1%
AntiAlias=1
You do not have the required permissions to view the files attached to this post.