feat: enhance color handling in templates and dashboard with hex support
This commit is contained in:
@@ -20,6 +20,9 @@ def test_save_and_load_templates_roundtrip(tmp_path):
|
||||
}
|
||||
save_templates(path, data)
|
||||
|
||||
raw = path.read_text(encoding="utf-8")
|
||||
assert '"color": "#00007B"' in raw
|
||||
|
||||
loaded = load_templates(path)
|
||||
assert loaded["420"]["text"] == "Custom"
|
||||
assert loaded["420"]["color"] == 123
|
||||
|
||||
Reference in New Issue
Block a user