Trail ghosts

This commit is contained in:
Jennie Robinson Faber 2026-05-10 19:26:36 +01:00
parent d1c4c1a35d
commit d286bdf31e
2 changed files with 88 additions and 6 deletions

View file

@ -24,16 +24,19 @@ func _apply_loss_palette():
var border := Color(1, 0.3, 0.3, 1)
var subtle := Color(0.95, 0.7, 0.7, 1)
var card_style = $Center/Card.get_theme_stylebox("panel") as StyleBoxFlat
var card_style := ($Center/Card.get_theme_stylebox("panel") as StyleBoxFlat).duplicate() as StyleBoxFlat
if card_style:
card_style.border_color = border
card_style.bg_color = Color(0.18, 0.05, 0.05, 1)
$Center/Card.add_theme_stylebox_override("panel", card_style)
var button = $Center/Card/Margin/Column/RestartButton
var button_style = button.get_theme_stylebox("normal") as StyleBoxFlat
var button_style := (button.get_theme_stylebox("normal") as StyleBoxFlat).duplicate() as StyleBoxFlat
if button_style:
button_style.border_color = border
button_style.bg_color = Color(0.3, 0.1, 0.1, 1)
for state in ["normal", "hover", "pressed", "focus"]:
button.add_theme_stylebox_override(state, button_style)
button.add_theme_color_override("font_color", border)
$Center/Card/Margin/Column/Headline.add_theme_color_override("font_color", border)