It is currently March 29th, 2024, 11:59 am

Help to change the color of the minutes on the clock

Get help with creating, editing & fixing problems with skins
KRou
Posts: 24
Joined: January 26th, 2023, 5:05 pm

Help to change the color of the minutes on the clock

Post by KRou »

Hello, I have tried to make the color that I apply to the minutes, hours or seconds remain even if the value changes, but it is impossible. Every time the value changes, the Font color is applied, which is 255,255,255.
Is there any way that the color assigned to the minutes is maintained even if the value changes?

[Youtube]https://youtu.be/f6oIKVNjZvY[/Youtube]

I uploaded a video to YT where it can be seen that at the moment of changing the minute the color returns to 255,255,255 and it will not change until color 6 that corresponds to the minutes is applied again, which will only last until the variable changes again

This is the code I have:

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] 
LeftMouseDoubleClickAction=!ToggleConfig "Mond\Settings" "Settings.ini"

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.9

;-------------------------------------------------------------
[MeasureHours]
Measure=Time
Format="%H"
Substitute=#Hours#

[MeasureMinutes]
Measure=Time
Format="%M"
Substitute=#Minutes#

[MeasureSecond]
Measure=Time
Format=%S

;-------------------------------------------------------------

[Meter24hClock]
Meter=String
MeasureName=MeasureHours
MeasureName2=MeasureMinutes
MeasureName3=MeasureSecond
StringAlign=Center
StringCase=Upper
FontFace=Anurati
FontColor=255,255,255
FontSize=(18*#Scale#)
X=(340*#Scale#)
Y=(100*#Scale#)
InlineSetting=Color | #Color3#
InlinePattern="[MeasureHours]"
InlineSetting2=Color | #Color6#
InlinePattern2="[MeasureMinutes]"
Text=- %1:%2:%3 -
AntiAlias=1
Hidden=#Hidden#


User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Help to change the color of the minutes on the clock

Post by eclectic-tech »

Add DynamicVariables=1 to [Meter24hClock].

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] 
LeftMouseDoubleClickAction=!ToggleConfig "Mond\Settings" "Settings.ini"

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.9
Color1=255,255,255
Color2=250,126,0
Color3=255,0,0
Color6=0,255,0

;-------------------------------------------------------------
[MeasureHours]
Measure=Time
Format="%H"
; Substitute=#Hours#

[MeasureMinutes]
Measure=Time
Format="%M"
; Substitute=#Minutes#

[MeasureSecond]
Measure=Time
Format=%S

;-------------------------------------------------------------

[Meter24hClock]
Meter=String
MeasureName=MeasureHours
MeasureName2=MeasureMinutes
MeasureName3=MeasureSecond
StringAlign=Center
StringCase=Upper
FontFace=Anurati
FontColor=255,255,255
FontSize=(18*#Scale#)
X=(340*#Scale#)
Y=(100*#Scale#)
InlineSetting=Color | #Color3#
InlinePattern="[MeasureHours]"
InlineSetting2=Color | #Color6#
InlinePattern2="[MeasureMinutes]"
Text=- %1:%2:%3 -
AntiAlias=1
Hidden=#Hidden#
DynamicVariables=1

mondcolor.gif
You do not have the required permissions to view the files attached to this post.
KRou
Posts: 24
Joined: January 26th, 2023, 5:05 pm

Re: Help to change the color of the minutes on the clock

Post by KRou »

eclectic-tech wrote: February 12th, 2023, 2:00 am Add DynamicVariables=1 to [Meter24hClock].

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] 
LeftMouseDoubleClickAction=!ToggleConfig "Mond\Settings" "Settings.ini"

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.9
Color1=255,255,255
Color2=250,126,0
Color3=255,0,0
Color6=0,255,0

;-------------------------------------------------------------
[MeasureHours]
Measure=Time
Format="%H"
; Substitute=#Hours#

[MeasureMinutes]
Measure=Time
Format="%M"
; Substitute=#Minutes#

[MeasureSecond]
Measure=Time
Format=%S

;-------------------------------------------------------------

[Meter24hClock]
Meter=String
MeasureName=MeasureHours
MeasureName2=MeasureMinutes
MeasureName3=MeasureSecond
StringAlign=Center
StringCase=Upper
FontFace=Anurati
FontColor=255,255,255
FontSize=(18*#Scale#)
X=(340*#Scale#)
Y=(100*#Scale#)
InlineSetting=Color | #Color3#
InlinePattern="[MeasureHours]"
InlineSetting2=Color | #Color6#
InlinePattern2="[MeasureMinutes]"
Text=- %1:%2:%3 -
AntiAlias=1
Hidden=#Hidden#
DynamicVariables=1

mondcolor.gif
thanks, now it works
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Help to change the color of the minutes on the clock

Post by eclectic-tech »

Glad to help :thumbup: