diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 19:19:58 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 19:19:58 +0100 |
| commit | 04bd03db72c7165debb79d1858f39121757ca358 (patch) | |
| tree | 1cf8f6d7be63731cf5ddedcecfabdd29670c1d6e /tests | |
| parent | 67e64e964a85562300b463378f0e260d6978867f (diff) | |
| download | deck-it-04bd03db72c7165debb79d1858f39121757ca358.tar.gz deck-it-04bd03db72c7165debb79d1858f39121757ca358.zip | |
feat: animate the UDT border gradient on the cards
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_theme.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_theme.py b/tests/test_theme.py index 6530af5..4b8b2de 100644 --- a/tests/test_theme.py +++ b/tests/test_theme.py @@ -29,6 +29,16 @@ class Theme(unittest.TestCase): self.assertIn("--udt-base: #24273a", out) self.assertIn("--udt-accent:", out) # fallback accent + def test_parses_border_hues(self): + self.assertEqual( + theme.parse_border('return { "rgb(58a6ff)", "rgb(a371f7)", "rgb(db61a2)" }'), + ["#58a6ff", "#a371f7", "#db61a2"]) + + def test_css_exposes_border_vars(self): + out = theme.css({"base": "#24273a"}, None, ["#111111", "#222222", "#333333"]) + for index, value in enumerate(["#111111", "#222222", "#333333"], 1): + self.assertIn(f"--udt-border-{index}: {value}", out) + def test_load_falls_back_when_files_are_missing(self): saved = (theme.PALETTE_PATH, theme.ACCENT_PATH) theme.PALETTE_PATH = Path("/nonexistent/palette.rasi") |
