@@ -288,10 +288,6 @@ function Create.Gradient( text, font, colorA, colorB, elementName )
288
288
local lines = { Create .Element ( " span" , elementName ) }
289
289
Append ( lines , " %s.className = 'gradient-container';" , elementName )
290
290
291
- if IsStringValid ( font ) then
292
- Append ( lines , " %s.style.fontFamily = '%s';" , font , elementName )
293
- end
294
-
295
291
-- Gradient background/glow
296
292
Append ( lines , Create .Element ( " span" , " elGradientGlow" , elementName ) )
297
293
Append ( lines , " elGradientGlow.className = 'gradient-bg';" )
@@ -315,6 +311,11 @@ function Create.Gradient( text, font, colorA, colorB, elementName )
315
311
Append ( lines , " elGradientText.textContent = '%s';" , text )
316
312
Append ( lines , " elGradientText.style.backgroundImage = '-webkit-linear-gradient(left, %s, %s)';" , ColorToRGB ( colorA ), ColorToRGB ( colorB ) )
317
313
314
+ if IsStringValid ( font ) then
315
+ Append ( lines , " elGradientGlow.style.fontFamily = '%s';" , font )
316
+ Append ( lines , " elGradientText.style.fontFamily = '%s';" , font )
317
+ end
318
+
318
319
return table.concat ( lines , " \n " )
319
320
end
320
321
@@ -518,6 +519,10 @@ blocks["player"] = function( value, ctx )
518
519
if IsStringValid ( ctx .font ) then
519
520
Append ( lines , " elPlayer.style.fontFamily = '%s';" , ctx .font )
520
521
end
522
+
523
+ if colors [1 ] then
524
+ Append ( lines , " elPlayer.style.color = '%s';" , ColorToRGB ( colors [1 ] ) )
525
+ end
521
526
end
522
527
523
528
if not value .isBot then
0 commit comments