feat(theme): Refine NERV palette contrast and readability

This commit is contained in:
2026-03-09 01:13:23 -04:00
parent 4ae606928e
commit 9facecb7a5
8 changed files with 144 additions and 33 deletions

View File

@@ -34,7 +34,8 @@ def test_apply_nerv_sets_rounding_and_colors(monkeypatch):
# Verify key colors
# window_bg should be BLACK (0, 0, 0, 1.0)
# text should be NERV_ORANGE (255/255.0, 152/255.0, 48/255.0, 1.0)
# text should be STEEL (224/255.0, 224/255.0, 216/255.0, 1.0)
# title_bg_active should be BLACK (0, 0, 0, 1.0)
# Extract calls to set_color_
# Using real imgui.Col_ values for keys because they are bound in NERV_PALETTE at import time
@@ -44,4 +45,7 @@ def test_apply_nerv_sets_rounding_and_colors(monkeypatch):
assert color_calls[imgui.Col_.window_bg] == (0.0, 0.0, 0.0, 1.0)
assert imgui.Col_.text in color_calls
assert color_calls[imgui.Col_.text] == (1.0, 152/255.0, 48/255.0, 1.0)
assert color_calls[imgui.Col_.text] == (224/255.0, 224/255.0, 216/255.0, 1.0)
assert imgui.Col_.title_bg_active in color_calls
assert color_calls[imgui.Col_.title_bg_active] == (0.0, 0.0, 0.0, 1.0)