It is currently March 28th, 2024, 10:26 am

Problem with time text changing colour

Get help with creating, editing & fixing problems with skins
Post Reply
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
Attachments
02B0E339-701A-4618-A614-1567F9AA9034.jpeg
After the time changes
AE287F03-9E93-4370-91A6-172CDBB32A9F.jpeg
Straight from skin refresh
User avatar
balala
Rainmeter Sage
Posts: 16109
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: 16109
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: 16109
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.
Post Reply