style(ui): the last hand-rolled colours join the theme
Five screen titles in the main menu were white on a black outline and the HUD used Color.BLACK outlines and a hardcoded grey. That was the old comic theme's contrast trick, and next to a papaya wordmark it read as a different game's menu. They take UITheme.PAPAYA, INK and PAPER_DIM now, so every screen — main menu, pause menu, character picker, settings, HUD and rig lab — is one palette with one source. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
08ae85b286
commit
99a2ee131d
+4
-4
@@ -33,7 +33,7 @@ func _ready() -> void:
|
||||
|
||||
_time_label = Label.new()
|
||||
_time_label.add_theme_font_size_override("font_size", 48)
|
||||
_time_label.add_theme_color_override("font_outline_color", Color.BLACK)
|
||||
_time_label.add_theme_color_override("font_outline_color", UITheme.INK)
|
||||
_time_label.add_theme_constant_override("outline_size", 8)
|
||||
top_hbox.add_child(_time_label)
|
||||
|
||||
@@ -48,7 +48,7 @@ func _ready() -> void:
|
||||
_leader_label = Label.new()
|
||||
_leader_label.text = "Leader: None"
|
||||
_leader_label.add_theme_font_size_override("font_size", 32)
|
||||
_leader_label.add_theme_color_override("font_outline_color", Color.BLACK)
|
||||
_leader_label.add_theme_color_override("font_outline_color", UITheme.INK)
|
||||
_leader_label.add_theme_constant_override("outline_size", 8)
|
||||
top_hbox.add_child(_leader_label)
|
||||
|
||||
@@ -131,7 +131,7 @@ func _populate_scoreboard_headers() -> void:
|
||||
var l = Label.new()
|
||||
l.text = h
|
||||
l.add_theme_font_size_override("font_size", 24)
|
||||
l.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
|
||||
l.add_theme_color_override("font_color", UITheme.PAPER_DIM)
|
||||
_scoreboard_grid.add_child(l)
|
||||
|
||||
func _update_hud() -> void:
|
||||
@@ -204,7 +204,7 @@ func _on_killfeed_event(victim: String, killer: String, weapon: String, v_color:
|
||||
l.text = "[color=#%s]%s[/color] [%s] [color=#%s]%s[/color]" % [k_color, killer, weapon, v_color, victim]
|
||||
|
||||
l.add_theme_font_size_override("normal_font_size", 20)
|
||||
l.add_theme_color_override("font_outline_color", Color.BLACK)
|
||||
l.add_theme_color_override("font_outline_color", UITheme.INK)
|
||||
l.add_theme_constant_override("outline_size", 4)
|
||||
_killfeed_vbox.add_child(l)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user