aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-18 14:12:55 +0100
committerDanilo M. <danix@danix.xyz>2026-11-18 14:12:55 +0100
commite4d978965e1249fa61da8e42f679fb85db872e57 (patch)
tree76c39b89e4b1a75bc5384378b358f839591bb680
parentc074a085cca9d97d9b4eb18f21004fb41f7857f6 (diff)
downloaddeck-it-e4d978965e1249fa61da8e42f679fb85db872e57.tar.gz
deck-it-e4d978965e1249fa61da8e42f679fb85db872e57.zip
feat(xbox): profile background behind profile and consoles
Xbox's profile background is the gamerpic blurred. The tab shows it behind the profile and console cards, greyscale and multiplied over the UDT accent under a base fade, so the theme keeps every colour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--AGENTS.md6
-rw-r--r--static/deck.css8
-rw-r--r--static/modules/xbox.js11
3 files changed, 21 insertions, 4 deletions
diff --git a/AGENTS.md b/AGENTS.md
index af38260..0629a70 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -103,7 +103,11 @@ Keep the server dependency-free apart from that one package.
endpoint that refuses keeps its last data. Installed titles join the
recent ones in one games list (titlehub batch by pfn for those not
recent), marked `installed`, most recently played first. Xbox Live has no system
- software version. `_http` sends `User-Agent: deck-it`: xccs's gateway
+ software version. The profile and console cards share `.xb-hero`, whose
+ background is the gamerpic (Xbox's own profile background is it blurred)
+ in greyscale, blurred and multiplied over `--udt-accent` under a
+ `--udt-base` fade, so UDT keeps every colour. Xbox Live exposes no
+ download queue and no pending updates (probed 2026-11-18). `_http` sends `User-Agent: deck-it`: xccs's gateway
answers 403 to urllib's default. A foreground title
that titlehub calls a Game is `playing`: `$XDG_RUNTIME_DIR/status.xbox`
gets 1 (keystone ORs it into presentation) and `xbox.js`'s `peek` returns
diff --git a/static/deck.css b/static/deck.css
index 042e6e1..b2ffcf3 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -881,6 +881,14 @@ dialog.vm-sheet::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%,
.xbox .xb-on[hidden], .xbox .xb-off[hidden] { display: none; }
.xbox .xb-card { background: var(--udt-mantle); border: 1px solid var(--udt-surface0); border-radius: 18px; padding: 14px; }
.xbox .xb-head { display: flex; align-items: center; gap: 14px; }
+.xbox .xb-hero { display: flex; flex-direction: column; gap: 14px; position: relative; isolation: isolate;
+ overflow: hidden; padding: 18px; border-radius: 18px; border: 1px solid var(--udt-surface0); background: var(--udt-accent); }
+.xbox .xb-hero::before, .xbox .xb-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
+.xbox .xb-hero::before { inset: -60px; background: var(--xb-bg, none) center / cover;
+ filter: grayscale(1) blur(8px); mix-blend-mode: multiply; }
+.xbox .xb-hero::after { inset: 0; background: linear-gradient(160deg,
+ color-mix(in srgb, var(--udt-base) 50%, transparent), color-mix(in srgb, var(--udt-base) 10%, transparent)); }
+.xbox .xb-hero .xb-card { background: color-mix(in srgb, var(--udt-mantle) 50%, transparent); }
.xbox .xb-pic { width: 64px; height: 64px; border-radius: 50%; background: var(--udt-surface0); }
.xbox .xb-who { flex: 1; min-width: 0; }
.xbox .xb-tag { font-size: 1.4rem; font-weight: 700; }
diff --git a/static/modules/xbox.js b/static/modules/xbox.js
index ddfb252..7c569ed 100644
--- a/static/modules/xbox.js
+++ b/static/modules/xbox.js
@@ -244,18 +244,23 @@ function render(box, st) {
box.textContent = "";
const p = st.profile ?? {};
const head = h("div", "xb-head");
+ // Xbox's profile background is the gamerpic blurred; here only its light and shade, tinted by UDT,
+ // behind the profile and the consoles.
+ const hero = h("div", "xb-hero");
+ if (p.pic) hero.style.setProperty("--xb-bg", `url(${JSON.stringify(p.pic)})`);
const who = h("div", "xb-who");
who.append(h("div", "xb-tag", p.gamertag ?? ""), h("div", "xb-pres", presenceLine(st)));
head.append(img(p.pic, "xb-pic"), who, h("div", "xb-score num", `${p.gamerscore ?? 0} G`));
- box.append(head);
- if (st.stale) box.append(h("div", "xb-stale", "Xbox Live is not answering; this is the last data."));
+ hero.append(head);
+ if (st.stale) hero.append(h("div", "xb-stale", "Xbox Live is not answering; this is the last data."));
const top = h("div", "xb-top");
if (st.playing) top.append(nowPlaying(st));
for (const c of st.consoles ?? []) top.append(consoleCard(c, st.apps?.[c.id]));
if (!st.consoles?.length && st.reason?.startsWith("consoles")) {
top.append(h("div", "xb-stale", "Console control is unavailable: Xbox Live refused the console list."));
}
- box.append(top);
+ hero.append(top);
+ box.append(hero);
box.append(h("div", "xb-section", "Games"));
const games = h("div", "xb-games");