From 3272941508bfbfb364315ee546bdc8aaa6766942 Mon Sep 17 00:00:00 2001 From: TheBiemGamer <47662596+TheBiemGamer@users.noreply.github.com> Date: Wed, 11 Nov 2026 11:59:19 +0000 Subject: [PATCH] feat(ui): Play, favorites and Settings answer at once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Play on a card or the Continue banner shows Launching… and takes no second click until the launch command returns. The favorite heart and the Settings switches change on click and flip back if the save fails; the switches no longer reload the library. Settings opens on the view read at start and refreshes behind it. --- DESIGN.md | 3 ++- src/App.svelte | 29 +++++++++++++++++++++++++---- src/lib/Card.svelte | 5 +++++ src/lib/Continue.svelte | 9 +++++++-- src/lib/Grid.svelte | 4 ++++ src/lib/Settings.svelte | 34 +++++++++++++++++++++++----------- 6 files changed, 66 insertions(+), 18 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index c80f803..5cee21b 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -240,7 +240,8 @@ No UI text below 11px. Counts and numbers use tabular figures. Folder paths in t - Default is `surface-2`, stepping to `line` on hover. - Glass is `glass-on` with `glass-on-line`, for secondary actions on glass. - Destructive actions use `danger-text`, never a red fill. - - Focus is a 2px `focus` outline with 2px offset, everywhere. Disabled is 60% opacity. A busy button ("Downloading…", "Queued") is `aria-disabled` so it keeps focus. + - Focus is a 2px `focus` outline with 2px offset, everywhere. Disabled is 60% opacity. A busy button ("Downloading…", "Queued") is `aria-disabled` so it keeps focus. Play on a card or the Continue banner turns into a busy Launching… pill until the launch command returns, so a second click starts nothing. + - Favorites and Settings switches change on click and flip back if the save fails; Settings opens on the last read view and refreshes behind it. - **Chips:** 36px, `glass` fill, `glass-line` border, `text-2`. Selected (`aria-pressed`) is `glass-on`, `glass-on-line`, `text`. - The Settings chip carries an 8px amber dot only for a real problem: a saved login that stopped working, or a store that was set up and broke. A store never set up raises nothing. - The store selector is one segmented control (a bits-ui `RadioGroup`) listing only the stores the library has games from. It is absent with one store. Arrows (all four), Home and End move to a segment and pick it, wrapping; one segment is the Tab stop. diff --git a/src/App.svelte b/src/App.svelte index 6235353..bad8b69 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -19,6 +19,7 @@