mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
fix(bottom): mirror fills the panel, options open from the bar
This commit is contained in:
1 parent
48f4d342aa
commit
cbde1934ff
38 files changed
+77
-25
No files matched your search
@@ -4,17 +4,25 @@ import android.graphics.Bitmap
|
||||
import android.graphics.RectF
|
||||
import androidx.compose.foundation.Canvas
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.gestures.detectDragGestures
|
||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.aspectRatio
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
@@ -37,27 +45,21 @@ import androidx.compose.ui.graphics.drawscope.Stroke
|
||||
import androidx.compose.ui.input.pointer.pointerInput
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.droiddeck.launcher.R
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
import kotlin.coroutines.resume
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
import kotlin.math.roundToInt
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
|
||||
internal enum class MirrorHide(val id: String, val label: Int) {
|
||||
OFF("off", R.string.bottom_mirror_hide_off),
|
||||
@@ -144,20 +146,25 @@ internal fun MirrorPanel(actions: BottomPageActions) {
|
||||
}
|
||||
}
|
||||
val pal = LocalPalette.current
|
||||
Row(Modifier.fillMaxSize().padding(horizontal = 14.dp, vertical = 10.dp), horizontalArrangement = Arrangement.spacedBy(14.dp)) {
|
||||
Box(
|
||||
Modifier.weight(1f).fillMaxHeight().clip(RoundedCornerShape(14.dp)).background(Color.Black)
|
||||
.border(1.dp, pal.line, RoundedCornerShape(14.dp)),
|
||||
contentAlignment = Alignment.Center,
|
||||
DisposableEffect(Unit) { onDispose { MirrorOptions.open.value = false } }
|
||||
Box(Modifier.fillMaxSize().background(Color.Black), contentAlignment = Alignment.Center) {
|
||||
val f = frame
|
||||
if (f != null) Image(f, null, Modifier.fillMaxSize(), contentScale = ContentScale.Fit,
|
||||
filterQuality = if (sharp) FilterQuality.None else FilterQuality.Medium)
|
||||
else if (failed) MirrorNote(stringResource(R.string.bottom_mirror_no_frame))
|
||||
if (MirrorOptions.open.value) Box(
|
||||
Modifier.fillMaxSize().clickable(remember { MutableInteractionSource() }, indication = null) { MirrorOptions.open.value = false },
|
||||
contentAlignment = Alignment.TopEnd,
|
||||
) {
|
||||
val f = frame
|
||||
if (f != null) Image(f, null, Modifier.fillMaxSize(), contentScale = ContentScale.Fit,
|
||||
filterQuality = if (sharp) FilterQuality.None else FilterQuality.Medium)
|
||||
else if (failed) MirrorNote(stringResource(R.string.bottom_mirror_no_frame))
|
||||
}
|
||||
Column(Modifier.width(260.dp).fillMaxHeight().verticalScroll(rememberScrollState())) {
|
||||
val shape = RoundedCornerShape(16.dp)
|
||||
Column(
|
||||
Modifier.padding(12.dp).width(380.dp).testTag("bottom-mirror-options").clip(shape).background(MaterialTheme.colorScheme.background)
|
||||
.border(1.dp, pal.line, shape).clickable(remember { MutableInteractionSource() }, indication = null) {}
|
||||
.padding(horizontal = 10.dp, vertical = 4.dp),
|
||||
) {
|
||||
SettingsGroup(stringResource(R.string.bottom_page_mirror)) {
|
||||
ActionRow(stringResource(R.string.bottom_mirror_region), null, stringResource(R.string.game_env_edit), onClick = { editing = true },
|
||||
ActionRow(stringResource(R.string.bottom_mirror_region), null, stringResource(R.string.game_env_edit),
|
||||
onClick = { MirrorOptions.open.value = false; editing = true },
|
||||
modifier = Modifier.testTag("bottom-mirror-edit"))
|
||||
ChoiceRow(host, "mirror-hide", stringResource(R.string.bottom_mirror_top), null,
|
||||
MirrorHide.entries.map { it to stringResource(it.label) }, hide) {
|
||||
@@ -169,10 +176,16 @@ internal fun MirrorPanel(actions: BottomPageActions) {
|
||||
sharp = it
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Whether the mirror's options card is open, toggled from the bar so the mirror keeps the whole panel. */
|
||||
internal object MirrorOptions {
|
||||
val open = androidx.compose.runtime.mutableStateOf(false)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun MirrorEditor(
|
||||
copy: (RectF?, Int, Int, (Bitmap?) -> Unit) -> Unit,
|
||||
|
||||
@@ -18,6 +18,7 @@ import androidx.activity.setViewTreeOnBackPressedDispatcherOwner
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.ExpandLess
|
||||
import androidx.compose.material.icons.outlined.LightMode
|
||||
import androidx.compose.material.icons.outlined.Tune
|
||||
import androidx.lifecycle.setViewTreeLifecycleOwner
|
||||
import androidx.lifecycle.setViewTreeViewModelStoreOwner
|
||||
import androidx.savedstate.setViewTreeSavedStateRegistryOwner
|
||||
@@ -427,7 +428,12 @@ class SecondScreenPresentation(
|
||||
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.MIRROR -> model(listOf(BarExtra(context.getString(R.string.bottom_mirror_options), vector = Icons.Outlined.Tune,
|
||||
active = MirrorOptions.open.value, tag = "bottom-mirror-options-toggle") {
|
||||
brightnessOpen.value = false
|
||||
MirrorOptions.open.value = !MirrorOptions.open.value
|
||||
}) + extras)
|
||||
SecondScreenMode.DASHBOARD, SecondScreenMode.CUSTOM_CONTROLS, SecondScreenMode.GUIDES,
|
||||
SecondScreenMode.COMPANION, SecondScreenMode.ART -> 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)
|
||||
|
||||
@@ -2237,6 +2237,7 @@
|
||||
<string name="bottom_guides_maps_empty">لا توجد خرائط مثبتة بعد</string>
|
||||
<string name="bottom_guides_map_name">خريطة %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">لا توجد صفحات محفوظة بعد</string>
|
||||
<string name="bottom_mirror_options">خيارات المرآة</string>
|
||||
<string name="bottom_mirror_region">المنطقة</string>
|
||||
<string name="bottom_mirror_top">الشاشة العلوية</string>
|
||||
<string name="bottom_mirror_scaling">التحجيم</string>
|
||||
|
||||
@@ -2232,6 +2232,7 @@
|
||||
<string name="bottom_guides_maps_empty">Aún no hay mapas fijados</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Aún no hay páginas guardadas</string>
|
||||
<string name="bottom_mirror_options">Opciones de espejo</string>
|
||||
<string name="bottom_mirror_region">Región</string>
|
||||
<string name="bottom_mirror_top">Pantalla superior</string>
|
||||
<string name="bottom_mirror_scaling">Escalado</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Още няма закачени карти</string>
|
||||
<string name="bottom_guides_map_name">Карта %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Още няма запазени страници</string>
|
||||
<string name="bottom_mirror_options">Настройки на огледалото</string>
|
||||
<string name="bottom_mirror_region">Област</string>
|
||||
<string name="bottom_mirror_top">Горен екран</string>
|
||||
<string name="bottom_mirror_scaling">Мащабиране</string>
|
||||
|
||||
@@ -2187,6 +2187,7 @@
|
||||
<string name="bottom_guides_maps_empty">Zatím žádné připnuté mapy</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Zatím žádné uložené stránky</string>
|
||||
<string name="bottom_mirror_options">Možnosti zrcadlení</string>
|
||||
<string name="bottom_mirror_region">Oblast</string>
|
||||
<string name="bottom_mirror_top">Horní obrazovka</string>
|
||||
<string name="bottom_mirror_scaling">Škálování</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ingen fastgjorte kort endnu</string>
|
||||
<string name="bottom_guides_map_name">Kort %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ingen gemte sider endnu</string>
|
||||
<string name="bottom_mirror_options">Spejlindstillinger</string>
|
||||
<string name="bottom_mirror_region">Område</string>
|
||||
<string name="bottom_mirror_top">Øverste skærm</string>
|
||||
<string name="bottom_mirror_scaling">Skalering</string>
|
||||
|
||||
@@ -2129,6 +2129,7 @@
|
||||
<string name="bottom_guides_maps_empty">Noch keine angehefteten Karten</string>
|
||||
<string name="bottom_guides_map_name">Karte %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Noch keine gespeicherten Seiten</string>
|
||||
<string name="bottom_mirror_options">Spiegeloptionen</string>
|
||||
<string name="bottom_mirror_region">Bereich</string>
|
||||
<string name="bottom_mirror_top">Oberer Bildschirm</string>
|
||||
<string name="bottom_mirror_scaling">Skalierung</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Δεν υπάρχουν καρφιτσωμένοι χάρτες</string>
|
||||
<string name="bottom_guides_map_name">Χάρτης %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Δεν υπάρχουν αποθηκευμένες σελίδες</string>
|
||||
<string name="bottom_mirror_options">Επιλογές καθρέφτη</string>
|
||||
<string name="bottom_mirror_region">Περιοχή</string>
|
||||
<string name="bottom_mirror_top">Πάνω οθόνη</string>
|
||||
<string name="bottom_mirror_scaling">Κλιμάκωση</string>
|
||||
|
||||
@@ -2162,6 +2162,7 @@
|
||||
<string name="bottom_guides_maps_empty">Aún no hay mapas fijados</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Aún no hay páginas guardadas</string>
|
||||
<string name="bottom_mirror_options">Opciones de espejo</string>
|
||||
<string name="bottom_mirror_region">Región</string>
|
||||
<string name="bottom_mirror_top">Pantalla superior</string>
|
||||
<string name="bottom_mirror_scaling">Escalado</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ei vielä kiinnitettyjä karttoja</string>
|
||||
<string name="bottom_guides_map_name">Kartta %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ei vielä tallennettuja sivuja</string>
|
||||
<string name="bottom_mirror_options">Peilauksen asetukset</string>
|
||||
<string name="bottom_mirror_region">Alue</string>
|
||||
<string name="bottom_mirror_top">Ylänäyttö</string>
|
||||
<string name="bottom_mirror_scaling">Skaalaus</string>
|
||||
|
||||
@@ -2161,6 +2161,7 @@
|
||||
<string name="bottom_guides_maps_empty">Aucune carte épinglée</string>
|
||||
<string name="bottom_guides_map_name">Carte %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Aucune page enregistrée</string>
|
||||
<string name="bottom_mirror_options">Options du miroir</string>
|
||||
<string name="bottom_mirror_region">Zone</string>
|
||||
<string name="bottom_mirror_top">Écran du haut</string>
|
||||
<string name="bottom_mirror_scaling">Mise à l’échelle</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">अभी कोई पिन किया नक्शा नहीं</string>
|
||||
<string name="bottom_guides_map_name">नक्शा %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">अभी कोई सहेजा पेज नहीं</string>
|
||||
<string name="bottom_mirror_options">मिरर विकल्प</string>
|
||||
<string name="bottom_mirror_region">क्षेत्र</string>
|
||||
<string name="bottom_mirror_top">ऊपर की स्क्रीन</string>
|
||||
<string name="bottom_mirror_scaling">स्केलिंग</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Még nincs kitűzött térkép</string>
|
||||
<string name="bottom_guides_map_name">%1$d. térkép</string>
|
||||
<string name="bottom_guides_saved_empty">Még nincs mentett oldal</string>
|
||||
<string name="bottom_mirror_options">Tükrözés beállításai</string>
|
||||
<string name="bottom_mirror_region">Terület</string>
|
||||
<string name="bottom_mirror_top">Felső képernyő</string>
|
||||
<string name="bottom_mirror_scaling">Méretezés</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">Belum ada peta yang disematkan</string>
|
||||
<string name="bottom_guides_map_name">Peta %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Belum ada halaman tersimpan</string>
|
||||
<string name="bottom_mirror_options">Opsi cermin</string>
|
||||
<string name="bottom_mirror_region">Area</string>
|
||||
<string name="bottom_mirror_top">Layar atas</string>
|
||||
<string name="bottom_mirror_scaling">Penskalaan</string>
|
||||
|
||||
@@ -2153,6 +2153,7 @@
|
||||
<string name="bottom_guides_maps_empty">Nessuna mappa fissata</string>
|
||||
<string name="bottom_guides_map_name">Mappa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Nessuna pagina salvata</string>
|
||||
<string name="bottom_mirror_options">Opzioni specchio</string>
|
||||
<string name="bottom_mirror_region">Area</string>
|
||||
<string name="bottom_mirror_top">Schermo superiore</string>
|
||||
<string name="bottom_mirror_scaling">Scalatura</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">ピン留めしたマップはまだありません</string>
|
||||
<string name="bottom_guides_map_name">マップ %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">保存したページはまだありません</string>
|
||||
<string name="bottom_mirror_options">ミラーの設定</string>
|
||||
<string name="bottom_mirror_region">範囲</string>
|
||||
<string name="bottom_mirror_top">上画面</string>
|
||||
<string name="bottom_mirror_scaling">スケーリング</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">고정한 지도가 아직 없습니다</string>
|
||||
<string name="bottom_guides_map_name">지도 %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">저장한 페이지가 아직 없습니다</string>
|
||||
<string name="bottom_mirror_options">미러 옵션</string>
|
||||
<string name="bottom_mirror_region">영역</string>
|
||||
<string name="bottom_mirror_top">위 화면</string>
|
||||
<string name="bottom_mirror_scaling">스케일링</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">Belum ada peta disematkan</string>
|
||||
<string name="bottom_guides_map_name">Peta %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Belum ada halaman disimpan</string>
|
||||
<string name="bottom_mirror_options">Pilihan cermin</string>
|
||||
<string name="bottom_mirror_region">Kawasan</string>
|
||||
<string name="bottom_mirror_top">Skrin atas</string>
|
||||
<string name="bottom_mirror_scaling">Penskalaan</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ingen festede kart ennå</string>
|
||||
<string name="bottom_guides_map_name">Kart %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ingen lagrede sider ennå</string>
|
||||
<string name="bottom_mirror_options">Speilvalg</string>
|
||||
<string name="bottom_mirror_region">Område</string>
|
||||
<string name="bottom_mirror_top">Øvre skjerm</string>
|
||||
<string name="bottom_mirror_scaling">Skalering</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Nog geen vastgezette kaarten</string>
|
||||
<string name="bottom_guides_map_name">Kaart %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Nog geen opgeslagen pagina\'s</string>
|
||||
<string name="bottom_mirror_options">Spiegelopties</string>
|
||||
<string name="bottom_mirror_region">Gebied</string>
|
||||
<string name="bottom_mirror_top">Bovenste scherm</string>
|
||||
<string name="bottom_mirror_scaling">Schalen</string>
|
||||
|
||||
@@ -2187,6 +2187,7 @@
|
||||
<string name="bottom_guides_maps_empty">Brak przypiętych map</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Brak zapisanych stron</string>
|
||||
<string name="bottom_mirror_options">Opcje lustra</string>
|
||||
<string name="bottom_mirror_region">Obszar</string>
|
||||
<string name="bottom_mirror_top">Górny ekran</string>
|
||||
<string name="bottom_mirror_scaling">Skalowanie</string>
|
||||
|
||||
@@ -2167,6 +2167,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ainda não há mapas afixados</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ainda não há páginas guardadas</string>
|
||||
<string name="bottom_mirror_options">Opções de espelho</string>
|
||||
<string name="bottom_mirror_region">Região</string>
|
||||
<string name="bottom_mirror_top">Ecrã superior</string>
|
||||
<string name="bottom_mirror_scaling">Escala</string>
|
||||
|
||||
@@ -2175,6 +2175,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ainda não há mapas fixados</string>
|
||||
<string name="bottom_guides_map_name">Mapa %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ainda não há páginas salvas</string>
|
||||
<string name="bottom_mirror_options">Opções de espelho</string>
|
||||
<string name="bottom_mirror_region">Região</string>
|
||||
<string name="bottom_mirror_top">Tela superior</string>
|
||||
<string name="bottom_mirror_scaling">Escala</string>
|
||||
|
||||
@@ -2162,6 +2162,7 @@
|
||||
<string name="bottom_guides_maps_empty">Nicio hartă fixată încă</string>
|
||||
<string name="bottom_guides_map_name">Harta %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Nicio pagină salvată încă</string>
|
||||
<string name="bottom_mirror_options">Opțiuni oglindă</string>
|
||||
<string name="bottom_mirror_region">Zonă</string>
|
||||
<string name="bottom_mirror_top">Ecranul de sus</string>
|
||||
<string name="bottom_mirror_scaling">Scalare</string>
|
||||
|
||||
@@ -2188,6 +2188,7 @@
|
||||
<string name="bottom_guides_maps_empty">Пока нет закреплённых карт</string>
|
||||
<string name="bottom_guides_map_name">Карта %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Пока нет сохранённых страниц</string>
|
||||
<string name="bottom_mirror_options">Параметры зеркала</string>
|
||||
<string name="bottom_mirror_region">Область</string>
|
||||
<string name="bottom_mirror_top">Верхний экран</string>
|
||||
<string name="bottom_mirror_scaling">Масштабирование</string>
|
||||
|
||||
@@ -2137,6 +2137,7 @@
|
||||
<string name="bottom_guides_maps_empty">Inga fästa kartor än</string>
|
||||
<string name="bottom_guides_map_name">Karta %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Inga sparade sidor än</string>
|
||||
<string name="bottom_mirror_options">Spegelalternativ</string>
|
||||
<string name="bottom_mirror_region">Område</string>
|
||||
<string name="bottom_mirror_top">Övre skärm</string>
|
||||
<string name="bottom_mirror_scaling">Skalning</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">ยังไม่มีแผนที่ที่ปักหมุด</string>
|
||||
<string name="bottom_guides_map_name">แผนที่ %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">ยังไม่มีหน้าที่บันทึก</string>
|
||||
<string name="bottom_mirror_options">ตัวเลือกการสะท้อน</string>
|
||||
<string name="bottom_mirror_region">พื้นที่</string>
|
||||
<string name="bottom_mirror_top">จอบน</string>
|
||||
<string name="bottom_mirror_scaling">การปรับขนาด</string>
|
||||
|
||||
@@ -2129,6 +2129,7 @@
|
||||
<string name="bottom_guides_maps_empty">Henüz sabitlenmiş harita yok</string>
|
||||
<string name="bottom_guides_map_name">Harita %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Henüz kaydedilmiş sayfa yok</string>
|
||||
<string name="bottom_mirror_options">Ayna seçenekleri</string>
|
||||
<string name="bottom_mirror_region">Bölge</string>
|
||||
<string name="bottom_mirror_top">Üst ekran</string>
|
||||
<string name="bottom_mirror_scaling">Ölçekleme</string>
|
||||
|
||||
@@ -2187,6 +2187,7 @@
|
||||
<string name="bottom_guides_maps_empty">Ще немає закріплених мап</string>
|
||||
<string name="bottom_guides_map_name">Мапа %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Ще немає збережених сторінок</string>
|
||||
<string name="bottom_mirror_options">Параметри дзеркала</string>
|
||||
<string name="bottom_mirror_region">Область</string>
|
||||
<string name="bottom_mirror_top">Верхній екран</string>
|
||||
<string name="bottom_mirror_scaling">Масштабування</string>
|
||||
|
||||
@@ -2113,6 +2113,7 @@
|
||||
<string name="bottom_guides_maps_empty">Chưa có bản đồ nào được ghim</string>
|
||||
<string name="bottom_guides_map_name">Bản đồ %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">Chưa có trang nào được lưu</string>
|
||||
<string name="bottom_mirror_options">Tùy chọn phản chiếu</string>
|
||||
<string name="bottom_mirror_region">Vùng</string>
|
||||
<string name="bottom_mirror_top">Màn hình trên</string>
|
||||
<string name="bottom_mirror_scaling">Thu phóng</string>
|
||||
|
||||
@@ -2190,6 +2190,7 @@
|
||||
<string name="bottom_guides_maps_empty">还没有固定的地图</string>
|
||||
<string name="bottom_guides_map_name">地图 %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">还没有保存的页面</string>
|
||||
<string name="bottom_mirror_options">镜像选项</string>
|
||||
<string name="bottom_mirror_region">区域</string>
|
||||
<string name="bottom_mirror_top">上屏</string>
|
||||
<string name="bottom_mirror_scaling">缩放</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_guides_maps_empty">尚未釘選地圖</string>
|
||||
<string name="bottom_guides_map_name">地圖 %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">尚未儲存頁面</string>
|
||||
<string name="bottom_mirror_options">鏡像選項</string>
|
||||
<string name="bottom_mirror_region">區域</string>
|
||||
<string name="bottom_mirror_top">上屏</string>
|
||||
<string name="bottom_mirror_scaling">縮放</string>
|
||||
|
||||
@@ -2112,6 +2112,7 @@
|
||||
<string name="bottom_guides_maps_empty">尚未釘選地圖</string>
|
||||
<string name="bottom_guides_map_name">地圖 %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">尚未儲存頁面</string>
|
||||
<string name="bottom_mirror_options">鏡像選項</string>
|
||||
<string name="bottom_mirror_region">區域</string>
|
||||
<string name="bottom_mirror_top">上螢幕</string>
|
||||
<string name="bottom_mirror_scaling">縮放</string>
|
||||
|
||||
@@ -2419,6 +2419,7 @@
|
||||
<string name="bottom_guides_maps_empty">No pinned maps yet</string>
|
||||
<string name="bottom_guides_map_name">Map %1$d</string>
|
||||
<string name="bottom_guides_saved_empty">No saved pages yet</string>
|
||||
<string name="bottom_mirror_options">Mirror options</string>
|
||||
<string name="bottom_mirror_region">Region</string>
|
||||
<string name="bottom_mirror_top">Top screen</string>
|
||||
<string name="bottom_mirror_scaling">Scaling</string>
|
||||
|
||||
@@ -149,7 +149,7 @@ Rearrangeable tiles on the dashboard: FPS limit, 60/120 Hz, per-screen brightnes
|
||||
|
||||
### 6. Region mirror from our compositor
|
||||
|
||||
**Status:** milestone 1 built as its own bottom-screen panel (Mirror in the panel picker): the live region on the left, and Region, Top screen (shown, hidden or dimmed) and Scaling as settings rows on the right. Checked on a Retroid Pocket Duo Lite Plus; see the region mirror doc.
|
||||
**Status:** milestone 1 built as its own bottom-screen panel (Mirror in the panel picker): the live region fills the panel, and Region, Top screen (shown, hidden or dimmed) and Scaling open as a card from the bar's options button. Checked on a Retroid Pocket Duo Lite Plus; see the region mirror doc.
|
||||
|
||||
Crop rectangles of the game image (minimap, HUD, ability bars) onto the bottom screen, saved per game, optionally hidden on the top screen. Other Thor tools need MediaProjection or a privileged helper and cannot hide the original; our compositor has the game image before display, so it can do both with no permission prompt. Recommended path: a second output in `vk_present` that blits region sub-rectangles, with zero-copy layers later.
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 463 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 359 KiB |
Reference in new issue
Block a user