diff --git a/B05_Profile/B05_Profile_UI_Style_Table.css b/B05_Profile/B05_Profile_UI_Style_Table.css index 1806537e8..3f1dedf96 100644 --- a/B05_Profile/B05_Profile_UI_Style_Table.css +++ b/B05_Profile/B05_Profile_UI_Style_Table.css @@ -352,8 +352,9 @@ stroke-width: 1.5; } +/* 지나온 선 · 미리 보기 · 점 = 녹색(367-4) — 범위 띠 · 경계는 보라 그대로. */ .b05-profile-freemark__line { - stroke: var(--color-primary); + stroke: var(--color-success); stroke-width: 2; stroke-dasharray: 6 4; } @@ -368,7 +369,7 @@ .b05-profile-freemark__dot { fill: var(--color-surface); - stroke: var(--color-primary); + stroke: var(--color-success); stroke-width: 1.5; } diff --git a/resources/tester/test_215_1_free_profile.py b/resources/tester/test_215_1_free_profile.py index 1166efad7..06c5a458a 100644 --- a/resources/tester/test_215_1_free_profile.py +++ b/resources/tester/test_215_1_free_profile.py @@ -174,6 +174,28 @@ def test_오버레이_점선_빨강_글(): assert ".b05-profile-freemark__line.is-over" in css +def _css_rule(css: str, selector: str) -> str: + at = css.index(selector + " {") + return css[at : css.index("}", at)] + + +def test_자유지정_녹색_넘음_빨강_띠_보라(): + # 367-4 선 · 미리 보기 · 점 = --color-success · 넘음 빨강 · 범위 띠 · 경계 보라 그대로 + css = _read("B05_Profile/B05_Profile_UI_Style_Table.css") + assert "stroke: var(--color-success);" in _css_rule(css, ".b05-profile-freemark__line") + assert "stroke: var(--color-success);" in _css_rule(css, ".b05-profile-freemark__dot") + assert "var(--color-danger" in _css_rule(css, ".b05-profile-freemark__line.is-over") + assert "var(--color-danger" in _css_rule(css, ".b05-profile-freemark__grade.is-over") + assert "--color-primary" in _css_rule(css, ".b05-profile-freemark__band") + assert "--color-primary" in _css_rule(css, ".b05-profile-freemark__edge") + # 밝음 · 어두움(명시 · OS 자동) 모두 success · danger 토큰 있음 + theme = _read("ui_template/ui_template_theme.css") + auto = theme[theme.index("@media (prefers-color-scheme: dark)") :] + auto = auto[: auto.index("\n}\n")] + for block in (_css_rule(theme, ":root"), _css_rule(theme, ':root[data-theme="dark"]'), auto): + assert "--color-success:" in block and "--color-danger:" in block + + def test_줄_수_늘리지_않음(): for relative in ( "A00_Common/design/design_profile.ts", diff --git a/ui_template/ui_template_theme.css b/ui_template/ui_template_theme.css index c670ebc04..fc1bd6fe8 100644 --- a/ui_template/ui_template_theme.css +++ b/ui_template/ui_template_theme.css @@ -370,6 +370,9 @@ --color-primary-text: #16121f; --color-accent: var(--color-lavender-wash); --color-focus-ring: var(--color-lavender-wash); + + --color-success: #3fbb6f; + --color-danger: #e8695a; --panel-handle-border: #e0b64a; --map-route-locked: #f472b6; }