It is currently April 12th, 2021, 4:17 am

[Bug] None InLineSetting doubles other InLine effects

Report bugs with the Rainmeter application and suggest features.
User avatar
Jeff
Posts: 194
Joined: September 3rd, 2018, 11:18 am

[Bug] None InLineSetting doubles other InLine effects

Post by Jeff »

Image

I tried to wrap my head around a theory on why it might happen, I can't find one, disabling DynamicVariables does remove the extra shadow though

Here's the code of the skin shown

Code: Select all

[Rainmeter]
Update       = 2000
AccurateText = 1

[MeasureTime]
Measure    = Time
Format     = %H:%M#CRLF#%d %b#CRLF#%A

[MeasureDay]
Measure = Time
Format  = %d
UpdateDevider = -1
IfCondition   = (#CURRENTSECTION# % 3) = 0
IfTrueAction  = !SetOption MeasureFlowers String "Water your plants dumbass [\xE545]"

[MeasureWeek]
Measure = Time
Format  = %W
UpdateDevider = 50
IfCondition   = (#CURRENTSECTION# % 2) = 0
IfTrueAction  = !SetOption MeasureWeekString String "Even week"
IfFalseAction = !SetOption MeasureWeekString String "Uneven week"

[MeasureFlowers]
Measure = String

[MeasureWeekString]
Measure = String

[TwoDots]
Measure    = Loop
StartValue = 0
EndValue   = 1

[String]
Meter          = String
MeasureName    = MeasureTime
MeasureName2   = MeasureWeekString
MeasureName3   = MeasureFlowers
Text           = %1#CRLF#%2#CRLF#%3
FontFace       = VarelaRound
FontSize       = 30
FontColor      = FFFFFF
StringCase     = Lower

Padding          = 10,10,10,10
AntiAlias        = 1
DynamicVariables = 0
InlineSetting2 = Shadow | 0 | 0 | 4 | 00000080

;=====Settings=====
InlineSetting  = None
InlineSetting3 = CharacterSpacing | 2 | 2
InLineSetting4 = Size | 100
InLineSetting5 = Color | 255,255,255,([TwoDots] * 255)
InLineSetting6 = Size | 40
InLineSetting7 = Face | Material Icons
;=====Patterns=====
InlinePattern4 = ..:..
InlinePattern5 = :
InlinePattern7 = \W$
InLinePattern6=#CRLF#
Last edited by Jeff on March 13th, 2021, 1:37 pm, edited 3 times in total.
User avatar
Jeff
Posts: 194
Joined: September 3rd, 2018, 11:18 am

Re: Enabling DynamicVariables adds extra Inline Shadow

Post by Jeff »

Ok this is even funnier, the same thing happens on another skin, I mean... ALMOST HAPPENS

Image

What I'm doing here is doing the exact same InlineSettings (and style options) as before, but they are on a MeterStyle
All of the strings in the skin are separate meters (because I wanna click them), but, only the one in the middle (named twitter) has DynamicVariables on (because I can change it from twitter to reddit with a context action).
The only difference with this skin is that Update is -1 and that at the end of the lua file that I have to generate the list I have SKIN:Bang('[!Update][!Redraw]').
If it's needed I will post the code for the 2nd one as well.
User avatar
Brian
Developer
Posts: 2110
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Enabling DynamicVariables doubles the Inline Shadow

Post by Brian »

Sorry for the long delay. This has been fixed for the next beta.

In this case, the problem wasn't the "Shadow" inline setting, it was actually the the "None" inline setting - specially the parsing of that option. Some assumptions were made when introducing this option, which ended up causing some "repeating" of some inline settings. This repeating wouldn't be noticeable in most cases, but it did cause a "doubling" effect for the Shadow option.

-Brian
User avatar
Jeff
Posts: 194
Joined: September 3rd, 2018, 11:18 am

Re: Enabling DynamicVariables doubles the Inline Shadow

Post by Jeff »

F yeah now I can finally use light wallpapers again
Thank youuuuu!