New component library at client/ui/implant/: - ImplantTheme: shared Resource with colors, spacing, font sizes - ImplantPanel: PanelContainer root with themed background/border - ImplantHeader: title + subtitle - ImplantSeparator: themed horizontal rule with above/below spacing - ImplantDataRow: single-line text with optional color override - ImplantTextBlock: RichTextLabel for wrapping narrative text - default_implant.tres: default theme resource Star map info panel refactored from 140 lines of manual draw_string calls to 50 lines of component composition via _rebuild_info_panel(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
734 B
Plaintext
25 lines
734 B
Plaintext
[gd_resource type="Resource" script_class="ImplantTheme" load_steps=2 format=3]
|
|
|
|
[ext_resource type="Script" path="res://ui/implant/implant_theme.gd" id="1"]
|
|
|
|
[resource]
|
|
script = ExtResource("1")
|
|
text_primary = Color(0.784, 0.816, 0.878, 1)
|
|
text_dim = Color(0.4, 0.467, 0.533, 1)
|
|
accent_active = Color(0.941, 0.816, 0.376, 1)
|
|
accent_positive = Color(0.267, 0.667, 0.4, 1)
|
|
accent_negative = Color(0.667, 0.267, 0.267, 1)
|
|
accent_warning = Color(0.667, 0.533, 0.267, 1)
|
|
panel_bg = Color(0.05, 0.08, 0.14, 0.92)
|
|
separator = Color(0.78, 0.82, 0.88, 0.12)
|
|
hover_bg = Color(0.78, 0.82, 0.88, 0.08)
|
|
line_height = 18
|
|
sep_above = 6
|
|
sep_below = 12
|
|
padding = 12
|
|
border_width = 1.0
|
|
font_header = 15
|
|
font_body = 11
|
|
font_small = 10
|
|
font_caption = 9
|