feat(dev): preview states for the Library and the in-game menu (#2899)

* Developer tools: preview states for the Library and the in-game menu

Settings › Developer gets a Preview states group (shown with developer
tools on):
- Library: nothing installed, signed out of every store, or sample games
  in every store (each store's storefront games passed off as owned, a
  few as installed). A pill on the Library says which preview is on and
  ends it. Nothing is installed, removed or signed out, and the preview
  is never saved, so a restart always turns it off.
- In-game menu: opens the session menu over the launcher for Steam,
  Desktop or a game, without starting a session. Its switches change only
  the preview. LB/RB switch pages and B or Back closes it, as in a session.

* Preview states: Back closes the menu preview; signed-out preview covers expired stores

The launcher's exit gesture no longer takes Back while the in-game menu
preview is open, so Back closes the preview. The signed-out Library
preview shows the sign-in card for an expired store with cached games too.

* Developer tools: a UI zoo sheet for previews; previews are read-only

The Developer tab keeps one UI zoo row instead of the preview pickers. It
opens a side sheet listing the in-game menu (Steam, Desktop, game) and the
Library states; nothing shows until one is picked, and picking one closes
the sheet. A Library preview switches to the Library on All games.

While a Library preview is on, opening a game shows a short note instead
of its page, which would act on the real install behind the preview.
Size sorting uses the size a card shows, so a real install shown as not
installed sorts by its catalog size.

* Developer tools: preview shortcuts, a Library toolbar button for preview states

An opt-in Preview shortcuts switch (off by default) puts a flask button
in the Library's toolbar that picks the real library or a preview state
in place, so a state is a tap away while using the launcher normally.
The UI zoo stays the catalog of every preview.

* Preview states: no real sign-in or sign-out from a Library preview

The toolbar's sign-out button is hidden while a Library preview is on,
and the sign-in card's button only says previews are read-only, so a
preview never signs a real account in or out.
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-19 21:26:31 -05:00
1 parent fc9ad2447d
commit 00557703da
9 files changed
+354 -20

No files matched your search

+18
View File
@@ -4288,6 +4288,24 @@
<string name="settings_place_sheet">Steam or Desktop options (swipe up)</string>
<string name="settings_place_steam_qam">Steam quick menu (•••)</string>
<string name="dev_group_logs">Logs</string>
<string name="dev_ui_zoo">UI zoo</string>
<string name="dev_ui_zoo_hint">Screens that are hard to reach, shown only when you pick one</string>
<string name="dev_ui_zoo_open">Open</string>
<string name="dev_ui_zoo_show">Show</string>
<string name="dev_ui_zoo_note">Previews change nothing real: nothing is installed, removed or signed out, and the menu\'s switches save nothing. A Library preview stays until you end it from its pill or restart.</string>
<string name="dev_preview_library">Library</string>
<string name="dev_preview_library_nothing_installed">Nothing installed</string>
<string name="dev_preview_library_signed_out">Signed out of every store</string>
<string name="dev_preview_library_sample">Sample games in every store</string>
<string name="dev_preview_banner">Preview: %1$s</string>
<string name="dev_preview_end">End preview</string>
<string name="dev_preview_real">Real library</string>
<string name="dev_preview_shortcut">Preview a state</string>
<string name="dev_preview_shortcuts">Preview shortcuts</string>
<string name="dev_preview_shortcuts_hint">Adds a preview button where a state lives, such as the Library\'s toolbar, to switch states in place</string>
<string name="dev_preview_read_only">Previews are read-only. End the preview to open games.</string>
<string name="dev_preview_drawer">In-game menu</string>
<string name="dev_preview_drawer_backdrop">In-game menu preview · Back to close</string>
<string name="settings_place_tab">Tabs</string>
<string name="rail_storage">Storage</string>
<string name="rail_sync">Syncthing</string>