fix(ui): end_turn_button brightens on hover, deepens on press

Follow-up to 268b85c92. The first tokenization mapped the per-state button
styleboxes such that the warm-token luma ordering inverted the interaction: the
button darkened on hover instead of brightening. Reorder by luma so hover is the
lightest warm token (button.bgPressed #472f0f), pressed the darkest
(button.bgHover #331a0d), and normal in between (background.listSelected
#3f2d0d) — restoring the original gold-emphasis brighten-on-hover feel. Token
names read awkwardly because the button.* set targets the indigo-idle inherited
button, not a gold emphasis button; the comment documents the luma intent.
Visual-only; compiles with autoloads (GATE_OK).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
autocommit 2026-06-04 21:24:33 -07:00
parent d1b7ff8efc
commit 9a5cd16fd4

View file

@ -26,20 +26,23 @@ func _apply_panel_style() -> void:
func _apply_button_style() -> void:
# Warm-token luma progression so the button brightens on hover and deepens on
# press (matches the original gold-emphasis behaviour): hover is the lightest
# warm token, pressed the darkest, normal in between.
var normal: StyleBoxFlat = StyleBoxFlat.new()
normal.bg_color = ThemeAssets.color("button.bgPressed")
normal.bg_color = ThemeAssets.color("background.listSelected")
normal.border_color = ThemeAssets.color("border.panel")
normal.set_border_width_all(2)
normal.set_corner_radius_all(4)
var hover: StyleBoxFlat = StyleBoxFlat.new()
hover.bg_color = ThemeAssets.color("button.bgHover")
hover.bg_color = ThemeAssets.color("button.bgPressed")
hover.border_color = ThemeAssets.color("border.focus")
hover.set_border_width_all(2)
hover.set_corner_radius_all(4)
var pressed_style: StyleBoxFlat = StyleBoxFlat.new()
pressed_style.bg_color = ThemeAssets.color("background.listSelected")
pressed_style.bg_color = ThemeAssets.color("button.bgHover")
pressed_style.border_color = ThemeAssets.color("border.panel")
pressed_style.set_border_width_all(2)
pressed_style.set_corner_radius_all(4)