From 5a6359af175a0dac3c7c03d7b76bdaa59dadcb61 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 16:48:59 +0100 Subject: feat(windows): a busy desktop gets an accent dot, not a filled tile Co-Authored-By: Claude Opus 5.5 --- static/deck.css | 6 ++++++ static/modules/windows.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'static') 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); } -- cgit v1.2.3