Page 1 of 1

Problem with time text changing colour

Posted: June 27th, 2020, 8:10 pm
by Mike199030
I have a text string that’s coloured red, whenever the time changes from a skin refresh the text turns black. Is there something I may be doing wrong? Or a work around?

EDIT: I’m using inline settings on the string, the day and time on the same string

Re: Problem with time text changing colour

Posted: June 27th, 2020, 8:21 pm
by balala
Mike199030 wrote: June 27th, 2020, 8:10 pm I have a text string that’s coloured red, whenever the time changes from a skin refresh the text turns black. Is there something I may be doing wrong? Or a work around?

EDIT: I’m using inline settings on the string, the day and time on the same string
It's useless to ask something like this, without posting a code. So, please post one.

Re: Problem with time text changing colour

Posted: June 27th, 2020, 8:29 pm
by Mike199030

Code: Select all

[Rainmeter]
Update=1000
SolidColor=0,0,0,150

[Metadata]
Name=
Author=
Information=
Version=
License=

[styleText]
StringStyle=Bold
StringAlign=Left
StringEffect=BORDER
FontEffectColor=60,60,60,255

[MeasureDay]
Measure=Time
Format=%A

[MeasureDate]
Measure=Time
Format= %#d

[MeasureMonth]
Measure=Time
Format=%B

[MeasureYear]
Measure=Time
Format=%Y

[Measure24HrTime]
MeterStyle=styleTime
Measure=Time
Format=%H:%M

[MeterLeft]
MeterStyle=styleText
Meter=String
MeasureName=MeasureDate
MeasureName2=MeasureMonth
MeasureName3=MeasureYear
X=130
Y=65
AntiAlias=1
FontSize=30
Text=%1#CRLF#%2 %3
InlineSetting=Color | 205,10,2,255
InlinePattern=^[MeasureDate]
InlineSetting2=Size | 50
InlinePattern2=^[MeasureDate]
InlineSetting3=Color | 171,171,171,255
InlinePattern3=#CRLF#[MeasureMonth] [MeasureYear]$

[MeterRight]
MeterStyle=styleText
Meter=String
MeasureName=MeasureDay
MeasureName2=Measure24HrTime
StringAlign=Center
X=1200
Y=50
AntiAlias=1
FontSize=50
Text=%1#CRLF#%2
InlineSetting=Color | 171,171,171,255
InlinePattern=^[MeasureDay]
InlineSetting2=Size | 30
InlinePattern2=^[MeasureDay]
InlineSetting3=Color | 205,10,2,255
InlinePattern3=#CRLF#[Measure24HrTime]$

Re: Problem with time text changing colour

Posted: June 27th, 2020, 8:43 pm
by balala
Simply add a DynamicVariables=1 option to the [MeterRight] meter. This option is required because the meter uses section variables into the InlinePatternX options (for instance InlinePattern3=#CRLF#[Measure24HrTime]$) and section variables are requiring to set the dynamic variables.

Re: Problem with time text changing colour

Posted: June 27th, 2020, 9:12 pm
by Mike199030
balala wrote: June 27th, 2020, 8:43 pm Simply add a DynamicVariables=1 option to the [MeterRight] meter. This option is required because the meter uses section variables into the InlinePatternX options (for instance InlinePattern3=#CRLF#[Measure24HrTime]$) and section variables are requiring to set the dynamic variables.
Thank you so much!

Re: Problem with time text changing colour

Posted: June 28th, 2020, 4:12 pm
by balala
Mike199030 wrote: June 27th, 2020, 9:12 pm Thank you so much!
Did it work? Hope it did.