diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 16:48:59 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 16:48:59 +0100 |
| commit | 5a6359af175a0dac3c7c03d7b76bdaa59dadcb61 (patch) | |
| tree | 47d64e88f72f00b47743565d0eea98ea0e9a7bb4 | |
| parent | a7200dbff7f38c19e9e0f31f786e56ba9fa4565d (diff) | |
| download | deck-it-5a6359af175a0dac3c7c03d7b76bdaa59dadcb61.tar.gz deck-it-5a6359af175a0dac3c7c03d7b76bdaa59dadcb61.zip | |
feat(windows): a busy desktop gets an accent dot, not a filled tile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | static/deck.css | 6 | ||||
| -rw-r--r-- | static/modules/windows.js | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css index 0929684..e60c732 100644 --- a/static/deck.css +++ b/static/deck.css @@ -309,6 +309,12 @@ select { .wtile.launch { min-width: 64px; min-height: 64px; padding: 0 12px; } .laticon { display: block; width: 32px; height: 32px; object-fit: contain; } .windows .ws { justify-content: center; } +/* A desktop with windows: an accent dot under its tile. */ +.windows .ws .wtile { position: relative; } +.windows .ws .wtile.busy::after { + content: ""; position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; + border-radius: 3px; background: var(--udt-accent); transform: translateX(-50%); +} .wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 14px; } .wcard { display: flex; flex-direction: column; gap: 6px; padding: 0; font: inherit; background: none; border: 0; color: inherit; cursor: pointer; min-width: 0; } .wbox { diff --git a/static/modules/windows.js b/static/modules/windows.js index 27e966e..7e2a184 100644 --- a/static/modules/windows.js +++ b/static/modules/windows.js @@ -183,7 +183,7 @@ export default { const b = tile("", () => post("workspace", { n: id })); b.setAttribute("aria-label", `Desktop ${id}`); wsMark(b, id, st.wsIcons); - b.classList.toggle("on", (st.windows ?? []).some((w) => w.workspace === id)); + b.classList.toggle("busy", (st.windows ?? []).some((w) => w.workspace === id)); ws.append(b); } |
