mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
feat(library): Library chips and toolbar like the Stores tab, a Custom games tab, and one Manage stores sheet (#2897)
* feat(stores): one Manage stores sheet for order, visibility and accounts Store order, which stores show, and signing in or out now live in one slide-over, the same one Edit tabs uses, with the same sorter: drag the handle, or Y to grab and the d-pad to move, A to show or hide. - The Library's chip row opens it from a sliders chip at its start, in place of the Store accounts button at the end of the row. The Stores tab's Arrange tabs opens the same sheet instead of rearranging the chip row in place. - Each store row shows its account and one action: Sign in, Sign out, Reconnect when the login expired, or Add key for itch.io. - A switched-off store leaves the Library's chips too; its games stay under All. A shown store that is signed out keeps its chip, and picking it shows the Stores tab's sign-in card in the Library. - The Stores tab, the Library's chips and the sheet share one store order. EditTabsSheet and the new sheet share SideSheet, and the tab and store lists share SortableRows. Sign-in from the Stores tab, the sheet and the Library goes through startStoreSignIn. * feat(library): Library chips match the Stores tab, cards fade in on a store change, and the sheet only arranges The Library's chip row uses the Stores tab's chips, store-colored theme and sliding fill. Switching store fades and lifts the visible cards in, staggered, and still when animations are off. Sign-in now lives on each store's own tab, so Manage stores drops its account buttons and keeps order and show or hide, with each account as a line of text. * feat(library): chips at the top, the chosen chip's toolbar under them, and a Custom games tab The Library drops its title row and game count. The store chips are the top row, and under them the chosen chip's name sits beside search, display, sort, view and the game file actions, as in the Stores tab. The add button that sat in every header becomes a Custom games chip that is always there: empty, it opens on a card that adds a game file or a folder of games; with games in it, its toolbar has the add button. * feat(library): store-colored focus in the Library, an aligned All chip, and sign out from a store's toolbar The Library's grid takes the chosen store's theme, so focus rings and accents use its color as on the Stores tab's pages. All gets a grid mark where the other chips have a dot, so its label lines up, and the Manage stores chip matches the chips' height. A signed-in store's toolbar has an account button that asks before signing out, with the Stores tab's wording. * feat(library): drop the chosen store's name from the toolbar The chip above already names it, so the toolbar starts with search. * fix(library): an empty library keeps its chips, so Custom games and a store's sign-in stay reachable With no games and no store signed in, the Library used to switch to a separate empty page without chips. It now shows the chips and toolbar like any other library, with the empty-library note under All games. * fix(library): no toolbar between the chips and a sign-in or empty Custom games card The search, display, sort and view row has nothing to act on there, so the card sits right under the chips, as it does in the Stores tab, and Down from the chip reaches its button. * fix(library): sign-in and empty Custom games cards fill the space under the chips They were a fixed 300 dp, which left the bottom of the screen empty once the toolbar above them was gone. They now take the grid's height minus the chip row. * fix(library): drop the Installed label and lighten the cards' left fade The Not installed row already divides the two sections, so the Installed label above the first games goes. The dark fade on the left of the store sign-in card and the Steam tab's art wall is lighter, so more of the art shows while the title stays readable. * Library: share the hero wall card and wall fade; icon handle for sign out The Custom games splash is now built from the same card as the store sign-in splash, with a drifting wall of the library's covers instead of a flat gradient and no hint text. The sign-in card and the Steam tab share one wall fade. The sign-out step shows the account icon as its handle, like the other toolbar steps, instead of a truncated label. * Library: sort the Custom games tab in Manage stores; keep search reachable Opened from the Library, the Manage stores sheet lists Custom games among the stores so it can be grabbed and moved like them. Its place is saved as the store it follows, so hiding that store or a new store arriving keeps it where it was. It has no switch: the tab is always there. The Custom games splash no longer replaces the toolbar while a search is active, so a search that matches nothing can still be cleared. * Manage stores: sort Favorites, Steam and Custom games; hide Favorites and Custom games Opened from the Library, the sheet lists the Library's own tabs among the stores. Each one's place is saved as the tab it follows, so hiding a store or a new store arriving leaves it where it was. Favorites and Custom games have a switch; Steam can be moved but not hidden. The sheet takes focus only in controller mode, so opening it by touch no longer switches to controller focus and its ring. Picking up a controller while it is open moves focus into it. Hidden games stay off the Custom games cover wall. * Library: keep an expired store's tab and offer sign-in when nothing is cached An expired account no longer drops its Library tab when it has no cached games: the tab stays and opens on the sign-in card, as on the Stores tab. With cached games it keeps listing them.
This commit is contained in:
1 parent
13a6e0606a
commit
df48a85a71
14 files changed
+860
-596
No files matched your search
@@ -4316,6 +4316,12 @@
|
||||
<string name="library_accounts">Store accounts</string>
|
||||
<string name="library_account_sign_in">Sign in</string>
|
||||
<string name="library_account_sign_out">Sign out</string>
|
||||
<string name="library_manage_stores">Manage stores</string>
|
||||
<string name="library_all_games">All games</string>
|
||||
<string name="library_custom_games">Custom games</string>
|
||||
<string name="store_account_signed_out">Not signed in</string>
|
||||
<string name="store_account_expired">Login expired</string>
|
||||
<string name="store_account_api_key">Uses an API key</string>
|
||||
<string name="tabs_reset">Reset</string>
|
||||
<string name="tabs_reset_title">Reset tabs</string>
|
||||
<string name="tabs_reset_hint">Steam, Desktop, Library, Downloads, Settings and Updates on the bar, the rest under More.</string>
|
||||
|
||||
Reference in new issue
Block a user