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 7aaa5c1e02..3b01e0c8d5 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/SteamQam.kt @@ -67,7 +67,13 @@ object SteamQam { c.EnsureCorrectComposition?.(); return; } - if (m.m_eOpenSideMenu === 0) { m.OpenQuickAccessMenu(g.__ddQamTab ?? undefined); c.EnsureCorrectComposition?.(); } + const decky = !!g.DeckyPluginLoader?.tabsHook?.qamBrowserViewPatch; + if (m.m_eOpenSideMenu === QAM && decky && !g.__ddQamDecky) m.CloseSideMenus(); + if (m.m_eOpenSideMenu === 0) { + m.OpenQuickAccessMenu(g.__ddQamTab ?? undefined); + g.__ddQamDecky = decky; + c.EnsureCorrectComposition?.(); + } if (m.m_eOpenSideMenu !== QAM) return; if (m.m_eQuickAccessTab != null) g.__ddQamTab = m.m_eQuickAccessTab; if (!g.__ddQamOn) { g.__ddQamOn = true; c.EnsureCorrectComposition?.(); } diff --git a/app/src/main/java/com/droiddeck/launcher/ui/BottomSteamQamPanel.kt b/app/src/main/java/com/droiddeck/launcher/ui/BottomSteamQamPanel.kt index da230945e5..5a1887766a 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/BottomSteamQamPanel.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/BottomSteamQamPanel.kt @@ -3,17 +3,22 @@ package com.droiddeck.launcher.ui import android.graphics.BitmapFactory import android.util.Base64 import androidx.compose.foundation.Canvas +import androidx.compose.foundation.LocalIndication import androidx.compose.foundation.background -import androidx.compose.foundation.layout.Arrangement +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.Column 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.outlined.AlignHorizontalCenter -import androidx.compose.material.icons.outlined.AlignHorizontalLeft -import androidx.compose.material.icons.outlined.AlignHorizontalRight +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.runtime.Composable import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect @@ -24,17 +29,22 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment 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 import androidx.compose.ui.graphics.asAndroidBitmap import androidx.compose.ui.graphics.asImageBitmap +import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.input.pointer.PointerEventType import androidx.compose.ui.input.pointer.pointerInput 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 @@ -79,16 +89,30 @@ internal object QamLayout { } private const val TICK_MS = 1_000L +private const val FAST_TICK_MS = 150L + +/** The last frame shown, so returning to the panel shows the menu at once while the live stream reconnects. */ +private object QamCache { + @Volatile var image: ImageBitmap? = null + @Volatile var shape: FloatArray? = null +} @Composable internal fun SteamQamPanel() { val context = LocalContext.current.applicationContext - var image by remember { mutableStateOf(null) } - var shape by remember { mutableStateOf(null) } + var image by remember { mutableStateOf(QamCache.image) } + var shape by remember { mutableStateOf(QamCache.shape) } var failed by remember { mutableStateOf(false) } + var slow by remember { mutableStateOf(false) } + LaunchedEffect(Unit) { + delay(2_500) + slow = true + } var align by remember { mutableIntStateOf(SessionPrefs.quickAccessAlign(context)) } val holder = remember { arrayOfNulls(1) } val relay = remember { intArrayOf(0) } + val live = remember { java.util.concurrent.atomic.AtomicBoolean(false) } + val show = { frame: ImageBitmap -> image = frame; QamCache.image = frame; live.set(true) } DisposableEffect(Unit) { onDispose { val page = holder[0] @@ -106,7 +130,7 @@ internal fun SteamQamPanel() { while (isActive) { // Holding the menu before Steam's first frame keeps gamescope from presenting it. if (SessionState.phase != SessionPhase.READY) { - delay(TICK_MS) + delay(FAST_TICK_MS) continue } val open = SteamQam.hold(context) @@ -115,13 +139,14 @@ internal fun SteamQamPanel() { var page = holder[0] if (page == null || page.closed) { page?.close() + live.set(false) page = SteamQam.target(context)?.let { t -> relay[0] = t.port runCatching { CdpPage(t.port, t.path) { method, params -> if (method == "Page.screencastFrame") { holder[0]?.send("Page.screencastFrameAck", JSONObject().put("sessionId", params.optInt("sessionId"))) - decodeFrame(params.optString("data"))?.let { image = it } + decodeFrame(params.optString("data"))?.let(show) } } }.onFailure { android.util.Log.w("SteamQam", "devtools connect: $it") }.getOrNull() @@ -132,19 +157,19 @@ internal fun SteamQamPanel() { .put("maxWidth", 1920).put("maxHeight", 1440)) } // The screencast sends frames only when the menu repaints, so a still menu needs one screenshot. - if (image == null) { + if (!live.get()) { page?.call("Page.captureScreenshot", JSONObject().put("format", "jpeg").put("quality", 85)) - ?.optJSONObject("result")?.optString("data")?.let(::decodeFrame)?.let { image = it } + ?.optJSONObject("result")?.optString("data")?.let(::decodeFrame)?.let(show) } (page?.evaluate(QamLayout.CONTENT_SCRIPT) 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()) - if (!layout.contentEquals(shape)) shape = layout + if (!layout.contentEquals(shape)) { shape = layout; QamCache.shape = layout } } } } - delay(TICK_MS) + delay(if (live.get()) TICK_MS else FAST_TICK_MS) } } } @@ -154,7 +179,7 @@ internal fun SteamQamPanel() { if (img != null && l != null && l[0] > 0f) QamFrame(img, l[0], l[1], l[3].coerceIn(l[0] * 0.25f, l[0])) else null } if (f == null) { - PanelNote(stringResource(if (failed) R.string.bottom_qam_unavailable else R.string.achievements_reading)) + if (slow) PanelNote(stringResource(if (failed) R.string.bottom_qam_unavailable else R.string.achievements_reading)) return } BoxWithConstraints(Modifier.fillMaxSize().background(f.fill)) { @@ -197,27 +222,36 @@ internal fun SteamQamPanel() { } val width = f.contentRight * scale val gap = with(density) { 64.dp.toPx() } - val choose = { a: Int -> align = a; SessionPrefs.setQuickAccessAlign(context, a) } + val move = { step: Int -> align = (align + step).coerceIn(-1, 1); SessionPrefs.setQuickAccessAlign(context, align) } if (left >= gap) { - AlignButtons((-1 until align).toList(), choose, Modifier.align(Alignment.CenterStart).width(with(density) { left.toDp() })) + 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) { - AlignButtons((align + 1..1).toList(), choose, Modifier.align(Alignment.CenterEnd).width(with(density) { (boxW - left - width).toDp() })) + 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 AlignButtons(targets: List, choose: (Int) -> Unit, modifier: Modifier) { - Column(modifier, horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(12.dp)) { - for (a in targets) { - val (label, icon) = when (a) { - -1 -> R.string.bottom_qam_align_left to Icons.Outlined.AlignHorizontalLeft - 0 -> R.string.bottom_qam_align_center to Icons.Outlined.AlignHorizontalCenter - else -> R.string.bottom_qam_align_right to Icons.Outlined.AlignHorizontalRight - } - BarButton(stringResource(label), Modifier.testTag("qam-align-$a"), vector = icon) { choose(a) } - } +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)) } } diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index 1a78d5d482..e5dd113572 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -2245,7 +2245,6 @@ الراديو الوصول السريع نقل إلى اليسار - نقل إلى الوسط نقل إلى اليمين قائمة الوصول السريع في Steam غير متاحة بعد. إحصاءات داخل اللعبة diff --git a/app/src/main/res/values-b+es+419/strings.xml b/app/src/main/res/values-b+es+419/strings.xml index 9b39843511..a677f2d772 100644 --- a/app/src/main/res/values-b+es+419/strings.xml +++ b/app/src/main/res/values-b+es+419/strings.xml @@ -2240,7 +2240,6 @@ Radio Acceso rápido Mover a la izquierda - Mover al centro Mover a la derecha El menú de acceso rápido de Steam aún no está disponible. Estadísticas del juego diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 207a236c92..1bc0aa958e 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -2145,7 +2145,6 @@ Радио Бърз достъп Премести вляво - Премести в центъра Премести вдясно Менюто за бърз достъп на Steam още не е налично. Статистика в играта diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 49b7ebb68d..7cbb0983e6 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -2195,7 +2195,6 @@ Rádio Rychlý přístup Přesunout doleva - Přesunout na střed Přesunout doprava Nabídka rychlého přístupu Steamu zatím není k dispozici. Statistiky ve hře diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index 4456c27072..b8e3e9feff 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -2145,7 +2145,6 @@ Radio Hurtig adgang Flyt til venstre - Flyt til midten Flyt til højre Steams menu til hurtig adgang er ikke tilgængelig endnu. Statistik i spillet diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 2a0c82d2d3..c7fcd11506 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -2137,7 +2137,6 @@ Radio Schnellzugriff Nach links verschieben - In die Mitte verschieben Nach rechts verschieben Das Schnellzugriffsmenü von Steam ist noch nicht verfügbar. Spielstatistiken diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 342a338c3f..5f22716fef 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -2145,7 +2145,6 @@ Ραδιόφωνο Γρήγορη πρόσβαση Μετακίνηση αριστερά - Μετακίνηση στο κέντρο Μετακίνηση δεξιά Το μενού γρήγορης πρόσβασης του Steam δεν είναι ακόμη διαθέσιμο. Στατιστικά παιχνιδιού diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 624383ec39..adaa5ff369 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -2170,7 +2170,6 @@ Radio Acceso rápido Mover a la izquierda - Mover al centro Mover a la derecha El menú de acceso rápido de Steam aún no está disponible. Estadísticas del juego diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 9d34f28e82..b85e88ebeb 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -2145,7 +2145,6 @@ Radio Pikavalikko Siirrä vasemmalle - Siirrä keskelle Siirrä oikealle Steamin pikavalikko ei ole vielä käytettävissä. Pelinsisäiset tilastot diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index c3373fd745..5900687971 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -2169,7 +2169,6 @@ Radio Accès rapide Déplacer à gauche - Déplacer au centre Déplacer à droite Le menu d’accès rapide de Steam n’est pas encore disponible. Statistiques en jeu diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 40f8ca9e30..c7ba370be9 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -2145,7 +2145,6 @@ रेडियो क्विक एक्सेस बाईं ओर ले जाएँ - बीच में ले जाएँ दाईं ओर ले जाएँ Steam का क्विक एक्सेस मेनू अभी उपलब्ध नहीं है। इन-गेम आंकड़े diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 77906faf3a..4ce071728e 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -2145,7 +2145,6 @@ Rádió Gyorselérés Áthelyezés balra - Áthelyezés középre Áthelyezés jobbra A Steam gyorselérési menüje még nem érhető el. Játékon belüli statisztikák diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index 6018fa1b7f..1f925b63dc 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -2121,7 +2121,6 @@ Radio Akses Cepat Pindahkan ke kiri - Pindahkan ke tengah Pindahkan ke kanan Menu Akses Cepat Steam belum tersedia. Statistik dalam gim diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 14074af41f..7d5e02842c 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -2161,7 +2161,6 @@ Radio Accesso rapido Sposta a sinistra - Sposta al centro Sposta a destra Il menu di accesso rapido di Steam non è ancora disponibile. Statistiche di gioco diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 2fcdf48786..adcb918c9f 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -2121,7 +2121,6 @@ ラジオ クイックアクセス 左へ移動 - 中央へ移動 右へ移動 Steam のクイックアクセスメニューはまだ使えません。 ゲーム内統計 diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 31878f0484..d7ec245e9f 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -2121,7 +2121,6 @@ 라디오 빠른 메뉴 왼쪽으로 이동 - 가운데로 이동 오른쪽으로 이동 Steam 빠른 메뉴를 아직 사용할 수 없습니다. 게임 내 통계 diff --git a/app/src/main/res/values-ms/strings.xml b/app/src/main/res/values-ms/strings.xml index 786af5f7d6..a49778b5f8 100644 --- a/app/src/main/res/values-ms/strings.xml +++ b/app/src/main/res/values-ms/strings.xml @@ -2121,7 +2121,6 @@ Radio Akses Pantas Alih ke kiri - Alih ke tengah Alih ke kanan Menu Akses Pantas Steam belum tersedia. Statistik dalam permainan diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml index 8162b56ef7..0505e0d2ad 100644 --- a/app/src/main/res/values-nb/strings.xml +++ b/app/src/main/res/values-nb/strings.xml @@ -2145,7 +2145,6 @@ Radio Hurtigtilgang Flytt til venstre - Flytt til midten Flytt til høyre Steams hurtigtilgangsmeny er ikke tilgjengelig ennå. Statistikk i spillet diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 6e7e98e9dc..44d5c041a6 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -2145,7 +2145,6 @@ Radio Snelle toegang Naar links verplaatsen - Naar het midden verplaatsen Naar rechts verplaatsen Het menu Snelle toegang van Steam is nog niet beschikbaar. In-game statistieken diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 85a7395163..e42b43ec72 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -2195,7 +2195,6 @@ Radio Szybki dostęp Przesuń w lewo - Przesuń na środek Przesuń w prawo Menu szybkiego dostępu Steam nie jest jeszcze dostępne. Statystyki w grze diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index cb1ed51d58..05f0736ef9 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -2175,7 +2175,6 @@ Rádio Acesso rápido Mover para a esquerda - Mover para o centro Mover para a direita O menu de acesso rápido do Steam ainda não está disponível. Estatísticas no jogo diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 1e52da776d..9808691c9d 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -2183,7 +2183,6 @@ Rádio Acesso rápido Mover para a esquerda - Mover para o centro Mover para a direita O menu de acesso rápido do Steam ainda não está disponível. Estatísticas no jogo diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index c480caadbb..145fcb77c5 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -2170,7 +2170,6 @@ Radio Acces rapid Mută la stânga - Mută în centru Mută la dreapta Meniul de acces rapid Steam nu este încă disponibil. Statistici în joc diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 5f6184b74a..1da08a7159 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -2196,7 +2196,6 @@ Радио Быстрый доступ Сдвинуть влево - Сдвинуть в центр Сдвинуть вправо Меню быстрого доступа Steam пока недоступно. Игровая статистика diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 8491f3d93c..1231afa030 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -2145,7 +2145,6 @@ Radio Snabbåtkomst Flytta till vänster - Flytta till mitten Flytta till höger Steams snabbåtkomstmeny är inte tillgänglig än. Statistik i spelet diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml index 450a3240e1..58e49aeac9 100644 --- a/app/src/main/res/values-th/strings.xml +++ b/app/src/main/res/values-th/strings.xml @@ -2121,7 +2121,6 @@ วิทยุ เข้าถึงด่วน ย้ายไปทางซ้าย - ย้ายไปตรงกลาง ย้ายไปทางขวา เมนูเข้าถึงด่วนของ Steam ยังไม่พร้อมใช้งาน สถิติในเกม diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 6a9317802d..665e932d9b 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -2137,7 +2137,6 @@ Radyo Hızlı Erişim Sola taşı - Ortaya taşı Sağa taşı Steam Hızlı Erişim menüsü henüz kullanılamıyor. Oyun içi istatistikler diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 3c4e0da6e3..0dd0a2642c 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -2195,7 +2195,6 @@ Радіо Швидкий доступ Перемістити ліворуч - Перемістити в центр Перемістити праворуч Меню швидкого доступу Steam ще недоступне. Ігрова статистика diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index c7924ddbb4..1557a86afa 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -2121,7 +2121,6 @@ Radio Truy cập nhanh Chuyển sang trái - Chuyển vào giữa Chuyển sang phải Menu Truy cập nhanh của Steam chưa sẵn sàng. Thông số trong game diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 902043502c..37b46caf0b 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -2198,7 +2198,6 @@ 收音机 快速访问 移到左侧 - 移到中间 移到右侧 Steam 快速访问菜单暂不可用。 游戏内数据 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 8fd42cec7f..6d7d638d2d 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -2120,7 +2120,6 @@ 收音機 快速存取 移到左側 - 移到中間 移到右側 Steam 快速存取選單暫時無法使用。 遊戲內數據 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 351024f789..c785161bea 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -2120,7 +2120,6 @@ 收音機 快速存取 移到左側 - 移到中間 移到右側 Steam 快速存取選單暫時無法使用。 遊戲內數據 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2c33254951..ebad19d44b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2428,7 +2428,6 @@ Radio Quick Access Move to the left - Move to the center Move to the right Steam\'s Quick Access menu is not available yet. In-game stats diff --git a/docs/development/bottom-screen.md b/docs/development/bottom-screen.md index 77b0b47059..f2ce6d49d5 100644 --- a/docs/development/bottom-screen.md +++ b/docs/development/bottom-screen.md @@ -173,10 +173,10 @@ Plugin loaders expose Steam's CEF DevTools so the menu can be viewed in a deskto - 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. - 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`. When the menu is narrower than the panel, buttons in the free space move it left, centre or right; the choice is kept. +- `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`. When the menu is narrower than the panel, 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. - 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. -Checked with Decky Loader 3.3.1 enabled: its tab renders and takes touch, and its store opens full screen on top with the controller, then returns to the Decky tab below. +Checked with Decky Loader 3.3.1 enabled: its tab renders and takes touch, and its store opens full screen on top with the controller, then returns to the Decky tab below. Decky hooks the menu after Steam starts, so the panel reopens it once when that happens. Limits: it relies on Steam's minified UI stores and method names, so a client update can break it; the panel then shows that the menu is not available. diff --git a/docs/development/evidence/bottom-screen-qam-decky-2026-11-27.png b/docs/development/evidence/bottom-screen-qam-decky-2026-11-27.png index 4ac3a5f6b2..e84e999e31 100644 Binary files a/docs/development/evidence/bottom-screen-qam-decky-2026-11-27.png and b/docs/development/evidence/bottom-screen-qam-decky-2026-11-27.png differ diff --git a/docs/development/evidence/bottom-screen-qam-decky-centred-2026-11-27.png b/docs/development/evidence/bottom-screen-qam-decky-centred-2026-11-27.png index c947527eb5..2e454f52d1 100644 Binary files a/docs/development/evidence/bottom-screen-qam-decky-centred-2026-11-27.png and b/docs/development/evidence/bottom-screen-qam-decky-centred-2026-11-27.png differ