I want to change the font color in a meter when the value changes in a measure.
In this case, if the network fails, the "Offline" writing will be red. If it were just declared using "FontColor" it would be easy.
But I work with the "InlineSetting" function.
What do I have to change in the corresponding measure so that it changes from white to red with the corresponding color effect?
Here is my skin code. What can be found in the corresponding measure does not work. And nothing else that I have found here in the forum or on the Internet either
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
[Metadata]
Name=Info-Meter
Author=Youkai1977
Version=2021 <> 26.01.
Information=This Meter is a Part of M.A.R.S.- 2021 Skin Package
License=Creative Commons BY-NC-SA 3.0
;--------------------------------------------------
;--- VARIABLES & STYLES ---------------------------
;--------------------------------------------------
[Variables]
Images=#@#images\
ImgAlpha=100
ColorEffect1=0,78,195,230
ColorEffect2=17,207,255,230
ColorEffect3=164,164,164,230
ColorEffect4=200,200,200,230
WarnColor1=255,0,0,230
WarnColor2=135,0,0,230
WarnShadow=165,0,0,170
ShadowEffect1=0,78,195,170
ShadowEffect2=164,164,164,170
FrameColor1=0,78,195,230
FrameColor2=68,118,255,230
BGColor1=0,78,195,60
BGColor2=68,118,255,130
FS=10
[Style1]
FontFace=UBUNTU LIGHT
AntiAlias=1
[Style2]
FontWeight=600
[Style3]
StringAlign=LEFT
[Style4]
StringAlign=CENTER
[Style5]
InlineSetting=GradientColor | 90 | #ColorEffect1# ; 1.0 | #ColorEffect2# ; 0.5
InlineSetting2=Shadow | 0 | 0 | 2.5 | #ShadowEffect1#
[Style6]
InlineSetting=GradientColor | 270 | #ColorEffect3# ; 0.5 | #ColorEffect4# ; 1.0
InlineSetting2=Shadow | 0 | 0 | 2.5 | #ShadowEffect2#
[Style7]
InlineSetting=GradientColor | 270 | #WarnColor1# ; 0.5 | #WarnColor2# ; 1.0
InlineSetting2=Shadow | 0 | 0 | 2.5 | #WarnShadow#
;--------------------------------------------------
;--- MEASURES -------------------------------------
;--------------------------------------------------
[mUser]
Measure=PLUGIN
Plugin=SysInfo
SysInfoType=USER_NAME
[mCurTime]
Measure=Time
[mAccTime]
Measure=Plugin
Plugin=SysInfo
SysInfoType=USER_LOGONTIME
UpdateDivider=-1
[mLogInDuration]
Measure=Uptime
Group=Account
SecondsValue=([mCurTime:]-[mAccTime:])
Format=%4!02i!:%3!02i!:%2!02i!:%1!02i!
DynamicVariables=1
[mAccountLogInTime]
Measure=Time
Group=Account
TimeStamp=[mAccTime]
Format=%a %d.%m.%Y %H:%M:%S
TimeStampLocale=de-DE
FormatLocale=Local
Format=%#c
Substitute="Mo":"MO","Di":"DI","Mi":"MI","Do":"DO","Fr":"FR","Sa":"SA","So":"SO"
DynamicVariables=1
[mTerminal]
Measure=PLUGIN
Plugin=SysInfo
SysInfoType=COMPUTER_NAME
UpdateDivider=-1
[mConnectivityLAN]
Measure=Plugin
Plugin=SysInfo
SysInfoType=LAN_CONNECTIVITY
IfConditionMode=1
IfCondition=mConnectivityLAN = -1
IfTrueAction=[!SetOption LANStatus Text "OFFLINE"][!SetVariable [Style7] [Style6]]
IfCondition2=mConnectivityLAN = 1
IfTrueAction2=[!SetOption LANStatus Text "ONLINE"][!SetVariable [Style6] [Style7]]
OnUpdateAction=[!UpdateMeter LANStatus][!Redraw]
UpdateDivider=5
[mOSName]
Measure=PLUGIN
Plugin=SysInfo
SysInfoType=OS_VERSION
UpdateDivider=-1
[mOSBits]
Measure=PLUGIN
Plugin=SysInfo
SysInfoType=OS_BITS
UpdateDivider=-1
[mOSVersion]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentBuild
UpdateDivider=-1
;--------------------------------------------------
;--- CURRENT USER & SYSTEM-INFO (SYS-Control) -----
;--------------------------------------------------
[BG_Frame]
Meter=Shape
X=0
Y=0
Shape=Rectangle 0,0,312,60,4 | StrokeWidth 2 | Stroke LinearGradient StrokeGradient | Fill RadialGradient FillGradient | Offset 1,1
Shape2=Line 0,0,300,2 | StrokeWidth 2 | Stroke RadialGradient LineGradient | Offset 7,39
Shape3=Rectangle 0,70,242,78,4 | StrokeWidth 2 | Stroke LinearGradient StrokeGradient | Fill RadialGradient FillGradient | Offset 1,1
FillGradient=0,0,0,0,170,50 | #BGColor2# ; 0.0 | #BGColor1# ; 1.0
LineGradient=0,0 | #FrameColor1# ; 0.0 | #FrameColor2# ; 1.0
StrokeGradient=90 | #FrameColor1# ; 0.0 | #FrameColor2# ; 1.0
UpdateDivider=-1
[BG_Logo]
Meter=IMAGE
ImageName=#Images#logo1.png
ImageAlpha=#ImgAlpha#
AntiAlias=1
X=r
Y=69r
W=244
H=80
UpdateDivider=-1
[UserTitel]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style5
FontSize=#FS#
Text=OPERATOR:
X=6
Y=5
UpdateDivider=-1
[User]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style6
FontSize=#FS#
Text=[mUser]
ClipString=1
X=83r
Y=r
W=220
UpdateDivider=-1
[LogInTitel]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style5
FontSize=#FS#
Text=LOG IN:
X=6
Y=16r
UpdateDivider=-1
[LogInTime]
Meter=STRING
MeterStyle=Style1 | Style3 | Style6
FontSize=#FS#
Text=[mAccountLogInTime] ([mLogInDuration])
X=83r
Y=r
DynamicVariables=1
[TerminalTitel]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style5
FontSize=#FS#
Text=TERMINAL:
ClipString=1
X=6
Y=21r
W=220
UpdateDivider=-1
[TERMINAL]
Meter=STRING
MeterStyle=Style1 | Style3 | Style6
FontSize=#FS#
Text=[mTerminal]
X=83r
Y=r
DynamicVariables=1
[LANStatusTitel]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style5
FontSize=#FS#
Text=NETWORK:
X=90r
Y=r
DynamicVariables=1
[LANStatus]
Meter=STRING
MeterStyle=Style1 | Style4 | Style6
FontSize=#FS#
Text=[mConnectivityLAN]
X=103r
Y=r
DynamicVariables=1
[BaseOSTitel]
Meter=STRING
MeterStyle=Style1 | Style2 | Style3 | Style5
FontSize=#FS#
Text=BASE-OS:
X=6
Y=30r
UpdateDivider=-1
[BaseOS]
Meter=STRING
MeterStyle=Style1 | Style3 | Style6
FontSize=#FS#
Text=[mOSName] x[mOSBits] ([mOSVersion])
X=83r
Y=r
DynamicVariables=1
UpdateDivider=-1
Where is my mistake here?
So, which Rainmeter expert pulls my ears long after laughing to death and explains to me or changes my tinkering into something that works?