diff --git a/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt b/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt index c50fc9fff3..fa26b92288 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt @@ -22,8 +22,11 @@ object SteamQam { /** Steam's own width for the main menu; quick access takes the rest of the panel. */ const val MAIN_CSS_WIDTH = 240 + /** Holds the parked main menu in place and spreads its item rows (not dividers) over the full height, at most 80 px each. */ private const val MAIN_PARKED_CSS = - ".BasicUI > .Panel { transform: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; }" + ".BasicUI > .Panel { transform: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; } " + + ".BasicUI > .Panel > :has(> .Focusable) { flex: 1 1 0 !important; height: auto !important; max-height: 80px; } " + + ".BasicUI > .Panel > :has(> .Focusable) > .Panel { height: 100% !important; }" const val LEASE_MS = 5_000 private const val TAG = "SteamQam" private const val EVAL_MS = 6_000L diff --git a/docs/development/bottom-screen.md b/docs/development/bottom-screen.md index 6872063f6b..64758abe32 100644 --- a/docs/development/bottom-screen.md +++ b/docs/development/bottom-screen.md @@ -183,7 +183,7 @@ Plugin loaders expose Steam's CEF DevTools so the menu can be viewed in a deskto - The hold starts only once the session is ready: holding the menu before Steam's first frame kept gamescope from presenting anything. - `droiddeck-qam-relay` relays the app to the DevTools port, which only answers clients inside the guest. The panel streams the menu with `Page.startScreencast`, scales its content to the panel and fills the rest with the menu's own background, and forwards touches on the menu with `Input.dispatchTouchEvent`. A layout button in the panel's bar cycles Full width (every tab stretched to the panel), Left, Center and Right (Steam's own narrow tabs, placed on that side) and Split (below); the choice is kept. Returning to the panel shows the last frame at once while the stream reconnects, and the first frame after a cold start takes about 1.4 s. - The Quick Access button still shows the menu on the top screen, in Steam's own layout and with the controller; closing it there (B or the button again) returns it to the bottom screen on the same tab. -- The Split layout puts Steam's main menu (the Steam button's menu) on the left and Quick Access on the right. Both are laid out 480 CSS pixels tall so they show at one scale: the main menu at Steam's own 240 px width, Quick Access across the rest. Steam keeps one side menu open at a time and slides the other out, so the main menu's view is kept visible, parked beside Quick Access's, and a style on its page holds it in place. Steam's views carry no names: the main menu's is the one Steam focuses while the main menu is open, so after Steam starts the panel opens it once, parked before it is drawn. Taps on either half go to that menu; in a game, the running game's card at the top of the main menu returns to it. The Steam button still shows the main menu on the top screen in Steam's own layout, and closing it returns both menus to the bottom. Checked on the AYN Thor in Big Picture and in Bomb Rush Cyberfunk, with the game keeping focus. +- The Split layout puts Steam's main menu (the Steam button's menu) on the left and Quick Access on the right. Both are laid out 480 CSS pixels tall so they show at one scale: the main menu at Steam's own 240 px width with its rows spread over the full height, Quick Access across the rest. Steam keeps one side menu open at a time and slides the other out, so the main menu's view is kept visible, parked beside Quick Access's, and a style on its page holds it in place. Steam's views carry no names: the main menu's is the one Steam focuses while the main menu is open, so after Steam starts the panel opens it once, parked before it is drawn. Taps on either half go to that menu; in a game, the running game's card at the top of the main menu returns to it. The Steam button still shows the main menu on the top screen in Steam's own layout, and closing it returns both menus to the bottom. Checked on the AYN Thor in Big Picture and in Bomb Rush Cyberfunk, with the game keeping focus. - Only Quick Access's own view is parked: the one Steam focuses while Quick Access is open. Store and other web pages live in another view, which keeps the bounds Steam gives it, and Steam's frosted glass over the Store page is left off while the menu is parked rather than over it. - Leaving the panel closes the menu and turns the patches off; the Steam button and the normal Quick Access button then work as before. Opening Steam's main menu replaces the Quick Access menu for as long as it is open, as on a Deck. diff --git a/docs/development/evidence/bottom-screen-qam-split-2026-11-30.png b/docs/development/evidence/bottom-screen-qam-split-2026-11-30.png index dda6f288d2..ad035be63a 100644 Binary files a/docs/development/evidence/bottom-screen-qam-split-2026-11-30.png and b/docs/development/evidence/bottom-screen-qam-split-2026-11-30.png differ diff --git a/docs/development/evidence/bottom-screen-qam-split-ingame-2026-11-30.png b/docs/development/evidence/bottom-screen-qam-split-ingame-2026-11-30.png index 76c0efb63d..ba62689cab 100644 Binary files a/docs/development/evidence/bottom-screen-qam-split-ingame-2026-11-30.png and b/docs/development/evidence/bottom-screen-qam-split-ingame-2026-11-30.png differ