https://docs.rainmeter.net/manual-beta/meters/string/inline/#InlineShadow
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[MeterString1]
Meter=String
FontSize=55
FontColor=255,255,255,255
Padding=5,5,5,5
SolidColor=0,0,0,1
InlineSetting=Shadow | 4 | 4 | 1 | 0,0,0,255
AntiAlias=1
Text=CLICK ME
LeftMouseDownAction=[!SetOption #CURRENTSECTION# InlinePattern "^$"][!SetOption #CURRENTSECTION# X "2"][!SetOption #CURRENTSECTION# Y "2"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# InlinePattern ""][!SetOption #CURRENTSECTION# X ""][!SetOption #CURRENTSECTION# Y ""][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# InlinePattern ""][!SetOption #CURRENTSECTION# X ""][!SetOption #CURRENTSECTION# Y ""][!UpdateMeter *][!Redraw]
[MeterString2]
Meter=String
Y=80
FontSize=20
FontColor=255,255,255,255
Padding=5,5,5,5
SolidColor=0,0,0,1
InlineSetting=Shadow | -4 | -4 | 2.0 | 0,0,0,255
AntiAlias=1
Text=Left and Up
[MeterString3]
Meter=String
Y=-2r
X=20R
FontSize=20
FontColor=255,255,255,255
Padding=5,5,5,5
SolidColor=0,0,0,1
InlineSetting=Shadow | 4 | 4 | 2.0 | 0,0,0,255
AntiAlias=1
Text=Right and Down
[MeterString4]
Meter=String
Y=110
X=20
FontSize=40
FontColor=255,255,255,255
Padding=7,7,7,7
SolidColor=0,0,0,1
InlineSetting=Shadow | 0 | 0 | 6.0 | 254,255,214,255
AntiAlias=1
Text=Glowing Text
This new InlineSetting is a true drop-shadow, which can be fully controlled and used with any kind of transparency you need.
Notes:
The transparency on the shadow color is in a sense added to the transparency on the string. So the shadow color will always have at least the same transparency as the string, but can be made more transparent by using the alpha component of the shadow color.
While small, there is an incremental increase in the amount of CPU resources used when the meter is drawn with a shadow effect. Some care should be take in a large complicated skin not to go nuts with shadow effects on tons of meters...