It is currently April 24th, 2024, 8:14 pm

Highlighted Text On an Image

Get help with creating, editing & fixing problems with skins
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Highlighted Text On an Image

Post by Mordasius »

You can't do curved text using Rainmeter string meters so I would just dibble around with Gimp or Photoshop to make seven images. One for each day of the week using whatever combination of colours and highlights suits your fancy.
bill98
Posts: 445
Joined: March 17th, 2011, 4:54 am

Re: Highlighted Text On an Image

Post by bill98 »

I use Paint.net. It does the job quite nicely.
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Highlighted Text On an Image

Post by balala »

Ok, take a look at this code and let me know how you like the result:

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=80,80,80,220
AccurateText=1
DynamicWindowSize=1

[Variables]
Offset=15
Selected=255,242,0
Unselected=0,140,255

[DayStyle]
W=25
H=15
StringEffect=Border
FontEffectColor=0,0,0
FontSize=8
StringAlign=CENTER
FontFace=Segoe UI
Antialias=1
DynamicVariables=1

[MeasureWeekDay]
Measure=Time
Format=%w
IfCondition=(MeasureWeekDay=0)
IfTrueAction=[!SetOption MeterDay1 FontColor #Selected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Bold"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition2=(MeasureWeekDay=1)
IfTrueAction2=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Selected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Bold"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition3=(MeasureWeekDay=2)
IfTrueAction3=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Selected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Bold"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition4=(MeasureWeekDay=3)
IfTrueAction4=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Selected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Bold"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition5=(MeasureWeekDay=4)
IfTrueAction5=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Selected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Bold"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition6=(MeasureWeekDay=5)
IfTrueAction6=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Selected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Bold"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition7=(MeasureWeekDay=6)
IfTrueAction7=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor "252,242,0"][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Bold"]

[MeterDay1]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN([MeasureWeekDay]*PI/3.5)))+#Offset#)
Y=(50*(1-COS([MeasureWeekDay]*PI/3.5)))
Text=Sun

[MeterDay2]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+6)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+6)%7)*PI/3.5)))
Text=Mon

[MeterDay3]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+5)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+5)%7)*PI/3.5)))
Text=Tue

[MeterDay4]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+4)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+4)%7)*PI/3.5)))
Text=Wed

[MeterDay5]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+3)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+3)%7)*PI/3.5)))
Text=Thu

[MeterDay6]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+2)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+2)%7)*PI/3.5)))
Text=Fri

[MeterDay7]
Meter=STRING
MeterStyle=DayStyle
X=((50*(1-SIN((([MeasureWeekDay]+1)%7)*PI/3.5)))+#Offset#)
Y=(50*(1-COS((([MeasureWeekDay]+1)%7)*PI/3.5)))
Text=Sat
If you want to rotate the day names, it also can be done, but I have to work with a bit more, using the Transormation matrix or the Angle propertie of the String meter.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Highlighted Text On an Image

Post by balala »

Now that I saw what you'd like to do, I worked a bit on my previous code and here's the result:

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=80,80,80,220
AccurateText=1
DynamicWindowSize=1

[Variables]
OffsetX=15
OffsetY=15
Radius=100
Selected=255,242,0
Unselected=0,140,255

[DayStyle]
W=25
H=15
StringEffect=Border
FontEffectColor=0,0,0
FontSize=8
StringAlign=CENTERCENTER
FontFace=Segoe UI
Antialias=1
DynamicVariables=1

[MeasureWeekDay]
Measure=Time
Format=%w
IfCondition=(MeasureWeekDay=0)
IfTrueAction=[!SetOption MeterDay1 FontColor #Selected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Bold"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition2=(MeasureWeekDay=1)
IfTrueAction2=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Selected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Bold"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition3=(MeasureWeekDay=2)
IfTrueAction3=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Selected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Bold"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition4=(MeasureWeekDay=3)
IfTrueAction4=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Selected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Bold"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition5=(MeasureWeekDay=4)
IfTrueAction5=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Selected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Bold"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition6=(MeasureWeekDay=5)
IfTrueAction6=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Selected#][!SetOption MeterDay7 FontColor #Unselected#][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Bold"][!SetOption MeterDay7 StringStyle "Normal"]
IfCondition7=(MeasureWeekDay=6)
IfTrueAction7=[!SetOption MeterDay1 FontColor #Unselected#][!SetOption MeterDay2 FontColor #Unselected#][!SetOption MeterDay3 FontColor #Unselected#][!SetOption MeterDay4 FontColor #Unselected#][!SetOption MeterDay5 FontColor #Unselected#][!SetOption MeterDay6 FontColor #Unselected#][!SetOption MeterDay7 FontColor "252,242,0"][!SetOption MeterDay1 StringStyle "Normal"][!SetOption MeterDay2 StringStyle "Normal"][!SetOption MeterDay3 StringStyle "Normal"][!SetOption MeterDay4 StringStyle "Normal"][!SetOption MeterDay5 StringStyle "Normal"][!SetOption MeterDay6 StringStyle "Normal"][!SetOption MeterDay7 StringStyle "Bold"]

[MeterDay1]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN([MeasureWeekDay]*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS([MeasureWeekDay]*PI/3.5)))+#OffsetY#)
Text=Sun
Angle=(-0.8976*[MeasureWeekDay])
DynamicVariables=1

[MeterDay2]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+6)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+6)%7)*PI/3.5)))+#OffsetY#)
Text=Mon
Angle=(-0.8976*([MeasureWeekDay]-1))
DynamicVariables=1

[MeterDay3]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+5)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+5)%7)*PI/3.5)))+#OffsetY#)
Text=Tue
Angle=(-0.8976*([MeasureWeekDay]-2))
DynamicVariables=1

[MeterDay4]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+4)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+4)%7)*PI/3.5)))+#OffsetY#)
Text=Wed
Angle=(-0.8976*([MeasureWeekDay]-3))
DynamicVariables=1

[MeterDay5]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+3)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+3)%7)*PI/3.5)))+#OffsetY#)
Text=Thu
Angle=(-0.8976*([MeasureWeekDay]-4))
DynamicVariables=1

[MeterDay6]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+2)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+2)%7)*PI/3.5)))+#OffsetY#)
Text=Fri
Angle=(-0.8976*([MeasureWeekDay]-5))
DynamicVariables=1

[MeterDay7]
Meter=STRING
MeterStyle=DayStyle
X=((#Radius#*(1-SIN((([MeasureWeekDay]+1)%7)*PI/3.5)))+#OffsetX#)
Y=((#Radius#*(1-COS((([MeasureWeekDay]+1)%7)*PI/3.5)))+#OffsetY#)
Text=Sat
Angle=(-0.8976*([MeasureWeekDay]-6))
DynamicVariables=1
The meaning of the variables:
- OffsetX and OffsetY are the horizontal and vertical offsets of the text. To don't have any offset, just use OffsetX=15 and OffsetY=0, but because of the text align, part of day names could be outside of the skin.
- Radius is the radius (not diameter) of the circle with the day names (in pixels).
- Selected and Unselected are the color codes of the current respectively the other days.
You do not have the required permissions to view the files attached to this post.
bill98
Posts: 445
Joined: March 17th, 2011, 4:54 am

Re: Highlighted Text On an Image

Post by bill98 »

Thanks for your time and input. It seems to be working ok now.