It is currently July 14th, 2020, 9:09 pm

Problem with time text changing colour

Help with creating, editing & fixing problems with skins
Mike199030
Posts: 3
Joined: June 27th, 2020, 8:06 pm

Problem with time text changing colour

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 11036
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problem with time text changing colour

Post 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.
Mike199030
Posts: 3
Joined: June 27th, 2020, 8:06 pm

Re: Problem with time text changing colour

Post 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]$
User avatar
balala
Rainmeter Sage
Posts: 11036
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problem with time text changing colour

Post 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.
Mike199030
Posts: 3
Joined: June 27th, 2020, 8:06 pm

Re: Problem with time text changing colour

Post 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!
User avatar
balala
Rainmeter Sage
Posts: 11036
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problem with time text changing colour

Post by balala »

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