feat(bottom): choose Quick Access layout from the bar: full width, left, center or right

This commit is contained in:
Kurt Himebauch committed 2026-11-27 00:14:00 -05:00
1 parent cad2361bd1
commit 6f26cc18a8
41 files changed
+230 -129

No files matched your search

@@ -172,11 +172,11 @@ object SessionPrefs {
prefs(context).edit().putString("mirrorHide.app.$game", mode).apply()
}
/** Where Steam's Quick Access menu sits on the bottom screen when it is narrower than the panel: -1, 0 or 1. */
fun quickAccessAlign(context: Context): Int = prefs(context).getInt("bottomQamAlign", 0).coerceIn(-1, 1)
/** How Steam's Quick Access menu sits on the bottom screen: full, left, center or right. */
fun quickAccessLayout(context: Context): String? = prefs(context).getString("bottomQamLayout", null)
fun setQuickAccessAlign(context: Context, align: Int) {
prefs(context).edit().putInt("bottomQamAlign", align.coerceIn(-1, 1)).apply()
fun setQuickAccessLayout(context: Context, id: String) {
prefs(context).edit().putString("bottomQamLayout", id).apply()
}
fun clearGameBottomScreen(context: Context, game: String) {
@@ -1,35 +1,28 @@
package com.droiddeck.launcher.ui
import android.content.Context
import android.graphics.BitmapFactory
import android.util.Base64
import androidx.annotation.StringRes
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.hoverable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ChevronLeft
import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material.icons.outlined.AlignHorizontalCenter
import androidx.compose.material.icons.outlined.AlignHorizontalLeft
import androidx.compose.material.icons.outlined.AlignHorizontalRight
import androidx.compose.material.icons.outlined.WidthFull
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.FilterQuality
import androidx.compose.ui.graphics.ImageBitmap
@@ -41,14 +34,9 @@ import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.dp
import com.droiddeck.launcher.R
import com.droiddeck.launcher.companion.CdpPage
import com.droiddeck.launcher.session.SessionPhase
@@ -60,8 +48,10 @@ import kotlin.math.min
import kotlin.math.roundToInt
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import org.json.JSONArray
import org.json.JSONObject
@@ -75,6 +65,29 @@ internal class QamFrame(val image: ImageBitmap, val cssWidth: Float, val cssHeig
}.getOrDefault(Color.Black)
}
/** How Steam's Quick Access menu sits on the bottom screen. */
internal enum class QamFit(val id: String, @StringRes val label: Int, val icon: ImageVector, val align: Int) {
FULL("full", R.string.bottom_qam_layout_full, Icons.Outlined.WidthFull, 0),
LEFT("left", R.string.bottom_qam_layout_left, Icons.Outlined.AlignHorizontalLeft, -1),
CENTER("center", R.string.bottom_qam_layout_center, Icons.Outlined.AlignHorizontalCenter, 0),
RIGHT("right", R.string.bottom_qam_layout_right, Icons.Outlined.AlignHorizontalRight, 1);
val next: QamFit get() = entries[(ordinal + 1) % entries.size]
companion object {
fun from(id: String?): QamFit = entries.firstOrNull { it.id == id } ?: FULL
private val state = mutableStateOf<QamFit?>(null)
fun current(context: Context): QamFit = state.value ?: from(SessionPrefs.quickAccessLayout(context)).also { state.value = it }
fun choose(context: Context, fit: QamFit) {
state.value = fit
SessionPrefs.setQuickAccessLayout(context, fit.id)
}
}
}
internal object QamLayout {
private const val WIDE_CSS = "div.BasicUI { width: 100% !important; } div[class*=\\\"tab_\\\"] { max-width: none !important; }"
@@ -118,7 +131,7 @@ internal fun SteamQamPanel() {
delay(2_500)
slow = true
}
var align by remember { mutableIntStateOf(SessionPrefs.quickAccessAlign(context)) }
val fit = QamFit.current(context)
val holder = remember { arrayOfNulls<CdpPage>(1) }
val relay = remember { intArrayOf(0) }
val live = remember { java.util.concurrent.atomic.AtomicBoolean(false) }
@@ -177,7 +190,8 @@ internal fun SteamQamPanel() {
page?.call("Page.captureScreenshot", JSONObject().put("format", "jpeg").put("quality", 85))
?.optJSONObject("result")?.optString("data")?.let(::decodeFrame)?.let(show)
}
(page?.evaluate(QamLayout.contentScript(wide = !held.top)) as? String)?.let { text ->
val wide = !held.top && QamFit.current(context) == QamFit.FULL
(page?.evaluate(QamLayout.contentScript(wide)) as? String)?.let { text ->
runCatching {
val a = JSONArray(text)
val layout = floatArrayOf(a.getDouble(0).toFloat(), a.getDouble(1).toFloat(), a.getDouble(2).toFloat(), a.getDouble(3).toFloat())
@@ -185,7 +199,10 @@ internal fun SteamQamPanel() {
}
}
}
delay(if (live.get()) TICK_MS else FAST_TICK_MS)
val used = QamFit.current(context)
withTimeoutOrNull(if (live.get()) TICK_MS else FAST_TICK_MS) {
snapshotFlow { QamFit.current(context) }.first { it != used }
}
}
}
}
@@ -204,9 +221,9 @@ internal fun SteamQamPanel() {
val density = LocalDensity.current
val boxW = with(density) { maxWidth.toPx() }
val boxH = with(density) { maxHeight.toPx() }
val (scale, left) = QamLayout.fit(boxW, boxH, f.contentRight, f.cssHeight, align)
val (scale, left) = QamLayout.fit(boxW, boxH, f.contentRight, f.cssHeight, fit.align)
Canvas(
Modifier.fillMaxSize().pointerInput(f.cssWidth, f.contentRight, boxW, boxH, align) {
Modifier.fillMaxSize().pointerInput(f.cssWidth, f.contentRight, boxW, boxH, fit) {
var touching = false
awaitPointerEventScope {
while (true) {
@@ -238,38 +255,6 @@ internal fun SteamQamPanel() {
filterQuality = FilterQuality.Medium,
)
}
val width = f.contentRight * scale
val gap = with(density) { 64.dp.toPx() }
val move = { step: Int -> align = (align + step).coerceIn(-1, 1); SessionPrefs.setQuickAccessAlign(context, align) }
if (left >= gap) {
Box(Modifier.align(Alignment.CenterStart).width(with(density) { left.toDp() }), contentAlignment = Alignment.Center) {
MoveHandle(stringResource(R.string.bottom_qam_align_left), Icons.Filled.ChevronLeft, Modifier.testTag("qam-move-left")) { move(-1) }
}
}
if (boxW - left - width >= gap) {
Box(Modifier.align(Alignment.CenterEnd).width(with(density) { (boxW - left - width).toDp() }), contentAlignment = Alignment.Center) {
MoveHandle(stringResource(R.string.bottom_qam_align_right), Icons.Filled.ChevronRight, Modifier.testTag("qam-move-right")) { move(1) }
}
}
}
}
@Composable
private fun MoveHandle(description: String, icon: ImageVector, modifier: Modifier, onClick: () -> Unit) {
val colors = MaterialTheme.colorScheme
val pal = LocalPalette.current
val src = remember { MutableInteractionSource() }
val hot = rememberHot(src)
val shape = RoundedCornerShape(22.dp)
Box(
contentAlignment = Alignment.Center,
modifier = modifier.size(width = 44.dp, height = 112.dp).semantics { contentDescription = description }
.clip(shape)
.background(if (hot) pal.signal.copy(alpha = 0.14f) else Color.White.copy(alpha = 0.04f))
.glideBorder(hot, shape, pal.signal)
.hoverable(src).clickable(interactionSource = src, indication = LocalIndication.current, role = Role.Button, onClick = onClick),
) {
Icon(icon, contentDescription = null, tint = if (hot) pal.signal else colors.onSurfaceVariant, modifier = Modifier.size(28.dp))
}
}
@@ -367,8 +367,13 @@ class SecondScreenPresentation(
context.getString(if (keyboardShown.value) R.string.second_hide_keyboard else R.string.second_show_keyboard),
icon = R.drawable.ic_bottom_keyboard, active = keyboardShown.value, tag = "bottom-keyboard") { showKeyboard() }) + extras)
SecondScreenMode.DECK_CONTROLS -> model(extras, deckPanelTabs(context, deckPanel.value, ::selectDeckPanel))
SecondScreenMode.STEAM_QAM -> {
val fit = QamFit.current(context)
model(listOf(BarExtra(context.getString(R.string.bottom_qam_layout, context.getString(fit.label)), vector = fit.icon,
tag = "bottom-qam-layout") { QamFit.choose(context, fit.next) }) + extras)
}
SecondScreenMode.DASHBOARD, SecondScreenMode.CUSTOM_CONTROLS, SecondScreenMode.GUIDES, SecondScreenMode.MIRROR,
SecondScreenMode.COMPANION, SecondScreenMode.STEAM_QAM -> model(extras)
SecondScreenMode.COMPANION -> model(extras)
SecondScreenMode.TERMINAL -> model(listOf(BarExtra(context.getString(R.string.drawer_keyboard), icon = R.drawable.ic_bottom_keyboard,
tag = "bottom-keyboard") { terminalPanel?.showKeyboard() }) + extras)
else -> null
+5 -2
View File
@@ -2244,8 +2244,11 @@
<string name="bottom_companion_weight">الحمولة</string>
<string name="bottom_companion_radio">الراديو</string>
<string name="bottom_qam_title">الوصول السريع</string>
<string name="bottom_qam_align_left">نقل إلى اليسار</string>
<string name="bottom_qam_align_right">نقل إلى اليمين</string>
<string name="bottom_qam_layout">التخطيط: %1$s</string>
<string name="bottom_qam_layout_full">العرض الكامل</string>
<string name="bottom_qam_layout_left">يسار</string>
<string name="bottom_qam_layout_center">وسط</string>
<string name="bottom_qam_layout_right">يمين</string>
<string name="bottom_qam_unavailable">قائمة الوصول السريع في Steam غير متاحة بعد.</string>
<string name="bottom_page_telemetry">إحصاءات داخل اللعبة</string>
<string name="bottom_hud_group">مؤشرات الشاشة السفلية</string>
+5 -2
View File
@@ -2239,8 +2239,11 @@
<string name="bottom_companion_weight">Peso cargado</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Acceso rápido</string>
<string name="bottom_qam_align_left">Mover a la izquierda</string>
<string name="bottom_qam_align_right">Mover a la derecha</string>
<string name="bottom_qam_layout">Diseño: %1$s</string>
<string name="bottom_qam_layout_full">Ancho completo</string>
<string name="bottom_qam_layout_left">Izquierda</string>
<string name="bottom_qam_layout_center">Centro</string>
<string name="bottom_qam_layout_right">Derecha</string>
<string name="bottom_qam_unavailable">El menú de acceso rápido de Steam aún no está disponible.</string>
<string name="bottom_page_telemetry">Estadísticas del juego</string>
<string name="bottom_hud_group">HUD de la pantalla inferior</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Товар</string>
<string name="bottom_companion_radio">Радио</string>
<string name="bottom_qam_title">Бърз достъп</string>
<string name="bottom_qam_align_left">Премести вляво</string>
<string name="bottom_qam_align_right">Премести вдясно</string>
<string name="bottom_qam_layout">Оформление: %1$s</string>
<string name="bottom_qam_layout_full">Цяла ширина</string>
<string name="bottom_qam_layout_left">Вляво</string>
<string name="bottom_qam_layout_center">В центъра</string>
<string name="bottom_qam_layout_right">Вдясно</string>
<string name="bottom_qam_unavailable">Менюто за бърз достъп на Steam още не е налично.</string>
<string name="bottom_page_telemetry">Статистика в играта</string>
<string name="bottom_hud_group">HUD на долния екран</string>
+5 -2
View File
@@ -2194,8 +2194,11 @@
<string name="bottom_companion_weight">Nosnost</string>
<string name="bottom_companion_radio">Rádio</string>
<string name="bottom_qam_title">Rychlý přístup</string>
<string name="bottom_qam_align_left">Přesunout doleva</string>
<string name="bottom_qam_align_right">Přesunout doprava</string>
<string name="bottom_qam_layout">Rozložení: %1$s</string>
<string name="bottom_qam_layout_full">Plná šířka</string>
<string name="bottom_qam_layout_left">Vlevo</string>
<string name="bottom_qam_layout_center">Na střed</string>
<string name="bottom_qam_layout_right">Vpravo</string>
<string name="bottom_qam_unavailable">Nabídka rychlého přístupu Steamu zatím není k dispozici.</string>
<string name="bottom_page_telemetry">Statistiky ve hře</string>
<string name="bottom_hud_group">HUD na spodní obrazovce</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Bæreevne</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Hurtig adgang</string>
<string name="bottom_qam_align_left">Flyt til venstre</string>
<string name="bottom_qam_align_right">Flyt til højre</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Fuld bredde</string>
<string name="bottom_qam_layout_left">Venstre</string>
<string name="bottom_qam_layout_center">Midte</string>
<string name="bottom_qam_layout_right">Højre</string>
<string name="bottom_qam_unavailable">Steams menu til hurtig adgang er ikke tilgængelig endnu.</string>
<string name="bottom_page_telemetry">Statistik i spillet</string>
<string name="bottom_hud_group">HUD på nederste skærm</string>
+5 -2
View File
@@ -2136,8 +2136,11 @@
<string name="bottom_companion_weight">Traglast</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Schnellzugriff</string>
<string name="bottom_qam_align_left">Nach links verschieben</string>
<string name="bottom_qam_align_right">Nach rechts verschieben</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Volle Breite</string>
<string name="bottom_qam_layout_left">Links</string>
<string name="bottom_qam_layout_center">Mitte</string>
<string name="bottom_qam_layout_right">Rechts</string>
<string name="bottom_qam_unavailable">Das Schnellzugriffsmenü von Steam ist noch nicht verfügbar.</string>
<string name="bottom_page_telemetry">Spielstatistiken</string>
<string name="bottom_hud_group">HUD für den unteren Bildschirm</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Φορτίο</string>
<string name="bottom_companion_radio">Ραδιόφωνο</string>
<string name="bottom_qam_title">Γρήγορη πρόσβαση</string>
<string name="bottom_qam_align_left">Μετακίνηση αριστερά</string>
<string name="bottom_qam_align_right">Μετακίνηση δεξιά</string>
<string name="bottom_qam_layout">Διάταξη: %1$s</string>
<string name="bottom_qam_layout_full">Πλήρες πλάτος</string>
<string name="bottom_qam_layout_left">Αριστερά</string>
<string name="bottom_qam_layout_center">Κέντρο</string>
<string name="bottom_qam_layout_right">Δεξιά</string>
<string name="bottom_qam_unavailable">Το μενού γρήγορης πρόσβασης του Steam δεν είναι ακόμη διαθέσιμο.</string>
<string name="bottom_page_telemetry">Στατιστικά παιχνιδιού</string>
<string name="bottom_hud_group">HUD κάτω οθόνης</string>
+5 -2
View File
@@ -2169,8 +2169,11 @@
<string name="bottom_companion_weight">Peso cargado</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Acceso rápido</string>
<string name="bottom_qam_align_left">Mover a la izquierda</string>
<string name="bottom_qam_align_right">Mover a la derecha</string>
<string name="bottom_qam_layout">Diseño: %1$s</string>
<string name="bottom_qam_layout_full">Ancho completo</string>
<string name="bottom_qam_layout_left">Izquierda</string>
<string name="bottom_qam_layout_center">Centro</string>
<string name="bottom_qam_layout_right">Derecha</string>
<string name="bottom_qam_unavailable">El menú de acceso rápido de Steam aún no está disponible.</string>
<string name="bottom_page_telemetry">Estadísticas del juego</string>
<string name="bottom_hud_group">HUD de la pantalla inferior</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Kantokyky</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Pikavalikko</string>
<string name="bottom_qam_align_left">Siirrä vasemmalle</string>
<string name="bottom_qam_align_right">Siirrä oikealle</string>
<string name="bottom_qam_layout">Asettelu: %1$s</string>
<string name="bottom_qam_layout_full">Koko leveys</string>
<string name="bottom_qam_layout_left">Vasen</string>
<string name="bottom_qam_layout_center">Keskellä</string>
<string name="bottom_qam_layout_right">Oikea</string>
<string name="bottom_qam_unavailable">Steamin pikavalikko ei ole vielä käytettävissä.</string>
<string name="bottom_page_telemetry">Pelinsisäiset tilastot</string>
<string name="bottom_hud_group">Alanäytön HUD</string>
+5 -2
View File
@@ -2168,8 +2168,11 @@
<string name="bottom_companion_weight">Charge</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Accès rapide</string>
<string name="bottom_qam_align_left">Déplacer à gauche</string>
<string name="bottom_qam_align_right">Déplacer à droite</string>
<string name="bottom_qam_layout">Disposition : %1$s</string>
<string name="bottom_qam_layout_full">Pleine largeur</string>
<string name="bottom_qam_layout_left">Gauche</string>
<string name="bottom_qam_layout_center">Centre</string>
<string name="bottom_qam_layout_right">Droite</string>
<string name="bottom_qam_unavailable">Le menu d’accès rapide de Steam n’est pas encore disponible.</string>
<string name="bottom_page_telemetry">Statistiques en jeu</string>
<string name="bottom_hud_group">HUD de l\'écran du bas</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">वज़न क्षमता</string>
<string name="bottom_companion_radio">रेडियो</string>
<string name="bottom_qam_title">क्विक एक्सेस</string>
<string name="bottom_qam_align_left">बाईं ओर ले जाएँ</string>
<string name="bottom_qam_align_right">दाईं ओर ले जाएँ</string>
<string name="bottom_qam_layout">लेआउट: %1$s</string>
<string name="bottom_qam_layout_full">पूरी चौड़ाई</string>
<string name="bottom_qam_layout_left">बाएँ</string>
<string name="bottom_qam_layout_center">बीच में</string>
<string name="bottom_qam_layout_right">दाएँ</string>
<string name="bottom_qam_unavailable">Steam का क्विक एक्सेस मेनू अभी उपलब्ध नहीं है।</string>
<string name="bottom_page_telemetry">इन-गेम आंकड़े</string>
<string name="bottom_hud_group">निचली स्क्रीन HUD</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Teherbírás</string>
<string name="bottom_companion_radio">Rádió</string>
<string name="bottom_qam_title">Gyorselérés</string>
<string name="bottom_qam_align_left">Áthelyezés balra</string>
<string name="bottom_qam_align_right">Áthelyezés jobbra</string>
<string name="bottom_qam_layout">Elrendezés: %1$s</string>
<string name="bottom_qam_layout_full">Teljes szélesség</string>
<string name="bottom_qam_layout_left">Balra</string>
<string name="bottom_qam_layout_center">Középen</string>
<string name="bottom_qam_layout_right">Jobbra</string>
<string name="bottom_qam_unavailable">A Steam gyorselérési menüje még nem érhető el.</string>
<string name="bottom_page_telemetry">Játékon belüli statisztikák</string>
<string name="bottom_hud_group">HUD az alsó képernyőn</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">Beban</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Akses Cepat</string>
<string name="bottom_qam_align_left">Pindahkan ke kiri</string>
<string name="bottom_qam_align_right">Pindahkan ke kanan</string>
<string name="bottom_qam_layout">Tata letak: %1$s</string>
<string name="bottom_qam_layout_full">Lebar penuh</string>
<string name="bottom_qam_layout_left">Kiri</string>
<string name="bottom_qam_layout_center">Tengah</string>
<string name="bottom_qam_layout_right">Kanan</string>
<string name="bottom_qam_unavailable">Menu Akses Cepat Steam belum tersedia.</string>
<string name="bottom_page_telemetry">Statistik dalam gim</string>
<string name="bottom_hud_group">HUD layar bawah</string>
+5 -2
View File
@@ -2160,8 +2160,11 @@
<string name="bottom_companion_weight">Peso trasportato</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Accesso rapido</string>
<string name="bottom_qam_align_left">Sposta a sinistra</string>
<string name="bottom_qam_align_right">Sposta a destra</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Larghezza piena</string>
<string name="bottom_qam_layout_left">Sinistra</string>
<string name="bottom_qam_layout_center">Centro</string>
<string name="bottom_qam_layout_right">Destra</string>
<string name="bottom_qam_unavailable">Il menu di accesso rapido di Steam non è ancora disponibile.</string>
<string name="bottom_page_telemetry">Statistiche di gioco</string>
<string name="bottom_hud_group">HUD dello schermo inferiore</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">所持重量</string>
<string name="bottom_companion_radio">ラジオ</string>
<string name="bottom_qam_title">クイックアクセス</string>
<string name="bottom_qam_align_left">左へ移動</string>
<string name="bottom_qam_align_right">右へ移動</string>
<string name="bottom_qam_layout">レイアウト: %1$s</string>
<string name="bottom_qam_layout_full">全幅</string>
<string name="bottom_qam_layout_left">左</string>
<string name="bottom_qam_layout_center">中央</string>
<string name="bottom_qam_layout_right">右</string>
<string name="bottom_qam_unavailable">Steam のクイックアクセスメニューはまだ使えません。</string>
<string name="bottom_page_telemetry">ゲーム内統計</string>
<string name="bottom_hud_group">下部画面の HUD</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">소지 무게</string>
<string name="bottom_companion_radio">라디오</string>
<string name="bottom_qam_title">빠른 메뉴</string>
<string name="bottom_qam_align_left">왼쪽으로 이동</string>
<string name="bottom_qam_align_right">오른쪽으로 이동</string>
<string name="bottom_qam_layout">레이아웃: %1$s</string>
<string name="bottom_qam_layout_full">전체 너비</string>
<string name="bottom_qam_layout_left">왼쪽</string>
<string name="bottom_qam_layout_center">가운데</string>
<string name="bottom_qam_layout_right">오른쪽</string>
<string name="bottom_qam_unavailable">Steam 빠른 메뉴를 아직 사용할 수 없습니다.</string>
<string name="bottom_page_telemetry">게임 내 통계</string>
<string name="bottom_hud_group">하단 화면 HUD</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">Beban</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Akses Pantas</string>
<string name="bottom_qam_align_left">Alih ke kiri</string>
<string name="bottom_qam_align_right">Alih ke kanan</string>
<string name="bottom_qam_layout">Susun atur: %1$s</string>
<string name="bottom_qam_layout_full">Lebar penuh</string>
<string name="bottom_qam_layout_left">Kiri</string>
<string name="bottom_qam_layout_center">Tengah</string>
<string name="bottom_qam_layout_right">Kanan</string>
<string name="bottom_qam_unavailable">Menu Akses Pantas Steam belum tersedia.</string>
<string name="bottom_page_telemetry">Statistik dalam permainan</string>
<string name="bottom_hud_group">HUD skrin bawah</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Bæreevne</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Hurtigtilgang</string>
<string name="bottom_qam_align_left">Flytt til venstre</string>
<string name="bottom_qam_align_right">Flytt til høyre</string>
<string name="bottom_qam_layout">Oppsett: %1$s</string>
<string name="bottom_qam_layout_full">Full bredde</string>
<string name="bottom_qam_layout_left">Venstre</string>
<string name="bottom_qam_layout_center">Midten</string>
<string name="bottom_qam_layout_right">Høyre</string>
<string name="bottom_qam_unavailable">Steams hurtigtilgangsmeny er ikke tilgjengelig ennå.</string>
<string name="bottom_page_telemetry">Statistikk i spillet</string>
<string name="bottom_hud_group">HUD på bunnskjermen</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Draaggewicht</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Snelle toegang</string>
<string name="bottom_qam_align_left">Naar links verplaatsen</string>
<string name="bottom_qam_align_right">Naar rechts verplaatsen</string>
<string name="bottom_qam_layout">Indeling: %1$s</string>
<string name="bottom_qam_layout_full">Volledige breedte</string>
<string name="bottom_qam_layout_left">Links</string>
<string name="bottom_qam_layout_center">Midden</string>
<string name="bottom_qam_layout_right">Rechts</string>
<string name="bottom_qam_unavailable">Het menu Snelle toegang van Steam is nog niet beschikbaar.</string>
<string name="bottom_page_telemetry">In-game statistieken</string>
<string name="bottom_hud_group">HUD op het onderste scherm</string>
+5 -2
View File
@@ -2194,8 +2194,11 @@
<string name="bottom_companion_weight">Udźwig</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Szybki dostęp</string>
<string name="bottom_qam_align_left">Przesuń w lewo</string>
<string name="bottom_qam_align_right">Przesuń w prawo</string>
<string name="bottom_qam_layout">Układ: %1$s</string>
<string name="bottom_qam_layout_full">Pełna szerokość</string>
<string name="bottom_qam_layout_left">Do lewej</string>
<string name="bottom_qam_layout_center">Na środku</string>
<string name="bottom_qam_layout_right">Do prawej</string>
<string name="bottom_qam_unavailable">Menu szybkiego dostępu Steam nie jest jeszcze dostępne.</string>
<string name="bottom_page_telemetry">Statystyki w grze</string>
<string name="bottom_hud_group">HUD dolnego ekranu</string>
+5 -2
View File
@@ -2174,8 +2174,11 @@
<string name="bottom_companion_weight">Peso transportado</string>
<string name="bottom_companion_radio">Rádio</string>
<string name="bottom_qam_title">Acesso rápido</string>
<string name="bottom_qam_align_left">Mover para a esquerda</string>
<string name="bottom_qam_align_right">Mover para a direita</string>
<string name="bottom_qam_layout">Esquema: %1$s</string>
<string name="bottom_qam_layout_full">Largura total</string>
<string name="bottom_qam_layout_left">Esquerda</string>
<string name="bottom_qam_layout_center">Centro</string>
<string name="bottom_qam_layout_right">Direita</string>
<string name="bottom_qam_unavailable">O menu de acesso rápido do Steam ainda não está disponível.</string>
<string name="bottom_page_telemetry">Estatísticas no jogo</string>
<string name="bottom_hud_group">HUD do ecrã inferior</string>
+5 -2
View File
@@ -2182,8 +2182,11 @@
<string name="bottom_companion_weight">Peso carregado</string>
<string name="bottom_companion_radio">Rádio</string>
<string name="bottom_qam_title">Acesso rápido</string>
<string name="bottom_qam_align_left">Mover para a esquerda</string>
<string name="bottom_qam_align_right">Mover para a direita</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Largura total</string>
<string name="bottom_qam_layout_left">Esquerda</string>
<string name="bottom_qam_layout_center">Centro</string>
<string name="bottom_qam_layout_right">Direita</string>
<string name="bottom_qam_unavailable">O menu de acesso rápido do Steam ainda não está disponível.</string>
<string name="bottom_page_telemetry">Estatísticas no jogo</string>
<string name="bottom_hud_group">HUD da tela inferior</string>
+5 -2
View File
@@ -2169,8 +2169,11 @@
<string name="bottom_companion_weight">Greutate purtată</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Acces rapid</string>
<string name="bottom_qam_align_left">Mută la stânga</string>
<string name="bottom_qam_align_right">Mută la dreapta</string>
<string name="bottom_qam_layout">Aspect: %1$s</string>
<string name="bottom_qam_layout_full">Lățime completă</string>
<string name="bottom_qam_layout_left">Stânga</string>
<string name="bottom_qam_layout_center">Centru</string>
<string name="bottom_qam_layout_right">Dreapta</string>
<string name="bottom_qam_unavailable">Meniul de acces rapid Steam nu este încă disponibil.</string>
<string name="bottom_page_telemetry">Statistici în joc</string>
<string name="bottom_hud_group">HUD pe ecranul de jos</string>
+5 -2
View File
@@ -2195,8 +2195,11 @@
<string name="bottom_companion_weight">Переносимый вес</string>
<string name="bottom_companion_radio">Радио</string>
<string name="bottom_qam_title">Быстрый доступ</string>
<string name="bottom_qam_align_left">Сдвинуть влево</string>
<string name="bottom_qam_align_right">Сдвинуть вправо</string>
<string name="bottom_qam_layout">Макет: %1$s</string>
<string name="bottom_qam_layout_full">Во всю ширину</string>
<string name="bottom_qam_layout_left">Слева</string>
<string name="bottom_qam_layout_center">По центру</string>
<string name="bottom_qam_layout_right">Справа</string>
<string name="bottom_qam_unavailable">Меню быстрого доступа Steam пока недоступно.</string>
<string name="bottom_page_telemetry">Игровая статистика</string>
<string name="bottom_hud_group">HUD нижнего экрана</string>
+5 -2
View File
@@ -2144,8 +2144,11 @@
<string name="bottom_companion_weight">Bärvikt</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Snabbåtkomst</string>
<string name="bottom_qam_align_left">Flytta till vänster</string>
<string name="bottom_qam_align_right">Flytta till höger</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Full bredd</string>
<string name="bottom_qam_layout_left">Vänster</string>
<string name="bottom_qam_layout_center">Mitten</string>
<string name="bottom_qam_layout_right">Höger</string>
<string name="bottom_qam_unavailable">Steams snabbåtkomstmeny är inte tillgänglig än.</string>
<string name="bottom_page_telemetry">Statistik i spelet</string>
<string name="bottom_hud_group">HUD på nedre skärmen</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">น้ำหนักที่แบก</string>
<string name="bottom_companion_radio">วิทยุ</string>
<string name="bottom_qam_title">เข้าถึงด่วน</string>
<string name="bottom_qam_align_left">ย้ายไปทางซ้าย</string>
<string name="bottom_qam_align_right">ย้ายไปทางขวา</string>
<string name="bottom_qam_layout">เลย์เอาต์: %1$s</string>
<string name="bottom_qam_layout_full">เต็มความกว้าง</string>
<string name="bottom_qam_layout_left">ซ้าย</string>
<string name="bottom_qam_layout_center">กึ่งกลาง</string>
<string name="bottom_qam_layout_right">ขวา</string>
<string name="bottom_qam_unavailable">เมนูเข้าถึงด่วนของ Steam ยังไม่พร้อมใช้งาน</string>
<string name="bottom_page_telemetry">สถิติในเกม</string>
<string name="bottom_hud_group">HUD หน้าจอล่าง</string>
+5 -2
View File
@@ -2136,8 +2136,11 @@
<string name="bottom_companion_weight">Taşıma ağırlığı</string>
<string name="bottom_companion_radio">Radyo</string>
<string name="bottom_qam_title">Hızlı Erişim</string>
<string name="bottom_qam_align_left">Sola taşı</string>
<string name="bottom_qam_align_right">Sağa taşı</string>
<string name="bottom_qam_layout">Düzen: %1$s</string>
<string name="bottom_qam_layout_full">Tam genişlik</string>
<string name="bottom_qam_layout_left">Sol</string>
<string name="bottom_qam_layout_center">Orta</string>
<string name="bottom_qam_layout_right">Sağ</string>
<string name="bottom_qam_unavailable">Steam Hızlı Erişim menüsü henüz kullanılamıyor.</string>
<string name="bottom_page_telemetry">Oyun içi istatistikler</string>
<string name="bottom_hud_group">Alt ekrandaki HUD</string>
+5 -2
View File
@@ -2194,8 +2194,11 @@
<string name="bottom_companion_weight">Вага ноші</string>
<string name="bottom_companion_radio">Радіо</string>
<string name="bottom_qam_title">Швидкий доступ</string>
<string name="bottom_qam_align_left">Перемістити ліворуч</string>
<string name="bottom_qam_align_right">Перемістити праворуч</string>
<string name="bottom_qam_layout">Макет: %1$s</string>
<string name="bottom_qam_layout_full">На всю ширину</string>
<string name="bottom_qam_layout_left">Ліворуч</string>
<string name="bottom_qam_layout_center">По центру</string>
<string name="bottom_qam_layout_right">Праворуч</string>
<string name="bottom_qam_unavailable">Меню швидкого доступу Steam ще недоступне.</string>
<string name="bottom_page_telemetry">Ігрова статистика</string>
<string name="bottom_hud_group">HUD на нижньому екрані</string>
+5 -2
View File
@@ -2120,8 +2120,11 @@
<string name="bottom_companion_weight">Trọng lượng mang</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Truy cập nhanh</string>
<string name="bottom_qam_align_left">Chuyển sang trái</string>
<string name="bottom_qam_align_right">Chuyển sang phải</string>
<string name="bottom_qam_layout">Bố cục: %1$s</string>
<string name="bottom_qam_layout_full">Toàn chiều rộng</string>
<string name="bottom_qam_layout_left">Trái</string>
<string name="bottom_qam_layout_center">Giữa</string>
<string name="bottom_qam_layout_right">Phải</string>
<string name="bottom_qam_unavailable">Menu Truy cập nhanh của Steam chưa sẵn sàng.</string>
<string name="bottom_page_telemetry">Thông số trong game</string>
<string name="bottom_hud_group">HUD màn hình dưới</string>
+5 -2
View File
@@ -2197,8 +2197,11 @@
<string name="bottom_companion_weight">负重</string>
<string name="bottom_companion_radio">收音机</string>
<string name="bottom_qam_title">快速访问</string>
<string name="bottom_qam_align_left">移到左侧</string>
<string name="bottom_qam_align_right">移到右侧</string>
<string name="bottom_qam_layout">布局:%1$s</string>
<string name="bottom_qam_layout_full">全宽</string>
<string name="bottom_qam_layout_left">左侧</string>
<string name="bottom_qam_layout_center">居中</string>
<string name="bottom_qam_layout_right">右侧</string>
<string name="bottom_qam_unavailable">Steam 快速访问菜单暂不可用。</string>
<string name="bottom_page_telemetry">游戏内数据</string>
<string name="bottom_hud_group">下屏 HUD</string>
+5 -2
View File
@@ -2119,8 +2119,11 @@
<string name="bottom_companion_weight">負重</string>
<string name="bottom_companion_radio">收音機</string>
<string name="bottom_qam_title">快速存取</string>
<string name="bottom_qam_align_left">移到左側</string>
<string name="bottom_qam_align_right">移到右側</string>
<string name="bottom_qam_layout">版面配置:%1$s</string>
<string name="bottom_qam_layout_full">全寬</string>
<string name="bottom_qam_layout_left">左側</string>
<string name="bottom_qam_layout_center">置中</string>
<string name="bottom_qam_layout_right">右側</string>
<string name="bottom_qam_unavailable">Steam 快速存取選單暫時無法使用。</string>
<string name="bottom_page_telemetry">遊戲內數據</string>
<string name="bottom_hud_group">下方螢幕 HUD</string>
+5 -2
View File
@@ -2119,8 +2119,11 @@
<string name="bottom_companion_weight">負重</string>
<string name="bottom_companion_radio">收音機</string>
<string name="bottom_qam_title">快速存取</string>
<string name="bottom_qam_align_left">移到左側</string>
<string name="bottom_qam_align_right">移到右側</string>
<string name="bottom_qam_layout">版面配置:%1$s</string>
<string name="bottom_qam_layout_full">全寬</string>
<string name="bottom_qam_layout_left">左側</string>
<string name="bottom_qam_layout_center">置中</string>
<string name="bottom_qam_layout_right">右側</string>
<string name="bottom_qam_unavailable">Steam 快速存取選單暫時無法使用。</string>
<string name="bottom_page_telemetry">遊戲內數據</string>
<string name="bottom_hud_group">下螢幕 HUD</string>
+5 -2
View File
@@ -2427,8 +2427,11 @@
<string name="bottom_companion_weight">Carry weight</string>
<string name="bottom_companion_radio">Radio</string>
<string name="bottom_qam_title">Quick Access</string>
<string name="bottom_qam_align_left">Move to the left</string>
<string name="bottom_qam_align_right">Move to the right</string>
<string name="bottom_qam_layout">Layout: %1$s</string>
<string name="bottom_qam_layout_full">Full width</string>
<string name="bottom_qam_layout_left">Left</string>
<string name="bottom_qam_layout_center">Center</string>
<string name="bottom_qam_layout_right">Right</string>
<string name="bottom_qam_unavailable">Steam\'s Quick Access menu is not available yet.</string>
<string name="bottom_page_telemetry">In-game stats</string>
<string name="bottom_hud_group">Bottom screen HUD</string>
@@ -1,5 +1,6 @@
package com.droiddeck.launcher.session
import com.droiddeck.launcher.ui.QamFit
import com.droiddeck.launcher.ui.QamLayout
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
@@ -82,6 +83,13 @@ class SteamQamTest {
assertEquals(0f, QamLayout.fit(1280f, 832f, 1280f, 640f, 1).second, 0.001f)
}
@Test fun theLayoutButtonCyclesFullLeftCenterRight() {
assertEquals(listOf(QamFit.LEFT, QamFit.CENTER, QamFit.RIGHT, QamFit.FULL), QamFit.entries.map { it.next })
assertEquals(QamFit.FULL, QamFit.from(null))
assertEquals(QamFit.RIGHT, QamFit.from("right"))
assertEquals(QamFit.FULL, QamFit.from("sideways"))
}
@Test fun aWideMenuFitsTheWidth() {
val (scale, left) = QamLayout.fit(1280f, 832f, 1280f, 640f)
assertEquals(1f, scale, 0.001f)
+6 -2
View File
@@ -170,10 +170,10 @@ Details: [bottom-screen-companion-api.md](bottom-screen-companion-api.md).
Plugin loaders expose Steam's CEF DevTools so the menu can be viewed in a desktop browser, but it renders only while it is open on the main screen. The panel keeps it open without covering the top screen:
- Steam's UI is told to open the menu and keep it open: its composition request is capped at "notification" while the menu is ours, so gamescope keeps focus on the game, and losing focus no longer closes it. Gamepad focus moves from the menu back to the main UI only when the menu took it, so Steam's own popups keep the controller. The blurred backdrop is hidden.
- The menu's browser view is placed just outside the Big Picture window through its own `SetBounds`, so it keeps rendering but never shows on top, including while Steam slides it wider for Friends and chat. The view is also given the panel's shape (about 712 × 463 instead of Steam's 856 × 463), and a style on the menu page lifts Steam's 300 px cap on each tab, so every tab fills the panel at one scale, with Friends showing its list and chat side by side.
- The menu's browser view is placed just outside the Big Picture window through its own `SetBounds`, so it keeps rendering but never shows on top, including while Steam slides it wider for Friends and chat. The view is also given the panel's shape (about 712 × 463 instead of Steam's 856 × 463), so every tab shows at one scale. In Full width, a style on the menu page also lifts Steam's 300 px cap on each tab, so every tab fills the panel and Friends shows its list and chat side by side.
- A timer inside Steam keeps this state every 250 ms, so the menu comes back, on the tab it was showing, as soon as Steam's main menu or a full-screen page such as Decky's store closes. It runs on a 5 s lease that the panel renews each second: if the app stops, Steam returns to normal by itself.
- 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`. If a Steam update brings back a narrow tab, a chevron in the free space on each side steps it left, centre or right; 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.
- `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); 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.
- 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.
@@ -189,6 +189,10 @@ Limits: it relies on Steam's minified UI stores and method names, so a client up
| --- | --- |
| ![](evidence/bottom-screen-qam-decky-2026-11-27.png) | ![](evidence/bottom-screen-qam-performance-2026-11-27.png) |
| Layout: Center | Layout: Right |
| --- | --- |
| ![](evidence/bottom-screen-qam-center-2026-11-27.png) | ![](evidence/bottom-screen-qam-right-2026-11-27.png) |
The top screen during that game, with the menu open on the bottom: ![](evidence/bottom-screen-qam-top-ingame-2026-11-27.png)
## Related fixes
Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 186 KiB