From 9a5cd16fd4c738d9fee873e3046a7a7746e20778 Mon Sep 17 00:00:00 2001 From: autocommit Date: Thu, 4 Jun 2026 21:24:33 -0700 Subject: [PATCH] fix(ui): end_turn_button brightens on hover, deepens on press MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/game/engine/scenes/hud/end_turn_button.gd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/game/engine/scenes/hud/end_turn_button.gd b/src/game/engine/scenes/hud/end_turn_button.gd index b321d913..cd5b1ccb 100644 --- a/src/game/engine/scenes/hud/end_turn_button.gd +++ b/src/game/engine/scenes/hud/end_turn_button.gd @@ -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)