From 2d25d17dc82b54b581b1ca081f621ce542ed9995 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Sat, 31 Oct 2026 22:09:37 -0300 Subject: [PATCH 01/10] feat!: console interface only, with a guided first-run tour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Desktop interface (HomeView, SettingsView, its gamepad navigator, the TeachingTip tour, the UI mode option and the shortcuts dialog) is gone: the console interface, which also takes the mouse and the keyboard, is the app. What only the Desktop had moves to the System tab: the FPS counter's layout, the custom app's arguments and process to watch, the diagnostics report and the version. Each System row carries its old description as HelpText, shown under the list for the row in focus. The first time the window shows, a 9-stop tour (ConsoleTour) walks the tabs, launchers, play button, screens, quick settings, System and the controller shortcuts: a veil with a hole around each part, a card beside it, A next and B skip. It is saved as ConsoleTourDone, a new flag, so people who saw the old tutorial see this one once; System → App → Tutorial shows it again. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.en-US.md | 1 + CHANGELOG.md | 1 + README.de-DE.md | 6 +- README.es-ES.md | 6 +- README.fr-FR.md | 6 +- README.md | 8 +- README.pt-BR.md | 8 +- README.ru-RU.md | 6 +- docs/GUIDE.de-DE.md | 14 +- docs/GUIDE.es-ES.md | 14 +- docs/GUIDE.fr-FR.md | 14 +- docs/GUIDE.md | 14 +- docs/GUIDE.pt-BR.md | 14 +- docs/GUIDE.ru-RU.md | 14 +- docs/PRD.md | 15 +- docs/TESTING.md | 32 +- src/ConsoleMode/App.xaml.cs | 22 - .../Controls/MonitorLayoutPanel.cs | 47 -- src/ConsoleMode/Controls/ShortcutPicker.cs | 63 +- src/ConsoleMode/MainWindow.xaml | 47 +- src/ConsoleMode/MainWindow.xaml.cs | 92 +-- src/ConsoleMode/Models/Models.cs | 10 +- src/ConsoleMode/Resources/Strings.de-DE.json | 61 +- src/ConsoleMode/Resources/Strings.en-US.json | 61 +- src/ConsoleMode/Resources/Strings.es-ES.json | 61 +- src/ConsoleMode/Resources/Strings.fr-FR.json | 61 +- src/ConsoleMode/Resources/Strings.pt-BR.json | 61 +- src/ConsoleMode/Resources/Strings.ru-RU.json | 61 +- src/ConsoleMode/Services/ConsoleTour.cs | 68 ++ .../Services/LocalizationService.cs | 29 - src/ConsoleMode/Services/OptionCycle.cs | 13 + src/ConsoleMode/Services/TrayService.cs | 3 +- src/ConsoleMode/Services/UiModeResolver.cs | 29 - .../ViewModels/MainViewModel.ConsoleTour.cs | 103 +++ .../ViewModels/MainViewModel.ConsoleUi.cs | 136 +--- .../ViewModels/MainViewModel.Shortcuts.cs | 10 - .../ViewModels/MainViewModel.Updates.cs | 1 - src/ConsoleMode/ViewModels/MainViewModel.cs | 96 +-- src/ConsoleMode/Views/ConsoleHomeView.xaml | 714 +++++++++++------- src/ConsoleMode/Views/ConsoleHomeView.xaml.cs | 227 +++++- src/ConsoleMode/Views/HomeView.xaml | 296 -------- src/ConsoleMode/Views/HomeView.xaml.cs | 15 - src/ConsoleMode/Views/SettingsView.xaml | 480 ------------ src/ConsoleMode/Views/SettingsView.xaml.cs | 19 - .../ConsoleMode.Tests.csproj | 3 +- tests/ConsoleMode.Tests/ConsoleTourTests.cs | 95 +++ tests/ConsoleMode.Tests/LocalizationTests.cs | 10 +- tests/ConsoleMode.Tests/OptionCycleTests.cs | 16 + .../ConsoleMode.Tests/UiModeResolverTests.cs | 27 - 49 files changed, 1238 insertions(+), 1972 deletions(-) delete mode 100644 src/ConsoleMode/Controls/MonitorLayoutPanel.cs create mode 100644 src/ConsoleMode/Services/ConsoleTour.cs create mode 100644 src/ConsoleMode/Services/OptionCycle.cs delete mode 100644 src/ConsoleMode/Services/UiModeResolver.cs create mode 100644 src/ConsoleMode/ViewModels/MainViewModel.ConsoleTour.cs delete mode 100644 src/ConsoleMode/Views/HomeView.xaml delete mode 100644 src/ConsoleMode/Views/HomeView.xaml.cs delete mode 100644 src/ConsoleMode/Views/SettingsView.xaml delete mode 100644 src/ConsoleMode/Views/SettingsView.xaml.cs create mode 100644 tests/ConsoleMode.Tests/ConsoleTourTests.cs create mode 100644 tests/ConsoleMode.Tests/OptionCycleTests.cs delete mode 100644 tests/ConsoleMode.Tests/UiModeResolverTests.cs diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index bfcdfa1..91b2849 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -12,6 +12,7 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor - **Move the mouse pointer out of the way** (issue #172): when the launcher shows up on the TV, the pointer goes to the bottom-right corner of the game screen (twice, since Steam recenters it while opening) and goes back where it was when you return to the PC. On by default; turn it off in Settings or under System → When entering console mode. Based on @JarJarShinks' version in #173. (#177) - Redesigned title bar: on the Console interface the background runs up to the top edge of the window (no grey strip) and the minimize, maximize and close buttons are white, with the same soft highlight as the interface's own buttons; on the Desktop interface the icon and name are larger and the buttons fill the bar's height. (#182) - Console interface: new sounds. Move, confirm and back use glass and "minimize" sounds from Kenney's Interface Sounds pack (CC0), and switching tabs (LB / RB or a click on a tab) gets its own sound, a crystal tick made by the Selene theme's sound script (MIT). (#183) +- **One interface, with a guided tour**: Console Mode now has only the Console interface, which also works with the mouse and the keyboard (click the tabs, Page Up / Page Down, Enter and Esc). The Desktop interface and the Interface option are gone; what only it had moved to the System tab: the FPS counter (style, size, position, colour and items), the custom app's arguments and process to watch, the diagnostics report and the app's version. Under the list, the System tab shows what the setting in focus does. The first time you open it, a tour highlights the tabs, the launchers, the play button, the screens, the quick settings, the settings and the controller shortcuts (A goes on, B skips); to see it again, System → App → Tutorial. (#PR) ### Fixes - Custom app: Console Mode moves only the program's largest window to the game screen, instead of every window Windows reports as its main one; a tooltip is no longer stretched over the TV. (#175) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b71640..90e79bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH - **Tirar o ponteiro do mouse do caminho** (issue #172): quando o iniciador aparece na TV, o ponteiro vai para o canto inferior direito da tela de jogo (duas vezes, porque a Steam o recentraliza ao abrir) e, ao voltar ao PC, volta para onde estava. Ligado por padrão; desligue em Ajustes ou em Sistema → Ao entrar no modo console. Baseado na versão de @JarJarShinks no #173. (#177) - Barra de título redesenhada: na interface Console, o fundo vai até a borda de cima da janela (sem a faixa cinza) e os botões de minimizar, maximizar e fechar ficam brancos, com o mesmo realce suave dos botões da interface; na interface Desktop, o ícone e o nome ficam maiores e os botões ocupam a altura toda da barra. (#182) - Interface Console: sons novos. Mover, confirmar e voltar usam sons de vidro e de "minimizar" do pacote Interface Sounds da Kenney (CC0), e trocar de aba (LB / RB ou clique numa aba) ganhou um som próprio, um tique de cristal gerado pelo script de sons do tema Selene (MIT). (#183) +- **Uma interface só, com tour guiado**: o Console Mode passa a ter apenas a interface Console, que também funciona com mouse e teclado (clique nas abas, Page Up / Page Down, Enter e Esc). A interface Desktop e a opção Interface saíram; o que só existia nela foi para a aba Sistema: o contador de FPS (estilo, tamanho, posição, cor e itens), os argumentos e o processo a acompanhar do aplicativo personalizado, o relatório de diagnóstico e a versão do app. Embaixo da lista, a aba Sistema mostra o que faz o ajuste em foco. Na primeira vez que você abre, um tour destaca as abas, os iniciadores, o botão de jogar, as telas, os ajustes rápidos, as configurações e os atalhos do controle (A avança, B pula); para ver de novo, Sistema → App → Tutorial. (#PR) ### Correções - Aplicativo personalizado: o Console Mode leva para a tela de jogo só a maior janela do programa, em vez de todas as que o Windows aponta como principal; uma dica de ferramenta não é mais esticada sobre a TV. (#175) diff --git a/README.de-DE.md b/README.de-DE.md index 252767a..1bb4f55 100644 --- a/README.de-DE.md +++ b/README.de-DE.md @@ -18,7 +18,7 @@ Hol dir die neueste stabile Version unter **[Releases](https://github.com/lippde - **`ConsoleMode-Portable-x64.exe`**: eine einzelne EXE, die ihre Daten direkt daneben speichert. - Oder mit winget: `winget install lippdev.ConsoleMode` -Du willst Neues vor allen anderen ausprobieren? Schalte unter Einstellungen „Testversionen erhalten (Alpha und Beta)“ ein. +Du willst Neues vor allen anderen ausprobieren? Schalte unter System → App „Testversionen erhalten (Alpha und Beta)“ ein. Windows 10 oder 11, dazu [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) oder die Xbox-App. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) ist optional, für die FPS-Begrenzung und die FPS-Anzeige. @@ -30,7 +30,7 @@ Windows 10 oder 11, dazu [Steam](https://store.steampowered.com/) (Big Picture), Lieber vom Sofa aus? Wenn die App im Infobereich läuft, halte deine Controller-Tastenkombination gedrückt und es geht von dort los. -Die Controller-Tastenkombinationen wählst du selbst: Anfangs ist keine aktiv, die App fragt dich beim ersten Öffnen danach (und du kannst sie in den Einstellungen ändern). Keine Taste kann zwei Aktionen auslösen. +Die Controller-Tastenkombinationen wählst du selbst: Anfangs ist keine aktiv, die Tour beim ersten Öffnen zeigt dir, wo du sie festlegst (System → Controller). Keine Taste kann zwei Aktionen auslösen. | Controller-Tastenkombination | Funktion | Vorschlag | |---|---|---| @@ -47,7 +47,7 @@ Die Controller-Tastenkombinationen wählst du selbst: Anfangs ist keine aktiv, d - [Schaltet den Fernseher ein und wechselt auf den Eingang des PCs](docs/GUIDE.de-DE.md#fernsehersteuerung) (Google TV / Android TV über das Netzwerk) und kann ihn danach in den Standby versetzen - Startet **Steam Big Picture**, **Playnite im Vollbild** oder den **Xbox-Modus** und minimiert Steam in den Infobereich, wenn du zum PC zurückkehrst - **Sitzungsmenü** über dem Spiel: geöffnete Fenster wechseln oder schließen, Lautstärke, Auflösung, Audio, FPS und HDR ändern, den Mauszeiger ausblenden oder mit dem Controller steuern und deine Dateien mit [ControlFS](https://github.com/nextestudios/ControlFS) und das Web mit [JoyChromium](https://github.com/lippdev/joychromium) durchsuchen -- Zwei Oberflächen: **Desktop** (Maus) und **Konsole** (Vollbild, Xbox- und PlayStation-Controller, Registerkarten mit LB/RB, ein eigenes Hintergrundbild oder deine Steam-Cover als Hintergrund) +- Eine Oberfläche im Stil einer Konsole, gemacht für den Fernseher, die auch mit Maus und Tastatur funktioniert (Vollbild, Xbox- und PlayStation-Controller, Registerkarten mit LB/RB, ein eigenes Hintergrundbild oder deine Steam-Cover als Hintergrund), mit einer geführten Tour beim ersten Öffnen - Automatisierung mit den Links `consolemode://start` / `stop` / `menu` (Stream Deck, Skripte) und einer [lokalen Steuerungs-API](docs/GUIDE.de-DE.md#lokale-steuerungs-api) - Englisch, Portugiesisch, Spanisch, Deutsch, Französisch und Russisch diff --git a/README.es-ES.md b/README.es-ES.md index 16aec50..c7a327f 100644 --- a/README.es-ES.md +++ b/README.es-ES.md @@ -18,7 +18,7 @@ Descarga la última versión estable desde **[la página de releases](https://gi - **`ConsoleMode-Portable-x64.exe`**: un solo exe que guarda sus datos a su lado. - O con winget: `winget install lippdev.ConsoleMode` -¿Quieres probar lo que viene antes que nadie? Activa Ajustes → "Recibir versiones de prueba (alfa y beta)". +¿Quieres probar lo que viene antes que nadie? Activa Sistema → Aplicación → "Recibir versiones de prueba (alfa y beta)". Windows 10 u 11, más [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) o la aplicación Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) es opcional, para el límite de FPS y el contador de FPS. @@ -30,7 +30,7 @@ Windows 10 u 11, más [Steam](https://store.steampowered.com/) (Big Picture), [P ¿Prefieres el sofá? Con la aplicación en la bandeja, mantén pulsado tu atajo del mando y empieza desde ahí. -Los atajos del mando los eliges tú: al principio no hay ninguno activado, la aplicación te pregunta la primera vez que la abres (y puedes cambiarlos en Ajustes). Un mismo botón no puede servir para dos acciones. +Los atajos del mando los eliges tú: al principio no hay ninguno activado, el recorrido de la primera vez te enseña dónde elegirlos (Sistema → Mando). Un mismo botón no puede servir para dos acciones. | Atajo del mando | Qué hace | Sugerido | |---|---|---| @@ -47,7 +47,7 @@ Los atajos del mando los eliges tú: al principio no hay ninguno activado, la ap - [Enciende la TV y la cambia a la entrada del PC](docs/GUIDE.es-ES.md#control-de-la-tv) (Google TV / Android TV por la red), y puede ponerla en reposo después - Abre **Steam Big Picture**, **Playnite a pantalla completa** o el **modo Xbox**, y envía Steam a la bandeja al volver al PC - **Menú de la sesión** sobre el juego: cambia o cierra las ventanas abiertas, ajusta volumen, resolución, audio, FPS y HDR, oculta el puntero del ratón o muévelo con el mando, y explora tus archivos con [ControlFS](https://github.com/nextestudios/ControlFS) y la web con [JoyChromium](https://github.com/lippdev/joychromium) -- Dos interfaces: **Escritorio** (ratón) y **Consola** (pantalla completa, mandos de Xbox y PlayStation, pestañas con LB/RB, un fondo de pantalla propio o tus portadas de Steam de fondo) +- Una interfaz al estilo de las consolas, hecha para la TV, que también funciona con ratón y teclado (pantalla completa, mandos de Xbox y PlayStation, pestañas con LB/RB, un fondo de pantalla propio o tus portadas de Steam de fondo), con un recorrido guiado la primera vez que la abres - Automatización con los enlaces `consolemode://start` / `stop` / `menu` (Stream Deck, scripts) y una [API de control local](docs/GUIDE.es-ES.md#api-de-control-local) - Inglés, portugués, español, alemán, francés y ruso diff --git a/README.fr-FR.md b/README.fr-FR.md index eee0b87..6aa811c 100644 --- a/README.fr-FR.md +++ b/README.fr-FR.md @@ -18,7 +18,7 @@ Récupérez la dernière version stable sur **[la page des versions](https://git - **`ConsoleMode-Portable-x64.exe`** : un seul exe qui garde ses données à côté de lui. - Ou avec winget : `winget install lippdev.ConsoleMode` -Envie d'essayer la suite avant tout le monde ? Activez Paramètres → « Recevoir les versions de test (alpha et bêta) ». +Envie d'essayer la suite avant tout le monde ? Activez Système → Application → « Recevoir les versions de test (alpha et bêta) ». Windows 10 ou 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) ou l'application Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) est facultatif, pour la limite de FPS et le compteur de FPS. @@ -30,7 +30,7 @@ Windows 10 ou 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [ Plutôt canapé ? Avec l'application dans la zone de notification, maintenez votre raccourci manette et elle démarre depuis là. -C'est vous qui choisissez les raccourcis manette : aucun n'est actif au départ, l'application vous les demande à la première ouverture (et vous pouvez les modifier dans les Paramètres). Un même bouton ne peut pas servir à deux actions. +C'est vous qui choisissez les raccourcis manette : aucun n'est actif au départ, la visite de la première ouverture montre où les choisir (Système → Manette). Un même bouton ne peut pas servir à deux actions. | Raccourci manette | Action | Suggestion | |---|---|---| @@ -47,7 +47,7 @@ C'est vous qui choisissez les raccourcis manette : aucun n'est actif au départ, - [Allume la TV et la bascule sur l'entrée du PC](docs/GUIDE.fr-FR.md#contrôle-de-la-tv) (Google TV / Android TV par le réseau), et peut la mettre en veille ensuite - Lance **Steam Big Picture**, **Playnite en plein écran** ou le mode **Xbox**, et réduit Steam dans la zone de notification quand vous revenez au PC - **Menu de session** par-dessus le jeu : changer de fenêtre ou fermer les fenêtres ouvertes, régler le volume, la résolution, le son, les FPS et le HDR, masquer le pointeur de la souris ou le piloter à la manette, et parcourir vos fichiers avec [ControlFS](https://github.com/nextestudios/ControlFS) et le Web avec [JoyChromium](https://github.com/lippdev/joychromium) -- Deux interfaces : **Bureau** (souris) et **Console** (plein écran, manettes Xbox et PlayStation, onglets sur LB/RB, un fond d’écran maison ou vos jaquettes Steam en fond) +- Une interface façon console, pensée pour la TV, qui marche aussi à la souris et au clavier (plein écran, manettes Xbox et PlayStation, onglets sur LB/RB, un fond d’écran maison ou vos jaquettes Steam en fond), avec une visite guidée à la première ouverture - Automatisation avec les liens `consolemode://start` / `stop` / `menu` (Stream Deck, scripts) et une [API de contrôle local](docs/GUIDE.fr-FR.md#api-de-contrôle-local) - Anglais, portugais, espagnol, allemand, français et russe diff --git a/README.md b/README.md index 1bbbdd7..aaea95b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Get **[1.6.2](https://github.com/lippdev/consolemode/releases/tag/v1.6.2)**, the On 1.5? The app offers the update and keeps your settings; you pick your controller shortcuts again the first time it opens. -Want to try what comes next before everyone else? Turn on Settings → "Receive test versions (alpha and beta)". +Want to try what comes next before everyone else? Turn on System → App → "Receive test versions (alpha and beta)". Windows 10 or 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) or the Xbox app. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) is optional, for the FPS limit and the FPS counter. @@ -32,7 +32,7 @@ Windows 10 or 11, plus [Steam](https://store.steampowered.com/) (Big Picture), [ Prefer the couch? With the app in the tray, hold your controller shortcut and it starts from there. -You pick the controller shortcuts yourself: none is on at first, the app asks the first time you open it (and you can change them in Settings). No button can serve two actions. +You pick the controller shortcuts yourself: none is on at first, the tour the app opens with shows where to set them (System → Controller). No button can serve two actions. | Controller shortcut | Does | Suggested | |---|---|---| @@ -49,7 +49,7 @@ You pick the controller shortcuts yourself: none is on at first, the app asks th - [Turns the TV on and switches it to the PC's input](docs/GUIDE.md#tv-control) (Google TV / Android TV over the network), and can put it in standby afterwards - Launches **Steam Big Picture**, **Playnite fullscreen** or **Xbox** mode, and sends Steam to the tray when you go back to the PC - **Session menu** over the game: switch or close the open windows, change volume, resolution, audio, FPS and HDR, hide the mouse pointer or drive it with the controller, and browse your files with [ControlFS](https://github.com/nextestudios/ControlFS) and the web with [JoyChromium](https://github.com/lippdev/joychromium) -- Two interfaces: **Desktop** (mouse) and **Console** (full screen, Xbox and PlayStation pads, LB/RB tabs, its own wallpaper or your Steam covers as the background) +- A console-style interface made for the TV that also works with the mouse and the keyboard (full screen, Xbox and PlayStation pads, LB/RB tabs, its own wallpaper or your Steam covers as the background), with a guided tour the first time you open it - Automation with `consolemode://start` / `stop` / `menu` links (Stream Deck, scripts) and a [local control API](docs/GUIDE.md#local-control-api) - English, Portuguese, Spanish, German, French and Russian @@ -84,7 +84,7 @@ All the details in the [release notes](https://github.com/lippdev/consolemode/re ## More - [Guide](docs/GUIDE.md): modes and restore, control API, HDR/VRR/FPS, troubleshooting, building from source -- **Feedback:** the button next to Settings in the app, or [this form](https://github.com/lippdev/consolemode/issues/new?template=feedback.yml). A ⭐ helps other couch gamers find the project. +- **Feedback:** System → Shortcut, help, and data → Send feedback in the app, or [this form](https://github.com/lippdev/consolemode/issues/new?template=feedback.yml). A ⭐ helps other couch gamers find the project. - **Translations:** fix a line or add your language with the [translation guide](docs/TRANSLATING.md); no Windows needed. - The releases are not code-signed yet, so Windows SmartScreen or an antivirus may warn about the download; the source is all here. diff --git a/README.pt-BR.md b/README.pt-BR.md index fb1213b..6054c9d 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -20,7 +20,7 @@ Baixe a **[1.6.2](https://github.com/lippdev/consolemode/releases/tag/v1.6.2)**, Está na 1.5? O app oferece a atualização e mantém as configurações; os atalhos do controle você escolhe de novo na primeira abertura. -Quer testar o que vem aí antes de todo mundo? Ligue Ajustes → "Receber versões de teste (alpha e beta)". +Quer testar o que vem aí antes de todo mundo? Ligue Sistema → App → "Receber versões de teste (alpha e beta)". Windows 10 ou 11, com [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) ou o app Xbox. O [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) é opcional, para o limite de FPS e o contador de FPS. @@ -32,7 +32,7 @@ Windows 10 ou 11, com [Steam](https://store.steampowered.com/) (Big Picture), [P Prefere o sofá? Com o app na bandeja, segure o seu atalho do controle e ele começa dali. -Os atalhos do controle são você quem escolhe: nenhum vem ligado, o app pergunta na primeira abertura (e dá para mudar em Ajustes). Nenhum botão pode servir para duas ações. +Os atalhos do controle são você quem escolhe: nenhum vem ligado, o tour da primeira abertura mostra onde escolhê-los (Sistema → Controle). Nenhum botão pode servir para duas ações. | Atalho no controle | Faz | Sugestão | |---|---|---| @@ -49,7 +49,7 @@ Os atalhos do controle são você quem escolhe: nenhum vem ligado, o app pergunt - [Liga a TV e troca para a entrada do PC](docs/GUIDE.pt-BR.md#controle-da-tv) (Google TV / Android TV pela rede), e pode colocá-la em espera no fim - Abre **Steam Big Picture**, **Playnite em tela cheia** ou o **Modo Xbox**, e manda a Steam para a bandeja ao voltar ao PC - **Menu da sessão** sobre o jogo: troque ou feche as janelas abertas, mude volume, resolução, áudio, FPS e HDR, esconda o cursor do mouse ou mova-o com o controle e navegue pelos seus arquivos com o [ControlFS](https://github.com/nextestudios/ControlFS) e pela web com o [JoyChromium](https://github.com/lippdev/joychromium) -- Duas interfaces: **Desktop** (mouse) e **Console** (tela cheia, controles Xbox e PlayStation, abas no LB/RB, um papel de parede próprio ou as capas da sua Steam como plano de fundo) +- Uma interface no estilo dos consoles, feita para a TV, que também funciona com mouse e teclado (tela cheia, controles Xbox e PlayStation, abas no LB/RB, um papel de parede próprio ou as capas da sua Steam como plano de fundo), com um tour guiado na primeira vez que você abre - Automação com os links `consolemode://start` / `stop` / `menu` (Stream Deck, scripts) e uma [API de controle local](docs/GUIDE.pt-BR.md#api-de-controle-local) - Português, inglês, espanhol, alemão, francês e russo @@ -84,7 +84,7 @@ Todos os detalhes nas [notas da versão](https://github.com/lippdev/consolemode/ ## Mais - [Guia](docs/GUIDE.pt-BR.md): modos e restauração, API de controle, HDR/VRR/FPS, solução de problemas, compilar -- **Feedback:** o botão ao lado de Ajustes no app, ou [este formulário](https://github.com/lippdev/consolemode/issues/new?template=feedback.yml). Uma ⭐ ajuda outros jogadores de sofá a encontrar o projeto. +- **Feedback:** Sistema → Atalho, ajuda e dados → Enviar feedback no app, ou [este formulário](https://github.com/lippdev/consolemode/issues/new?template=feedback.yml). Uma ⭐ ajuda outros jogadores de sofá a encontrar o projeto. - **Traduções:** corrija um texto ou traga o seu idioma pelo [guia de tradução](docs/TRANSLATING.md) (em inglês); não precisa de Windows. - As versões ainda não são assinadas, então o Windows SmartScreen ou um antivírus pode avisar sobre o download; o código está todo aqui. diff --git a/README.ru-RU.md b/README.ru-RU.md index a80e6c5..2bf835f 100644 --- a/README.ru-RU.md +++ b/README.ru-RU.md @@ -18,7 +18,7 @@ - **`ConsoleMode-Portable-x64.exe`**: один exe-файл, который хранит данные рядом с собой. - Или через winget: `winget install lippdev.ConsoleMode` -Хотите опробовать новинки раньше всех? Включите «Параметры» → «Получать тестовые версии (альфа и бета)». +Хотите опробовать новинки раньше всех? Включите «Система» → «Приложение» → «Получать тестовые версии (альфа и бета)». Windows 10 или 11, а также [Steam](https://store.steampowered.com/) (Big Picture), [Playnite](https://playnite.link/) или приложение Xbox. [RTSS](https://www.guru3d.com/files-details/rtss-rivatuner-statistics-server-download.html) необязателен: он нужен для ограничения FPS и счётчика FPS. @@ -30,7 +30,7 @@ Windows 10 или 11, а также [Steam](https://store.steampowered.com/) (Bi Предпочитаете диван? Когда приложение работает в области уведомлений, удерживайте сочетание на геймпаде, и режим запустится оттуда. -Сочетания на геймпаде вы выбираете сами: сначала ни одно не включено, приложение спросит о них при первом запуске (изменить их можно в «Параметрах»). Одна кнопка не может выполнять два действия. +Сочетания на геймпаде вы выбираете сами: сначала ни одно не включено, обзор при первом запуске покажет, где их задать («Система» → «Геймпад»). Одна кнопка не может выполнять два действия. | Сочетание на геймпаде | Что делает | Рекомендуем | |---|---|---| @@ -47,7 +47,7 @@ Windows 10 или 11, а также [Steam](https://store.steampowered.com/) (Bi - [Включает телевизор и переключает его на вход ПК](docs/GUIDE.ru-RU.md#управление-телевизором) (Google TV / Android TV по сети), а после может перевести его в режим ожидания - Запускает **Steam Big Picture**, **Playnite в полноэкранном режиме** или **режим Xbox** и сворачивает Steam в область уведомлений при возврате к ПК - **Меню сеанса** поверх игры: переключайтесь между открытыми окнами или закрывайте их, меняйте громкость, разрешение, звук, FPS и HDR, скрывайте указатель мыши или управляйте им с геймпада, просматривайте файлы через [ControlFS](https://github.com/nextestudios/ControlFS) и сайты через [JoyChromium](https://github.com/lippdev/joychromium) -- Два интерфейса: **«Рабочий стол»** (мышь) и **«Консоль»** (полный экран, геймпады Xbox и PlayStation, вкладки на LB/RB, собственный фоновый рисунок или обложки из Steam на фоне) +- Интерфейс в стиле консоли, сделанный для телевизора, который работает и с мышью и клавиатурой (полный экран, геймпады Xbox и PlayStation, вкладки на LB/RB, собственный фоновый рисунок или обложки из Steam на фоне), с обзором при первом запуске - Автоматизация через ссылки `consolemode://start` / `stop` / `menu` (Stream Deck, скрипты) и [локальный API управления](docs/GUIDE.ru-RU.md#локальный-api-управления) - Английский, португальский, испанский, немецкий, французский и русский diff --git a/docs/GUIDE.de-DE.md b/docs/GUIDE.de-DE.md index a4571dc..92de625 100644 --- a/docs/GUIDE.de-DE.md +++ b/docs/GUIDE.de-DE.md @@ -17,13 +17,15 @@ Wird die App mitten in einer Sitzung geschlossen oder geht der PC aus, stellt Co Du kannst auch jederzeit über den Infobereich wiederherstellen (*Konfiguration wiederherstellen* / *Fenster anzeigen*). Bei schwarzen Bildschirmen blendest du die Abdeckungen mit **ESC** aus. -Das Sitzungsmenü bietet zwei Wege hinaus. **Zurück zum PC** beendet die Sitzung und setzt Bildschirme, Auflösung, HDR, Ton und die FPS-Begrenzung auf den vorherigen Stand zurück; die App bleibt im Infobereich. **Console Mode beenden** macht dasselbe und schließt danach die App, sodass die Controller-Tastenkombinationen nicht mehr reagieren, bis du sie wieder öffnest. Beim ersten Öffnen bietet das Menü eine Führung an, die jede Option erklärt. Um sie später anzusehen, drücke im Menü **Y** (△ bei PlayStation) oder **F1**, oder verwende **Einstellungen → Führung durch das Sitzungsmenü**. +Das Sitzungsmenü bietet zwei Wege hinaus. **Zurück zum PC** beendet die Sitzung und setzt Bildschirme, Auflösung, HDR, Ton und die FPS-Begrenzung auf den vorherigen Stand zurück; die App bleibt im Infobereich. **Console Mode beenden** macht dasselbe und schließt danach die App, sodass die Controller-Tastenkombinationen nicht mehr reagieren, bis du sie wieder öffnest. Beim ersten Öffnen bietet das Menü eine Führung an, die jede Option erklärt. Um sie später anzusehen, drücke im Menü **Y** (△ bei PlayStation) oder **F1**, oder verwende **System → App → Führung durch das Sitzungsmenü**. -## Einstellungen im Konsolenmodus +## Die Oberfläche + +Console Mode hat eine einzige Oberfläche, gestaltet wie die einer Konsole: Sie füllt den Bildschirm und funktioniert mit einem Xbox- oder PlayStation-Controller, der Maus oder der Tastatur (klicke auf eine Registerkarte oder nutze Bild auf / Bild ab; Eingabe und Esc wirken wie A und B). Beim ersten Öffnen führt dich eine Tour durch die Registerkarten, die Launcher, die Spielen-Schaltfläche, die Bildschirme, die Schnelleinstellungen und die Controller-Tastenkombinationen; **A** geht weiter, **B** überspringt sie. Um sie erneut zu sehen: **System → App → Tutorial**. Unter **System → Controller** wählst du das Tastenlayout: **Automatisch**, **Xbox** oder **PlayStation**. Vorschau und Tastenbeschriftungen richten sich nach dieser Wahl, die beim Schließen der App gespeichert wird. Das ändert nur die angezeigten Symbole; die Eingaben des Controllers behalten ihre bisherige Belegung. -Die Registerkarte **System** bietet dieselben Einstellungen wie der Desktopmodus, darunter Controller-Tastenkombinationen, Playnite, Android TV, benutzerdefinierte FPS und den Datenordner. Beide Oberflächen teilen sich die gespeicherten Werte, die auch nach einem Neustart der App erhalten bleiben. +Die Registerkarte **System** enthält alle Einstellungen, darunter Controller-Tastenkombinationen, Playnite, Android TV, benutzerdefinierte FPS, das Layout des FPS-Zählers, die Argumente der eigenen App, den Diagnosebericht und den Datenordner. Die Werte bleiben auch nach einem Neustart der App erhalten. Öffne die Aktion, deren Tastenkombination du einrichten willst, wähle **Festlegen** oder **Ändern**, halte die gewünschte Kombination auf einem Controller gedrückt und lass die Tasten los. **Entfernen** deaktiviert diese Tastenkombination. Während der Aufnahme navigieren die Controller-Tasten nicht durch die Oberfläche; mit **Abbrechen** oder **Esc** beendest du die Aufnahme. Außerhalb der Aufnahme verlässt du den Editor mit **B**. Die Felder für Adresse und benutzerdefinierte FPS nehmen Tastatureingaben an. @@ -35,7 +37,7 @@ Ein Wechsel des Hauptbildschirms kann Windows dazu bringen, die Desktopsymbole n **PC mit dem Controller aufwecken** erlaubt dem Xbox Wireless Adapter, Bluetooth oder einem Controller am Kabel, den PC mit der mittleren Taste des Controllers aus dem Energiesparmodus zu wecken. **Einschalten** fragt Windows nach Administratorrechten und aktiviert bei diesen Geräten *Gerät kann den Computer aus dem Ruhezustand aktivieren*. Ein ausgeschalteter PC oder einer im Ruhezustand wacht nicht auf, und manche PCs schalten Bluetooth im Energiesparmodus ab. Zusammen mit **Beim Verbinden eines Controllers starten** wacht der PC direkt im Konsolenmodus auf. -**Profile pro Spiel** geben jedem Steam-Spiel eine eigene Auflösung, HDR, ein FPS-Limit und eine Audioausgabe. Öffne bei laufendem Spiel das Sitzungsmenü und wähle **Spielprofil → Aktuelle Einstellungen für … speichern**: Gespeichert wird, was der Spielbildschirm in diesem Moment nutzt. Wenn das Spiel das nächste Mal während einer Sitzung startet, wendet Console Mode das Profil an, und beim Schließen kehrt der Bildschirm in den vorherigen Zustand zurück. Das Spiel wird über Steam erkannt, egal ob es aus Big Picture, Playnite oder der Xbox-App gestartet wurde. Die gespeicherten Profile stehen unter Einstellungen → **Profile pro Spiel** und lassen sich dort löschen (in der Konsolenoberfläche: System → Beim Starten des Konsolenmodus). +**Profile pro Spiel** geben jedem Steam-Spiel eine eigene Auflösung, HDR, ein FPS-Limit und eine Audioausgabe. Öffne bei laufendem Spiel das Sitzungsmenü und wähle **Spielprofil → Aktuelle Einstellungen für … speichern**: Gespeichert wird, was der Spielbildschirm in diesem Moment nutzt. Wenn das Spiel das nächste Mal während einer Sitzung startet, wendet Console Mode das Profil an, und beim Schließen kehrt der Bildschirm in den vorherigen Zustand zurück. Das Spiel wird über Steam erkannt, egal ob es aus Big Picture, Playnite oder der Xbox-App gestartet wurde. Die gespeicherten Profile stehen unter System → Beim Starten des Konsolenmodus → **Profile pro Spiel** und lassen sich dort löschen. ## Lokale Steuerungs-API @@ -50,7 +52,7 @@ Ein Wechsel des Hauptbildschirms kann Windows dazu bringen, die Desktopsymbole n ## Fernsehersteuerung -Unter Einstellungen → **Fernseher** kann die App beim Start des Konsolenmodus den Fernseher einschalten und auf den HDMI-Eingang des PCs wechseln und ihn optional wieder in den Standby versetzen, nachdem der Schreibtisch wiederhergestellt ist. Ein Fernseher, der nicht antwortet, blockiert den Konsolenmodus nie: Die App protokolliert das und wartet wie gewohnt auf den Spielbildschirm. +Unter System → **Fernseher** kann die App beim Start des Konsolenmodus den Fernseher einschalten und auf den HDMI-Eingang des PCs wechseln und ihn optional wieder in den Standby versetzen, nachdem der Schreibtisch wiederhergestellt ist. Ein Fernseher, der nicht antwortet, blockiert den Konsolenmodus nie: Die App protokolliert das und wartet wie gewohnt auf den Spielbildschirm. Mit der Voreinstellung **Nicht steuern** wird nichts gesendet und Start und Wiederherstellung dauern nicht länger. Ist ein Weg ausgewählt, läuft der Fernseher-Schritt beim Start des Konsolenmodus zuerst und ist auf **30 Sekunden** begrenzt (der schlimmste Fall, wenn der Fernseher nicht antwortet und Wake-on-LAN versucht wird); der optionale Standby bei der Wiederherstellung ist auf **15 Sekunden** begrenzt. Ein Fernseher, der schon an ist, antwortet meist in ein bis zwei Sekunden. @@ -104,7 +106,7 @@ Prüfe vor dem Start des Konsolenmodus, ob der Zielausgang angeschlossen und in ### Der Controller wird erkannt, tut aber nichts (DualSense / DualShock) -Öffne **Einstellungen → Controller testen**: Dort siehst du live, was Windows von jedem Controller empfängt. Bleibt die Anzeige leer, während du Tasten drückst, fängt höchstwahrscheinlich Steam den Controller ab (läuft Steam mit PlayStation-Unterstützung in Steam Input, macht es ihn auf dem Desktop zu Tastatur/Maus). Schließe Steam oder schalte die PlayStation-Unterstützung in Steam Input aus und teste erneut. Zeigt die Anzeige immer noch nichts, verwende **Diagnosedaten kopieren** und füge sie in das Feedbackformular ein. +Öffne **System → Tastenkombination, Hilfe und Daten → Controller testen**: Dort siehst du live, was Windows von jedem Controller empfängt. Bleibt die Anzeige leer, während du Tasten drückst, fängt höchstwahrscheinlich Steam den Controller ab (läuft Steam mit PlayStation-Unterstützung in Steam Input, macht es ihn auf dem Desktop zu Tastatur/Maus). Schließe Steam oder schalte die PlayStation-Unterstützung in Steam Input aus und teste erneut. Zeigt die Anzeige immer noch nichts, verwende **Diagnosedaten kopieren** und füge sie in das Feedbackformular ein. ### HDR oder VRR hat sich nicht geändert diff --git a/docs/GUIDE.es-ES.md b/docs/GUIDE.es-ES.md index 319bfa0..cbc905d 100644 --- a/docs/GUIDE.es-ES.md +++ b/docs/GUIDE.es-ES.md @@ -17,13 +17,15 @@ Si la aplicación se cierra o el PC se apaga en medio de una sesión, la próxim También puedes restaurar en cualquier momento desde la bandeja (*Restaurar pantallas* / *Mostrar ventana*). Con las pantallas negras, **ESC** quita las cortinas. -El menú de la sesión tiene dos salidas. **Volver al PC** termina la sesión y devuelve pantallas, resolución, HDR, audio y límite de FPS a como estaban; la aplicación sigue en la bandeja. **Salir de Console Mode** hace lo mismo y además cierra la aplicación, así que los atajos del mando dejan de funcionar hasta que la vuelvas a abrir. La primera vez que se abre el menú, ofrece un recorrido que explica cada opción; para verlo más tarde, pulsa **Y** (△ en PlayStation) o **F1** en el menú, o usa **Ajustes → Recorrido del menú de sesión**. +El menú de la sesión tiene dos salidas. **Volver al PC** termina la sesión y devuelve pantallas, resolución, HDR, audio y límite de FPS a como estaban; la aplicación sigue en la bandeja. **Salir de Console Mode** hace lo mismo y además cierra la aplicación, así que los atajos del mando dejan de funcionar hasta que la vuelvas a abrir. La primera vez que se abre el menú, ofrece un recorrido que explica cada opción; para verlo más tarde, pulsa **Y** (△ en PlayStation) o **F1** en el menú, o usa **Sistema → Aplicación → Recorrido del menú de sesión**. -## Ajustes en la interfaz Consola +## La interfaz + +Console Mode tiene una sola interfaz, hecha como la de una consola: ocupa toda la pantalla y funciona con un mando de Xbox o PlayStation, el ratón o el teclado (haz clic en una pestaña o usa Re Pág / Av Pág; Intro y Esc hacen de A y B). La primera vez que la abres, un recorrido guiado pasa por las pestañas, los lanzadores, el botón de jugar, las pantallas, los ajustes rápidos y los atajos del mando; **A** avanza y **B** lo salta. Para volver a verlo: **Sistema → Aplicación → Tutorial**. En **Sistema → Mando**, elige el diseño de botones: **Automático**, **Xbox** o **PlayStation**. La vista previa y las etiquetas de los atajos siguen esa elección, que se guarda al cerrar la aplicación. Esto solo cambia los símbolos que se muestran; las entradas del mando mantienen su asignación. -La pestaña **Sistema** ofrece los mismos ajustes que la interfaz Escritorio, incluidos los atajos del mando, Playnite, Android TV, el FPS personalizado y la carpeta de datos. Las dos interfaces comparten los valores guardados, que se mantienen al reiniciar la aplicación. +La pestaña **Sistema** reúne todos los ajustes, incluidos los atajos del mando, Playnite, Android TV, el FPS personalizado, el diseño del contador de FPS, los argumentos de la aplicación personalizada, el informe de diagnóstico y la carpeta de datos. Los valores se mantienen al reiniciar la aplicación. Abre la acción del atajo que quieras configurar, elige **Definir** o **Cambiar**, mantén la combinación deseada en un mando y suelta los botones. **Quitar** desactiva ese atajo. Durante la captura, los botones del mando no navegan por la interfaz; usa **Cancelar** o **Esc** para detener la captura. Fuera de la captura, **B** sale del editor. Los campos de dirección y de FPS personalizado aceptan el teclado. @@ -35,7 +37,7 @@ Cambiar la pantalla principal puede hacer que Windows reordene los iconos del es **Despertar el PC con el mando** permite que el adaptador inalámbrico Xbox, el Bluetooth o un mando con cable despierten el PC de la suspensión con el botón central del mando. **Activar** pide permiso de administrador a Windows y marca *Permitir que este dispositivo reactive el equipo* en esos dispositivos. No despierta un PC apagado o en hibernación, y algunos PC cortan la energía del Bluetooth al suspender. Junto con **Entrar al conectar un mando**, el PC despierta directamente en modo consola. -Los **perfiles por juego** dan a cada juego de Steam su propia resolución, HDR, límite de FPS y salida de audio. Con el juego en marcha, abre el menú de la sesión y elige **Perfil del juego → Guardar los ajustes actuales para…**: se guarda lo que usa la pantalla de juego en ese momento. La próxima vez que ese juego se abra durante una sesión, Console Mode aplica el perfil y, cuando el juego se cierra, la pantalla vuelve a estar como antes. El juego se detecta a través de Steam, tanto si se abre desde Big Picture como desde Playnite o la aplicación Xbox. Los perfiles guardados aparecen en Ajustes → **Perfiles por juego**, donde puedes borrarlos (en la interfaz Consola: Sistema → Al entrar en modo consola). +Los **perfiles por juego** dan a cada juego de Steam su propia resolución, HDR, límite de FPS y salida de audio. Con el juego en marcha, abre el menú de la sesión y elige **Perfil del juego → Guardar los ajustes actuales para…**: se guarda lo que usa la pantalla de juego en ese momento. La próxima vez que ese juego se abra durante una sesión, Console Mode aplica el perfil y, cuando el juego se cierra, la pantalla vuelve a estar como antes. El juego se detecta a través de Steam, tanto si se abre desde Big Picture como desde Playnite o la aplicación Xbox. Los perfiles guardados aparecen en Sistema → Al entrar en modo consola → **Perfiles por juego**, donde puedes borrarlos. ## API de control local @@ -50,7 +52,7 @@ Los enlaces `consolemode://` se lanzan sin esperar respuesta. Las herramientas q ## Control de la TV -Ajustes → **TV** puede encender la TV y cambiarla a la entrada HDMI del PC cuando empieza el modo consola, y, si quieres, volver a ponerla en reposo cuando se restaura el escritorio. Una TV que no responde nunca bloquea el modo consola: la aplicación lo anota en el registro y espera a la pantalla de juego como siempre. +Sistema → **TV** puede encender la TV y cambiarla a la entrada HDMI del PC cuando empieza el modo consola, y, si quieres, volver a ponerla en reposo cuando se restaura el escritorio. Una TV que no responde nunca bloquea el modo consola: la aplicación lo anota en el registro y espera a la pantalla de juego como siempre. Con la opción predeterminada, **No controlarla**, no se envía nada y no se añade nada al inicio ni a la restauración. Con una ruta elegida, el paso de la TV va primero cuando empieza el modo consola y dura como máximo **30 segundos** (el peor caso, cuando la TV no responde y se prueba Wake-on-LAN); el reposo opcional al restaurar dura como máximo **15 segundos**. Una TV que ya está encendida suele responder en uno o dos segundos. @@ -104,7 +106,7 @@ Comprueba que la salida de destino está conectada y disponible en Windows antes ### El mando aparece pero no hace nada (DualSense / DualShock) -Abre **Ajustes → Probar mando**: muestra en directo lo que Windows recibe de cada mando. Si la lectura sigue vacía mientras pulsas botones, lo más probable es que Steam esté capturando el mando (Steam abierto con la compatibilidad con PlayStation de Steam Input activada lo convierte en teclado y ratón en el escritorio). Cierra Steam, o desactiva la compatibilidad con PlayStation en Steam Input, y vuelve a probar. Si la lectura sigue sin mostrar nada, usa **Copiar diagnóstico** y pégalo en el formulario de comentarios. +Abre **Sistema → Acceso directo, ayuda y datos → Probar mando**: muestra en directo lo que Windows recibe de cada mando. Si la lectura sigue vacía mientras pulsas botones, lo más probable es que Steam esté capturando el mando (Steam abierto con la compatibilidad con PlayStation de Steam Input activada lo convierte en teclado y ratón en el escritorio). Cierra Steam, o desactiva la compatibilidad con PlayStation en Steam Input, y vuelve a probar. Si la lectura sigue sin mostrar nada, usa **Copiar diagnóstico** y pégalo en el formulario de comentarios. ### El HDR o el VRR no cambiaron diff --git a/docs/GUIDE.fr-FR.md b/docs/GUIDE.fr-FR.md index 1c910d8..82d7e2c 100644 --- a/docs/GUIDE.fr-FR.md +++ b/docs/GUIDE.fr-FR.md @@ -17,13 +17,15 @@ Si l'application se ferme ou si le PC s'éteint en pleine session, Console Mode Vous pouvez aussi restaurer à tout moment depuis la zone de notification (*Restaurer la configuration* / *Afficher la fenêtre*). Avec les écrans noirs, **Échap** retire les rideaux. -Le menu de session propose deux sorties. **Retour au PC** termine la session et remet les écrans, la résolution, le HDR, le son et la limite de FPS comme avant ; l'application reste dans la zone de notification. **Quitter Console Mode** fait la même chose puis ferme l'application : les raccourcis manette ne fonctionnent plus jusqu'à ce que vous la rouvriez. À la première ouverture, le menu propose une visite qui explique chaque option ; pour la revoir plus tard, appuyez sur **Y** (△ sur PlayStation) ou **F1** dans le menu, ou utilisez **Paramètres → Visite du menu de session**. +Le menu de session propose deux sorties. **Retour au PC** termine la session et remet les écrans, la résolution, le HDR, le son et la limite de FPS comme avant ; l'application reste dans la zone de notification. **Quitter Console Mode** fait la même chose puis ferme l'application : les raccourcis manette ne fonctionnent plus jusqu'à ce que vous la rouvriez. À la première ouverture, le menu propose une visite qui explique chaque option ; pour la revoir plus tard, appuyez sur **Y** (△ sur PlayStation) ou **F1** dans le menu, ou utilisez **Système → Application → Visite du menu de session**. -## Paramètres en mode console +## L'interface + +Console Mode a une seule interface, conçue comme celle d'une console : elle occupe tout l'écran et marche avec une manette Xbox ou PlayStation, la souris ou le clavier (cliquez sur un onglet ou utilisez Page précédente / Page suivante ; Entrée et Échap font office de A et B). À la première ouverture, une visite guidée passe par les onglets, les lanceurs, le bouton Jouer, les écrans, les réglages rapides et les raccourcis manette ; **A** avance, **B** la passe. Pour la revoir : **Système → Application → Tutoriel**. Dans **Système → Manette**, choisissez la disposition des boutons : **Automatique**, **Xbox** ou **PlayStation**. L'aperçu et les libellés des raccourcis suivent ce choix, qui est enregistré à la fermeture de l'application. Seuls les symboles affichés changent ; les entrées de la manette gardent leur correspondance actuelle. -L'onglet **Système** offre les mêmes paramètres que le mode Bureau, y compris les raccourcis manette, Playnite, Android TV, les FPS personnalisés et le dossier de données. Les deux interfaces partagent les valeurs enregistrées, qui sont conservées après un redémarrage de l'application. +L'onglet **Système** réunit tous les réglages, y compris les raccourcis manette, Playnite, Android TV, les FPS personnalisés, la disposition du compteur d'IPS, les arguments de l'application personnalisée, le rapport de diagnostic et le dossier de données. Les valeurs sont conservées après un redémarrage de l'application. Ouvrez l'action de raccourci à configurer, choisissez **Définir** ou **Modifier**, maintenez la combinaison voulue sur une manette, puis relâchez les boutons. **Supprimer** désactive ce raccourci. Pendant la capture, les boutons de la manette ne naviguent pas dans l'interface ; utilisez **Annuler** ou **Échap** pour arrêter la capture. Hors capture, **B** quitte l'éditeur. Les champs d'adresse et de FPS personnalisés acceptent la saisie au clavier. @@ -35,7 +37,7 @@ Changer d'écran principal peut amener Windows à mélanger les icônes du burea **Réveiller le PC avec la manette** permet à l'adaptateur sans fil Xbox, au Bluetooth ou à une manette filaire de sortir le PC de la veille avec le bouton central de la manette. **Activer** demande l'autorisation d'administrateur à Windows et coche *Autoriser ce périphérique à sortir l'ordinateur du mode veille* sur ces périphériques. Un PC éteint ou en veille prolongée ne se réveille pas, et certains PC coupent le Bluetooth pendant la veille. Avec **Entrer à la connexion d'une manette**, le PC se réveille directement en mode console. -Les **profils par jeu** donnent à chaque jeu Steam sa propre résolution, son HDR, sa limite de FPS et sa sortie audio. Pendant que le jeu tourne, ouvrez le menu de la session et choisissez **Profil du jeu → Enregistrer les réglages actuels pour…** : ce qu'utilise l'écran de jeu à ce moment-là est enregistré. La prochaine fois que ce jeu démarre pendant une session, Console Mode applique le profil et, quand le jeu se ferme, l'écran revient à son état précédent. Le jeu est détecté via Steam, qu'il soit lancé depuis Big Picture, Playnite ou l'application Xbox. Les profils enregistrés sont listés dans Paramètres → **Profils par jeu**, où vous pouvez les supprimer (dans l'interface Console : Système → À l'entrée en mode console). +Les **profils par jeu** donnent à chaque jeu Steam sa propre résolution, son HDR, sa limite de FPS et sa sortie audio. Pendant que le jeu tourne, ouvrez le menu de la session et choisissez **Profil du jeu → Enregistrer les réglages actuels pour…** : ce qu'utilise l'écran de jeu à ce moment-là est enregistré. La prochaine fois que ce jeu démarre pendant une session, Console Mode applique le profil et, quand le jeu se ferme, l'écran revient à son état précédent. Le jeu est détecté via Steam, qu'il soit lancé depuis Big Picture, Playnite ou l'application Xbox. Les profils enregistrés sont listés dans Système → À l'entrée en mode console → **Profils par jeu**, où vous pouvez les supprimer. ## API de contrôle local @@ -50,7 +52,7 @@ Les liens `consolemode://` s'envoient sans attendre de réponse. Les outils qui ## Contrôle de la TV -Paramètres → **TV** peut allumer la TV et la basculer sur l'entrée HDMI du PC au démarrage du mode console, et en option la remettre en veille une fois le bureau restauré. Une TV qui ne répond pas ne bloque jamais le mode console : l'application le note dans le journal et attend l'écran de jeu comme d'habitude. +Système → **TV** peut allumer la TV et la basculer sur l'entrée HDMI du PC au démarrage du mode console, et en option la remettre en veille une fois le bureau restauré. Une TV qui ne répond pas ne bloque jamais le mode console : l'application le note dans le journal et attend l'écran de jeu comme d'habitude. Avec la valeur par défaut, **Ne pas la contrôler**, rien n'est envoyé et rien ne s'ajoute au démarrage ni à la restauration. Avec une méthode choisie, l'étape TV s'exécute en premier au démarrage du mode console et dure au plus **30 secondes** (le pire cas, quand la TV ne répond pas et que le Wake-on-LAN est tenté) ; la mise en veille facultative à la restauration dure au plus **15 secondes**. Une TV déjà allumée répond en général en une ou deux secondes. @@ -104,7 +106,7 @@ Vérifiez que la sortie cible est branchée et disponible dans Windows avant de ### La manette est détectée mais ne fait rien (DualSense / DualShock) -Ouvrez **Paramètres → Tester la manette** : la lecture en direct montre ce que Windows reçoit de chaque manette. Si elle reste vide quand vous appuyez sur les boutons, c'est très probablement Steam qui capture la manette (Steam lancé avec la prise en charge PlayStation activée dans Steam Input la transforme en clavier/souris sur le bureau). Fermez Steam, ou désactivez la prise en charge PlayStation dans Steam Input, puis testez à nouveau. Si la lecture n'affiche toujours rien, utilisez **Copier le diagnostic** et collez-le dans le formulaire de commentaires. +Ouvrez **Système → Raccourci, aide et données → Tester la manette** : la lecture en direct montre ce que Windows reçoit de chaque manette. Si elle reste vide quand vous appuyez sur les boutons, c'est très probablement Steam qui capture la manette (Steam lancé avec la prise en charge PlayStation activée dans Steam Input la transforme en clavier/souris sur le bureau). Fermez Steam, ou désactivez la prise en charge PlayStation dans Steam Input, puis testez à nouveau. Si la lecture n'affiche toujours rien, utilisez **Copier le diagnostic** et collez-le dans le formulaire de commentaires. ### Le HDR ou le VRR n'a pas changé diff --git a/docs/GUIDE.md b/docs/GUIDE.md index f339cc9..30f4c34 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -21,9 +21,11 @@ If the app closes or the PC shuts down in the middle of a session, the next time You can also restore anytime from the tray (*Restore setup* / *Show window*). With black overlays, **ESC** dismisses the curtains. -The session menu has two ways out. **Back to the PC** ends the session and puts screens, resolution, HDR, audio and the FPS limit back as they were; the app stays in the tray. **Exit Console Mode** does the same and then closes the app, so the controller shortcuts stop until you open it again. The first time the menu opens, it offers a tour that explains each option; to see it later, press **Y** (△ on PlayStation) or **F1** in the menu, or use **Settings → Session menu tour**. +The session menu has two ways out. **Back to the PC** ends the session and puts screens, resolution, HDR, audio and the FPS limit back as they were; the app stays in the tray. **Exit Console Mode** does the same and then closes the app, so the controller shortcuts stop until you open it again. The first time the menu opens, it offers a tour that explains each option; to see it later, press **Y** (△ on PlayStation) or **F1** in the menu, or use **System → App → Session menu tour**. -## Settings in Console mode +## The interface + +Console Mode has one interface, made like a console's: it fills the screen and works with an Xbox or PlayStation controller, the mouse or the keyboard (click a tab or use Page Up / Page Down; Enter and Esc work as A and B). The first time you open it, a guided tour walks through the tabs, the launchers, the play button, the screens, the quick settings and the controller shortcuts; **A** goes on, **B** skips it. To see it again: **System → App → Tutorial**. **Home** puts your launchers in a row at the top (Steam Big Picture, Playnite, Xbox mode): **A** on one picks what opens, and **Play now** below starts it. The line under the name says where you will play and what changes (audio, resolution, FPS, HDR, VRR); the round button next to Play now opens **Session**, with the screens and quick settings. @@ -31,7 +33,7 @@ The **System** tab lists its categories on the left (Gaming display, When enteri In **System → Controller**, choose the button layout: **Automatic**, **Xbox** or **PlayStation**. The preview and shortcut labels follow the choice, which is saved when you close the app. This changes the displayed symbols; the controller's inputs keep their existing mapping. -The **System** tab provides the same settings as desktop mode, including controller shortcuts, Playnite, Android TV, custom FPS and the data folder. Both interfaces share the saved values, which remain after restarting the app. +The **System** tab holds every setting, including controller shortcuts, Playnite, Android TV, custom FPS, the FPS counter's layout, the custom app's arguments, the diagnostics report and the data folder. The values stay saved after restarting the app. Open the shortcut action you want to configure, choose **Set** or **Change**, hold the desired combination on one controller and release the buttons. **Remove** disables that shortcut. During capture, controller buttons do not navigate the interface; use **Cancel** or **Esc** to stop capture. Outside capture, **B** leaves the editor. Address and custom FPS fields accept keyboard input. @@ -43,7 +45,7 @@ Changing the main display can make Windows reshuffle the desktop icons. **Put de **Wake the PC with the controller** lets the Xbox Wireless Adapter, the Bluetooth radio or a wired controller wake the PC from sleep with the controller's center button. **Turn on** asks Windows for administrator permission and ticks *Allow this device to wake the computer* on those devices. It can't wake a PC that is shut down or hibernating, and some PCs cut power to Bluetooth while asleep. Together with **Enter when a controller connects**, the PC wakes straight into console mode. -**Per-game profiles** give each Steam game its own resolution, HDR, FPS limit and audio output. With the game running, open the session menu and pick **Game profile → Save the current settings for…**: whatever the game screen uses at that moment is saved. Next time that game starts during a session, Console Mode applies it, and when the game closes the screen goes back to how it was. The game is detected from Steam, whether it was opened from Big Picture, Playnite or the Xbox app. The saved profiles are listed in Settings → **Per-game profiles**, where you can delete them (in the Console interface: System → When entering console mode). +**Per-game profiles** give each Steam game its own resolution, HDR, FPS limit and audio output. With the game running, open the session menu and pick **Game profile → Save the current settings for…**: whatever the game screen uses at that moment is saved. Next time that game starts during a session, Console Mode applies it, and when the game closes the screen goes back to how it was. The game is detected from Steam, whether it was opened from Big Picture, Playnite or the Xbox app. The saved profiles are listed in System → When entering console mode → **Per-game profiles**, where you can delete them. ## Local control API @@ -58,7 +60,7 @@ Changing the main display can make Windows reshuffle the desktop icons. **Put de ## TV control -Settings → **TV** can turn the TV on and switch it to the PC's HDMI input when console mode starts, and optionally put it back in standby after the desk is restored. A TV that doesn't answer never blocks console mode: the app logs it and waits for the game screen as usual. +System → **TV** can turn the TV on and switch it to the PC's HDMI input when console mode starts, and optionally put it back in standby after the desk is restored. A TV that doesn't answer never blocks console mode: the app logs it and waits for the game screen as usual. With the default, **Don't control it**, nothing is sent and nothing is added to starting or restoring. With a route selected, the TV step runs first when console mode starts and is capped at **30 seconds** (the worst case, when the TV doesn't answer and Wake-on-LAN is tried); the optional standby on restore is capped at **15 seconds**. A TV that is already on usually answers in about a second or two. @@ -112,7 +114,7 @@ Check that the target output is connected and available in Windows before starti ### The controller shows up but does nothing (DualSense / DualShock) -Open **Settings → Test controller**: it shows live what Windows delivers from each pad. If the reading stays empty while you press buttons, Steam is most likely capturing the pad (Steam running with PlayStation support in Steam Input turns it into keyboard/mouse on the desktop). Close Steam, or turn off PlayStation support in Steam Input, and test again. If the reading still shows nothing, use **Copy diagnostics** and paste it into the feedback form. +Open **System → Shortcut, help, and data → Test controller**: it shows live what Windows delivers from each pad. If the reading stays empty while you press buttons, Steam is most likely capturing the pad (Steam running with PlayStation support in Steam Input turns it into keyboard/mouse on the desktop). Close Steam, or turn off PlayStation support in Steam Input, and test again. If the reading still shows nothing, use **Copy diagnostics** and paste it into the feedback form. ### HDR or VRR did not change diff --git a/docs/GUIDE.pt-BR.md b/docs/GUIDE.pt-BR.md index 360c283..f49e3dd 100644 --- a/docs/GUIDE.pt-BR.md +++ b/docs/GUIDE.pt-BR.md @@ -21,9 +21,11 @@ Se o app fechar ou o PC desligar no meio de uma sessão, na próxima vez que o C Também dá para restaurar a qualquer momento pela bandeja (*Restaurar setup* / *Mostrar janela*). Com cortinas pretas, **ESC** remove o overlay. -No menu da sessão há duas saídas. **Voltar ao PC** encerra a sessão e devolve telas, resolução, HDR, áudio e limite de FPS ao que eram; o app continua na bandeja. **Sair do Console Mode** faz o mesmo e depois fecha o app, então os atalhos do controle param até você abri-lo de novo. Na primeira vez que o menu abre, ele oferece um tour que explica cada opção; para vê-lo depois, aperte **Y** (△ no PlayStation) ou **F1** no menu, ou use **Ajustes → Tour do menu da sessão**. +No menu da sessão há duas saídas. **Voltar ao PC** encerra a sessão e devolve telas, resolução, HDR, áudio e limite de FPS ao que eram; o app continua na bandeja. **Sair do Console Mode** faz o mesmo e depois fecha o app, então os atalhos do controle param até você abri-lo de novo. Na primeira vez que o menu abre, ele oferece um tour que explica cada opção; para vê-lo depois, aperte **Y** (△ no PlayStation) ou **F1** no menu, ou use **Sistema → App → Tour do menu da sessão**. -## Configurações no modo Console +## A interface + +O Console Mode tem uma interface só, feita como a de um console: ocupa a tela toda e funciona com controle Xbox ou PlayStation, mouse ou teclado (clique numa aba ou use Page Up / Page Down; Enter e Esc fazem o papel de A e B). Na primeira vez que você abre, um tour guiado passa pelas abas, pelos iniciadores, pelo botão de jogar, pelas telas, pelos ajustes rápidos e pelos atalhos do controle; **A** avança e **B** pula. Para ver de novo: **Sistema → App → Tutorial**. O **Início** mostra os seus iniciadores numa fileira no topo (Steam Big Picture, Playnite, modo Xbox): **A** num deles escolhe o que abre, e **Jogar agora** logo abaixo começa. A linha embaixo do nome diz onde você vai jogar e o que muda (áudio, resolução, FPS, HDR, VRR); o botão redondo ao lado de Jogar agora abre a **Sessão**, com as telas e os ajustes rápidos. @@ -31,7 +33,7 @@ A aba **Sistema** lista as categorias à esquerda (Tela de jogo, Ao entrar no mo Em **Sistema → Controle**, escolha o layout dos botões: **Automático**, **Xbox** ou **PlayStation**. A prévia e os nomes dos atalhos acompanham a escolha, que fica salva ao fechar o app. Isso muda os símbolos exibidos; as entradas do controle mantêm o mapeamento existente. -A aba **Sistema** oferece os mesmos ajustes do modo PC, incluindo os atalhos do controle, Playnite, Android TV, FPS personalizado e pasta de dados. Os valores são compartilhados entre as duas interfaces e permanecem salvos ao reabrir o app. +A aba **Sistema** reúne todos os ajustes, incluindo os atalhos do controle, Playnite, Android TV, FPS personalizado, o layout do contador de FPS, os argumentos do aplicativo personalizado, o relatório de diagnóstico e a pasta de dados. Os valores permanecem salvos ao reabrir o app. Abra a ação de atalho que deseja configurar, escolha **Definir** ou **Alterar**, segure a combinação desejada em um único controle e solte os botões. **Remover** desativa aquele atalho. Durante a captura, os botões não navegam pela interface; use **Cancelar** ou **Esc** para interrompê-la. Fora da captura, **B** volta do editor. Campos de endereço e FPS personalizado aceitam digitação por teclado. @@ -43,7 +45,7 @@ Trocar a tela principal pode fazer o Windows embaralhar os ícones da área de t **Acordar o PC pelo controle** deixa o adaptador sem fio Xbox, o Bluetooth ou o controle no cabo acordarem o PC da suspensão pelo botão central do controle. **Ativar** pede permissão de administrador ao Windows e marca *Permitir que este dispositivo ative o computador* nesses dispositivos. Não acorda o PC desligado ou em hibernação, e alguns PCs cortam a energia do Bluetooth ao suspender. Junto com **Entrar ao conectar um controle**, o PC já acorda no modo console. -**Perfis por jogo** dão a cada jogo da Steam sua própria resolução, HDR, limite de FPS e saída de áudio. Com o jogo rodando, abra o menu da sessão e escolha **Perfil do jogo → Salvar os ajustes atuais para…**: o que a tela de jogo usa naquele momento fica salvo. Da próxima vez que esse jogo abrir durante uma sessão, o Console Mode aplica o perfil e, quando o jogo fecha, a tela volta a ser como era. O jogo é detectado pela Steam, seja ele aberto pelo Big Picture, pelo Playnite ou pelo app Xbox. Os perfis salvos ficam em Ajustes → **Perfis por jogo**, onde dá para apagá-los (na interface Console: Sistema → Ao entrar no modo console). +**Perfis por jogo** dão a cada jogo da Steam sua própria resolução, HDR, limite de FPS e saída de áudio. Com o jogo rodando, abra o menu da sessão e escolha **Perfil do jogo → Salvar os ajustes atuais para…**: o que a tela de jogo usa naquele momento fica salvo. Da próxima vez que esse jogo abrir durante uma sessão, o Console Mode aplica o perfil e, quando o jogo fecha, a tela volta a ser como era. O jogo é detectado pela Steam, seja ele aberto pelo Big Picture, pelo Playnite ou pelo app Xbox. Os perfis salvos ficam em Sistema → Ao entrar no modo console → **Perfis por jogo**, onde dá para apagá-los. ## API de controle local @@ -58,7 +60,7 @@ Os links `consolemode://` não dão resposta. Ferramentas que precisam de uma ## Controle da TV -Ajustes → **TV** pode ligar a TV e trocar para a entrada HDMI do PC quando o modo console começa e, se você quiser, colocá-la em espera depois que a mesa volta. Uma TV que não responde nunca trava o modo console: o app registra no log e espera a tela de jogo como sempre. +Sistema → **TV** pode ligar a TV e trocar para a entrada HDMI do PC quando o modo console começa e, se você quiser, colocá-la em espera depois que a mesa volta. Uma TV que não responde nunca trava o modo console: o app registra no log e espera a tela de jogo como sempre. Com o padrão, **Não controlar**, nada é enviado e nada é acrescentado ao iniciar nem ao restaurar. Com um caminho escolhido, a etapa da TV roda primeiro quando o modo console começa e tem limite de **30 segundos** (o pior caso, quando a TV não responde e o Wake-on-LAN é tentado); a espera opcional ao restaurar tem limite de **15 segundos**. Uma TV que já está ligada costuma responder em um ou dois segundos. @@ -112,7 +114,7 @@ Confira se a saída de destino está conectada e disponível no Windows antes de ### O controle aparece mas não faz nada (DualSense / DualShock) -Abra **Ajustes → Testar controle**: ele mostra ao vivo o que o Windows entrega de cada controle. Se a leitura fica vazia enquanto você aperta botões, quase sempre é o Steam capturando o controle (Steam aberto com suporte a PlayStation no Steam Input vira teclado/mouse no desktop). Feche o Steam, ou desligue o suporte a PlayStation no Steam Input, e teste de novo. Se continuar vazio, use **Copiar diagnóstico** e cole no formulário de feedback. +Abra **Sistema → Atalho, ajuda e dados → Testar controle**: ele mostra ao vivo o que o Windows entrega de cada controle. Se a leitura fica vazia enquanto você aperta botões, quase sempre é o Steam capturando o controle (Steam aberto com suporte a PlayStation no Steam Input vira teclado/mouse no desktop). Feche o Steam, ou desligue o suporte a PlayStation no Steam Input, e teste de novo. Se continuar vazio, use **Copiar diagnóstico** e cole no formulário de feedback. ### HDR ou VRR não mudaram diff --git a/docs/GUIDE.ru-RU.md b/docs/GUIDE.ru-RU.md index af33822..2a7d37c 100644 --- a/docs/GUIDE.ru-RU.md +++ b/docs/GUIDE.ru-RU.md @@ -17,13 +17,15 @@ Восстановить конфигурацию можно в любой момент из области уведомлений (*«Восстановить конфигурацию»* / *«Показать окно»*). Если экраны закрыты чёрным экраном, **ESC** убирает затемнение. -Из меню сеанса есть два выхода. **«Вернуться к ПК»** завершает сеанс и возвращает экраны, разрешение, HDR, звук и ограничение FPS в прежнее состояние; приложение остаётся в области уведомлений. **«Выйти из Console Mode»** делает то же самое, а затем закрывает приложение, поэтому сочетания на геймпаде не работают, пока вы не откроете его снова. При первом открытии меню предлагает обзор, который объясняет каждый пункт; чтобы посмотреть его позже, нажмите в меню **Y** (△ на PlayStation) или **F1** либо используйте **«Параметры» → «Обзор меню сеанса»**. +Из меню сеанса есть два выхода. **«Вернуться к ПК»** завершает сеанс и возвращает экраны, разрешение, HDR, звук и ограничение FPS в прежнее состояние; приложение остаётся в области уведомлений. **«Выйти из Console Mode»** делает то же самое, а затем закрывает приложение, поэтому сочетания на геймпаде не работают, пока вы не откроете его снова. При первом открытии меню предлагает обзор, который объясняет каждый пункт; чтобы посмотреть его позже, нажмите в меню **Y** (△ на PlayStation) или **F1** либо используйте **«Система» → «Приложение» → «Обзор меню сеанса»**. -## Параметры в интерфейсе «Консоль» +## Интерфейс + +У Console Mode один интерфейс, устроенный как у консоли: он занимает весь экран и работает с геймпадом Xbox или PlayStation, мышью или клавиатурой (щёлкните по вкладке или используйте Page Up / Page Down; Enter и Esc работают как A и B). При первом запуске обзор проводит по вкладкам, лаунчерам, кнопке «Играть», экранам, быстрым настройкам и сочетаниям геймпада; **A** — дальше, **B** — пропустить. Чтобы посмотреть его снова: **«Система» → «Приложение» → «Обучение»**. В разделе **«Система» → «Геймпад»** выберите раскладку кнопок: **«Автоматически»**, **Xbox** или **PlayStation**. Предпросмотр и подписи сочетаний следуют выбору, который сохраняется при закрытии приложения. Меняются только отображаемые символы; назначение кнопок геймпада остаётся прежним. -На вкладке **«Система»** доступны те же параметры, что и в режиме рабочего стола, включая сочетания на геймпаде, Playnite, Android TV, своё значение FPS и папку данных. Оба интерфейса используют одни и те же сохранённые значения, и они сохраняются после перезапуска приложения. +На вкладке **«Система»** собраны все настройки, включая сочетания на геймпаде, Playnite, Android TV, своё значение FPS, вид счётчика FPS, аргументы своего приложения, отчёт диагностики и папку данных. Значения сохраняются после перезапуска приложения. Откройте действие, сочетание для которого хотите настроить, выберите **«Задать»** или **«Изменить»**, удерживайте нужную комбинацию на одном геймпаде и отпустите кнопки. **«Удалить»** отключает это сочетание. Во время записи кнопки геймпада не управляют интерфейсом; чтобы остановить запись, используйте **«Отмена»** или **Esc**. Вне записи **B** закрывает редактор. В поля адреса и своего значения FPS можно вводить текст с клавиатуры. @@ -35,7 +37,7 @@ Параметр **«Пробуждать ПК геймпадом»** разрешает беспроводному адаптеру Xbox, Bluetooth или проводному геймпаду выводить ПК из спящего режима центральной кнопкой геймпада. Кнопка **«Включить»** запрашивает у Windows права администратора и отмечает у этих устройств *Разрешить этому устройству выводить компьютер из ждущего режима*. Выключенный ПК или ПК в режиме гибернации не проснётся, а некоторые ПК отключают питание Bluetooth во сне. Вместе с **«Входить при подключении геймпада»** ПК сразу проснётся в режиме консоли. -**Профили для игр** задают каждой игре Steam собственные разрешение, HDR, ограничение FPS и аудиовыход. Во время игры откройте меню сеанса и выберите **«Профиль игры» → «Сохранить текущие настройки для…»**: сохранится то, что игровой экран использует в этот момент. Когда эта игра в следующий раз запустится во время сеанса, Console Mode применит профиль, а после её закрытия экран вернётся в прежнее состояние. Игра определяется через Steam, независимо от того, запущена ли она из Big Picture, Playnite или приложения Xbox. Сохранённые профили перечислены в разделе «Параметры» → **«Профили для игр»**, где их можно удалить (в консольном интерфейсе: «Система» → «При входе в режим консоли»). +**Профили для игр** задают каждой игре Steam собственные разрешение, HDR, ограничение FPS и аудиовыход. Во время игры откройте меню сеанса и выберите **«Профиль игры» → «Сохранить текущие настройки для…»**: сохранится то, что игровой экран использует в этот момент. Когда эта игра в следующий раз запустится во время сеанса, Console Mode применит профиль, а после её закрытия экран вернётся в прежнее состояние. Игра определяется через Steam, независимо от того, запущена ли она из Big Picture, Playnite или приложения Xbox. Сохранённые профили перечислены в разделе «Система» → «При входе в режим консоли» → **«Профили для игр»**, где их можно удалить. ## Локальный API управления @@ -50,7 +52,7 @@ ## Управление телевизором -В разделе «Параметры» → **«Телевизор»** можно включать телевизор и переключать его на HDMI-вход ПК при запуске режима консоли, а также, по желанию, переводить его обратно в режим ожидания после восстановления рабочего стола. Телевизор, который не отвечает, никогда не блокирует режим консоли: приложение записывает это в журнал и, как обычно, ждёт игровой экран. +В разделе «Система» → **«Телевизор»** можно включать телевизор и переключать его на HDMI-вход ПК при запуске режима консоли, а также, по желанию, переводить его обратно в режим ожидания после восстановления рабочего стола. Телевизор, который не отвечает, никогда не блокирует режим консоли: приложение записывает это в журнал и, как обычно, ждёт игровой экран. По умолчанию выбрано **«Не управлять»**: ничего не отправляется, и запуск или восстановление ничем не замедляются. Если выбран способ управления, шаг с телевизором выполняется первым при запуске режима консоли и занимает не больше **30 секунд** (худший случай, когда телевизор не отвечает и пробуется Wake-on-LAN); перевод в режим ожидания при восстановлении занимает не больше **15 секунд**. Уже включённый телевизор обычно отвечает за секунду-две. @@ -104,7 +106,7 @@ Console Mode может переключать параметр Windows для ### Геймпад виден, но ничего не делает (DualSense / DualShock) -Откройте **«Параметры» → «Проверка геймпада»**: там в реальном времени видно, что Windows получает от каждого геймпада. Если при нажатии кнопок показания остаются пустыми, скорее всего, геймпад перехватывает Steam (запущенный Steam с поддержкой PlayStation в Steam Input превращает его в клавиатуру и мышь на рабочем столе). Закройте Steam или отключите поддержку PlayStation в Steam Input и проверьте снова. Если показаний по-прежнему нет, нажмите **«Копировать диагностику»** и вставьте результат в форму отзыва. +Откройте **«Система» → «Ярлык, справка и данные» → «Проверка геймпада»**: там в реальном времени видно, что Windows получает от каждого геймпада. Если при нажатии кнопок показания остаются пустыми, скорее всего, геймпад перехватывает Steam (запущенный Steam с поддержкой PlayStation в Steam Input превращает его в клавиатуру и мышь на рабочем столе). Закройте Steam или отключите поддержку PlayStation в Steam Input и проверьте снова. Если показаний по-прежнему нет, нажмите **«Копировать диагностику»** и вставьте результат в форму отзыва. ### HDR или VRR не изменились diff --git a/docs/PRD.md b/docs/PRD.md index b24411c..48f6f5d 100644 --- a/docs/PRD.md +++ b/docs/PRD.md @@ -93,6 +93,7 @@ refeita e sem caminho de volta perdido. | D-20 | **Perfis por jogo com o Tako:** quando a sessão vem do Tako, quem aplica resolução e áudio do jogo é o Tako (D-16); os perfis do Console Mode (#170) valem só nas sessões que não vêm dele. | A decidir com o Tako (CMI) | | D-21 | **Estacionar o ponteiro** no canto da tela de jogo quando o launcher aparece vem **ligado por padrão** e devolve o ponteiro para onde estava ao voltar. | Decidido (resposta à issue #172; implementação no INPUT-014) | | D-22 | **Restauração durável:** tudo o que a sessão muda (telas, áudio, ícones, ponteiro, comandos de fim) é gravado em disco antes da mudança e desfeito no próximo início se o app cair. | Decidido e implementado no CORE-012 (#178). Antes dele, depois de uma queda nada era restaurado sozinho: os backups ficavam no disco, mas o "Restaurar agora" não os usava sem uma sessão ativa. | +| D-23 | **Uma interface só:** a partir da 1.7.0 o app tem apenas a interface Console, que também funciona com mouse e teclado. A interface Desktop e a escolha de interface saem; o que só existia nela vai para a aba Sistema, e a primeira abertura ganha um tour guiado. | Decidido pelo dono em 31/10/2026; UI-012 e UI-013. | ### 2.1 Como chegamos aqui @@ -251,8 +252,7 @@ com DPAPI. Nada vai para servidor próprio; a única rede é o GitHub (atualiza ## 7. Interfaces e design -- **Desktop:** janela WinUI com Mica, para mouse e teclado. Configura tudo, inclusive o que a Console não mostra. -- **Console:** 10-foot, tema escuro fixo, foco com contorno branco, cards sem bordas, fonte Inter, transições +- **Console (a única, D-23):** 10-foot, guiada pelo controle e também pelo mouse e pelo teclado, tema escuro fixo, foco com contorno branco, cards sem bordas, fonte Inter, transições curtas (140 a 260 ms) que respeitam "Efeitos de animação" do Windows. Referências: PS5, Xbox e o overlay da Steam. - **Menu da sessão:** tela cheia por cima do jogo, vidro ou fundo sólido conforme a transparência do Windows, tokens próprios com variante de alto contraste. @@ -380,7 +380,7 @@ Legenda: **P0** = necessário para a 1.7.0; **P1** = próxima versão; **P2** = - [x] **INPUT-014 —** Estacionar o ponteiro no canto da tela de jogo quando o launcher aparece, ligado por padrão, devolvendo a posição ao voltar (D-21). Issue #172; base de @JarJarShinks no #173. (#177, 1.7.0) - [ ] **INPUT-015 (P3) —** Atalhos por voz e assistente (Alexa, MCP). Issue #12. -### Épico UI — Interface Console e Desktop +### Épico UI — Interface Console - [x] **UI-001 —** Interface Console em tela cheia, guiada pelo controle, com seleção de opções por lista. (#32, #42, 1.5.0) - [x] **UI-002 —** Correções de navegação nos Ajustes da Console e anel de foco visível. (#47, #60, #73, 1.5.0) @@ -390,9 +390,12 @@ Legenda: **P0** = necessário para a 1.7.0; **P1** = próxima versão; **P2** = - [x] **UI-006 —** Redesenho estilo console doméstico: lançadores em fileira, Sistema com categorias. (#162, 1.7.0-alpha.1) - [x] **UI-007 —** Fonte Inter e o foco escolhe o lançador. (#164, 1.7.0-alpha.1) - [x] **UI-008 —** Fundo Aurora, lista de ajustes dentro da tela, hover e clique suaves. (#165, 1.7.0-alpha.2) -- [ ] **UI-009 (P1) —** Primeira execução guiada: escolher a tela de jogo, testar, configurar o atalho. Hoje o setup só cobre os atalhos. -- [ ] **UI-010 (P2) —** Acessibilidade: leitor de tela nas duas interfaces, alto contraste na interface Console, tamanho do texto, redução de animações própria. -- [ ] **UI-011 (P2) —** Polimento contínuo: legibilidade em TV com sobrevarredura, escala do texto, consistência de foco e hover entre Desktop, Console e menu. +- [ ] **UI-009 (P1) —** Primeira execução guiada: escolher a tela de jogo, testar, configurar o atalho. O tour (UI-013) mostra onde fica cada coisa; falta o passo a passo que faz junto com a pessoa. +- [x] **UI-012 —** Uma interface só (D-23): a interface Desktop e a opção Interface saem; contador de FPS, argumentos do aplicativo personalizado, relatório de diagnóstico e versão passam para a aba Sistema. (1.7.0) +- [x] **UI-013 —** Tour guiado na primeira abertura da interface: 9 paradas com recorte no que cada uma explica (abas, iniciadores, jogar, telas, ajustes rápidos, Sistema, atalhos do controle), A avança e B pula; de novo em Sistema → App → Tutorial. (1.7.0) +- [x] **UI-014 —** A aba Sistema mostra, embaixo da lista, o que faz a linha em foco: as descrições que a interface Desktop tinha. (1.7.0) +- [ ] **UI-010 (P2) —** Acessibilidade: leitor de tela, alto contraste na interface Console, tamanho do texto, redução de animações própria. +- [ ] **UI-011 (P2) —** Polimento contínuo: legibilidade em TV com sobrevarredura, escala do texto, consistência de foco e hover entre a interface e o menu. ### Épico MENU — Menu da sessão diff --git a/docs/TESTING.md b/docs/TESTING.md index 1489d0c..17bd30b 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -4,6 +4,8 @@ Tudo aqui precisa de hardware ou de olho humano e **não é coberto pelos testes Como testar em build de desenvolvimento: `dotnet build src/ConsoleMode -c Debug -r win-x64` e rode `src/ConsoleMode/bin/Debug/net8.0-windows10.0.19041.0/win-x64/ConsoleMode.exe`. Os dados ficam em `ConsoleMode_Data` ao lado do exe (`config.json`, `consolemode.log`). +> **Desde a 1.7.0 o app só tem a interface Console.** Itens antigos deste roteiro que falam da interface Desktop, de "Ajustes" ou do "modo PC" valem para a aba **Sistema** (ou não se aplicam mais, como o botão "Modo desktop" e a opção Interface). O roteiro da interface única e do tour está em "Interface única e tour guiado", no fim. + ## 0. Atalhos do controle configuráveis e primeira configuração Pré-condições: config sem `shortcutsOnboardingDone` (instalação nova, ou apague a chave/`config.json`); controle Xbox e, se tiver, um PlayStation. Nenhum atalho vem ligado. @@ -626,5 +628,31 @@ Pré-condições: a opção **Tirar o ponteiro do mouse do caminho** ligada (é - [ ] Interface Console: nenhuma faixa cinza no topo; o fundo (Aurora, capas ou imagem) vai até a borda da janela, e minimizar, maximizar e fechar aparecem brancos, com realce suave ao passar o mouse e mais forte ao clicar. Resultado: ______ - [ ] Interface Console: arrastar a janela pela área de cima (fora das abas e dos botões) funciona; as abas, o relógio e os botões redondos continuam clicáveis. Resultado: ______ -- [ ] Interface Desktop: ícone e "Console Mode" à esquerda, botões de janela altos; em Ajustes, o botão de voltar aparece e funciona. Tema claro e escuro do Windows: os botões seguem o tema. Resultado: ______ -- [ ] Trocar entre Desktop e Console (botão ou Y): a barra muda junto, sem sobrar faixa nem botões brancos no tema claro. Resultado: ______ + +## Interface única e tour guiado (1.7.0) + +Pré-condições: um `config.json` sem `consoleTourDone` (vale para quem atualiza de uma versão anterior, mesmo tendo visto o tutorial antigo). Teste com controle, só com mouse e só com teclado. + +### Uma interface só + +- [ ] O app abre maximizado, direto na interface Console, com e sem controle conectado; não há mais o botão "Modo desktop" no topo nem a opção Interface em Sistema → App. Resultado: ______ +- [ ] Restaurar a janela (botão do meio) deixa ela no tamanho antigo e tudo continua utilizável; maximizar volta. Resultado: ______ +- [ ] Iniciado escondido (Iniciar com o Windows, `--start`, um controle conectando com o app na bandeja): a janela não aparece sozinha; ao abri-la pela bandeja, ela maximiza. Resultado: ______ +- [ ] Só com mouse e teclado: clicar nas abas, Page Up / Page Down, setas, Enter e Esc navegam em tudo (Início, Sessão, Sistema, listas de opções, editor de atalhos). Resultado: ______ +- [ ] Um `config.json` antigo com `"uiMode": "desktop"` abre normalmente na interface Console; a chave some na próxima gravação. Resultado: ______ +- [ ] Sistema → Extras opcionais, contador de FPS: estilo, tamanho, posição, cor, cartão, itens do jogo e do PC e "uma linha" mudam o contador na sessão; sem RTSS a linha do estilo fica desabilitada, e tamanho/posição/cor só valem com um estilo que desenha, os itens só no estilo personalizado. Resultado: ______ +- [ ] Sistema → Ao entrar no modo console, com Aplicativo personalizado: "Argumentos" e "Processo a acompanhar" aceitam texto (o teclado na tela não é necessário para o resto) e ficam salvos ao reabrir. Resultado: ______ +- [ ] Sistema → Atalho, ajuda e dados: "Diagnóstico → Copiar relatório" põe o relatório na área de transferência e mostra o aviso; a versão do app aparece no fim da lista. Resultado: ______ +- [ ] Sistema: com o foco numa linha, a descrição dela aparece embaixo da lista (até 3 linhas); no trilho das categorias, some. Em alemão, francês e russo o texto não estoura. Resultado: ______ + +### Tour guiado + +- [ ] Primeira abertura: o tour abre sozinho em "Bem-vindo ao Console Mode", 1 de 9, com o cartão no meio da tela e o fundo escurecido. Resultado: ______ +- [ ] Cada parada troca para a aba certa e o recorte (com contorno na cor de destaque) envolve: as abas; a fileira de iniciadores; Jogar agora e o botão redondo; as telas (Sessão); os ajustes rápidos (Sessão, rolando se precisar); as categorias (Sistema); as três linhas de atalho (Sistema → Controle). Resultado: ______ +- [ ] O cartão nunca cobre o recorte nem sai da tela: em 1080p, em 4K com escala de 150% e com a janela restaurada (pequena). Redimensionar com o tour aberto reposiciona recorte e cartão. Resultado: ______ +- [ ] Controle: A avança, B pula, as setas andam entre Próximo / Voltar / Pular; LB/RB, Start e Y não fazem nada durante o tour (nenhuma sessão começa). Mouse: os três botões funcionam e clicar no fundo escuro não faz nada. Teclado: Enter avança, Esc pula. Resultado: ______ +- [ ] Os símbolos nos textos seguem o controle: LB/RB, A, ☰ e Y no Xbox; L1/R1, ✕, OPTIONS e △ no PlayStation (e mudam se trocar o layout em Sistema → Controle). Resultado: ______ +- [ ] "Começar" (última parada) ou "Pular tutorial" volta para o Início com o foco em Jogar agora e grava `consoleTourDone: true` (e `shortcutsOnboardingDone`); reabrir o app não mostra o tour de novo. Resultado: ______ +- [ ] Sistema → App → Tutorial abre o tour de novo, do começo. Resultado: ______ +- [ ] O app iniciado escondido mostra o tour só quando a janela é aberta pela bandeja; com uma sessão ativa, nunca. Resultado: ______ +- [ ] Alemão, francês e russo: título e texto do cartão quebram linha sem cortar; os botões cabem. Resultado: ______ diff --git a/src/ConsoleMode/App.xaml.cs b/src/ConsoleMode/App.xaml.cs index 042b143..2d6e270 100644 --- a/src/ConsoleMode/App.xaml.cs +++ b/src/ConsoleMode/App.xaml.cs @@ -175,7 +175,6 @@ private void WatchGuideButton() }; _menuChord.Held += () => ViewModel?.ToggleSessionMenu(); ViewModel.PropertyChanged += OnViewModelChangedForGuide; - ViewModel.ShortcutOnboardingRequested += () => _ = ShowShortcutOnboardingAsync(); RefreshGuideWatch(); // Issue #29: a pad connecting while we're in the tray means "I'm on the couch". @@ -217,27 +216,6 @@ private void RefreshGuideWatch() Apply(_exitChord, idle && _exitChord.Mask != 0 && ViewModel.IsConsoleActive); } - private bool _onboardingOpen; - - /// The first-run shortcuts setup (nothing is set until the user chooses). - private async Task ShowShortcutOnboardingAsync() - { - if (_onboardingOpen || _window?.Content?.XamlRoot is not { } root || ViewModel is null) return; - _onboardingOpen = true; - try - { - await Controls.ShortcutPicker.ShowOnboardingAsync(root, ViewModel); - } - catch (Exception ex) - { - AppLog.Write($"Atalhos: {ex.Message}"); - } - finally - { - _onboardingOpen = false; - } - } - private static void Apply(ControllerHoldWatcher watcher, bool run) { if (run) watcher.Start(); diff --git a/src/ConsoleMode/Controls/MonitorLayoutPanel.cs b/src/ConsoleMode/Controls/MonitorLayoutPanel.cs deleted file mode 100644 index 7a7cee0..0000000 --- a/src/ConsoleMode/Controls/MonitorLayoutPanel.cs +++ /dev/null @@ -1,47 +0,0 @@ -using ConsoleMode.ViewModels; -using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; -using Windows.Foundation; - -namespace ConsoleMode.Controls; - -/// -/// ItemsPanel that places each screen tile at its desktop position, like Windows display settings. -/// Positions and sizes are precomputed in (LayoutX/LayoutY/TileWidth/TileHeight). -/// -public sealed class MonitorLayoutPanel : Panel -{ - protected override Size MeasureOverride(Size availableSize) - { - double width = 0, height = 0; - foreach (var child in Children) - { - var row = RowOf(child); - if (row is null) - { - child.Measure(new Size(0, 0)); - continue; - } - - child.Measure(new Size(row.TileWidth, row.TileHeight)); - width = Math.Max(width, row.LayoutX + row.TileWidth); - height = Math.Max(height, row.LayoutY + row.TileHeight); - } - return new Size(width, height); - } - - protected override Size ArrangeOverride(Size finalSize) - { - foreach (var child in Children) - { - var row = RowOf(child); - if (row is null) continue; - child.Arrange(new Rect(row.LayoutX, row.LayoutY, row.TileWidth, row.TileHeight)); - } - return finalSize; - } - - private static MonitorRowViewModel? RowOf(UIElement child) => - (child as ContentPresenter)?.Content as MonitorRowViewModel - ?? (child as FrameworkElement)?.DataContext as MonitorRowViewModel; -} diff --git a/src/ConsoleMode/Controls/ShortcutPicker.cs b/src/ConsoleMode/Controls/ShortcutPicker.cs index f5626ce..2437f92 100644 --- a/src/ConsoleMode/Controls/ShortcutPicker.cs +++ b/src/ConsoleMode/Controls/ShortcutPicker.cs @@ -38,13 +38,12 @@ public sealed class ShortcutPicker : StackPanel private readonly DispatcherQueueTimer _timer; private ShortcutCapture? _capture; - /// In the setup dialog: left-aligned under the text instead of a right-hand column. - public ShortcutPicker(MainViewModel vm, ShortcutSlot slot, bool stacked = false, bool consoleStyle = false) + public ShortcutPicker(MainViewModel vm, ShortcutSlot slot, bool consoleStyle = false) { _vm = vm; _slot = slot; Spacing = 4; - var side = stacked || consoleStyle ? HorizontalAlignment.Left : HorizontalAlignment.Right; + var side = consoleStyle ? HorizontalAlignment.Left : HorizontalAlignment.Right; HorizontalAlignment = consoleStyle ? HorizontalAlignment.Stretch : side; if (consoleStyle) @@ -171,62 +170,4 @@ private void Poll() _error.Text = error ?? ""; _error.Visibility = error is null ? Visibility.Collapsed : Visibility.Visible; } - - /// - /// First run of the version that made shortcuts configurable: nothing is set, and the user - /// chooses each one here (or takes the suggestions), or skips and does it later in Settings. - /// - public static async Task ShowOnboardingAsync(XamlRoot root, MainViewModel vm) - { - var panel = new StackPanel { Spacing = 16 }; - panel.Children.Add(new TextBlock - { - Text = LocalizationService.Get("ShortcutsOnboardingBody"), - TextWrapping = TextWrapping.Wrap - }); - - foreach (var (slot, descriptionKey) in new[] - { - (ShortcutSlot.Home, "HomeButtonDescription"), - (ShortcutSlot.Menu, "SessionMenuDescription"), - (ShortcutSlot.Exit, "ExitShortcutDescription") - }) - { - var text = new StackPanel { Spacing = 2 }; - text.Children.Add(new TextBlock { Text = vm.ShortcutName(slot), FontWeight = Microsoft.UI.Text.FontWeights.SemiBold }); - text.Children.Add(new TextBlock - { - Text = LocalizationService.Get(descriptionKey), - TextWrapping = TextWrapping.Wrap, - FontSize = 12, - Opacity = 0.7 - }); - // Stacked: the dialog is narrow, a right-hand column would be clipped. - var row = new StackPanel { Spacing = 8 }; - row.Children.Add(text); - row.Children.Add(new ShortcutPicker(vm, slot, stacked: true)); - panel.Children.Add(row); - } - - var suggest = new Button { Content = LocalizationService.Get("ShortcutsUseSuggested") }; - suggest.Click += (_, _) => vm.UseSuggestedShortcuts(); - panel.Children.Add(suggest); - - var dialog = new ContentDialog - { - XamlRoot = root, - Title = LocalizationService.Get("ShortcutsOnboardingTitle"), - Content = new ScrollViewer { Content = panel }, - CloseButtonText = LocalizationService.Get("ShortcutsOnboardingDone"), - DefaultButton = ContentDialogButton.Close - }; - try - { - await dialog.ShowAsync(); - } - finally - { - vm.CompleteShortcutOnboarding(); - } - } } diff --git a/src/ConsoleMode/MainWindow.xaml b/src/ConsoleMode/MainWindow.xaml index f30964b..2d2432b 100644 --- a/src/ConsoleMode/MainWindow.xaml +++ b/src/ConsoleMode/MainWindow.xaml @@ -12,48 +12,11 @@ - - - - - - - - - - - - - - - - - - - - + + - - - - - - - @@ -298,7 +293,7 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -960,20 +1065,49 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs b/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs index da4af24..890b282 100644 --- a/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs +++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs @@ -7,6 +7,8 @@ using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Media; +using Windows.Foundation; using Windows.System; namespace ConsoleMode.Views; @@ -42,7 +44,14 @@ public ConsoleHomeView() Root.GotFocus += (_, e) => { ScaleTile(e.OriginalSource, 1.07f); PickFocusedLauncher(e.OriginalSource); }; Root.LostFocus += (_, e) => ScaleTile(e.OriginalSource, 1f); // System tab: remember the option in use, so closing a picker lands back on it. - SettingsRows.GotFocus += (_, e) => { if (e.OriginalSource is Control row) _lastSettingsRow = row; }; + SettingsRows.GotFocus += (_, e) => + { + if (e.OriginalSource is not Control row) return; + _lastSettingsRow = row; + // What the row does, under the list: the descriptions the settings always had. + RowHelp.Text = Microsoft.UI.Xaml.Automation.AutomationProperties.GetHelpText(row); + }; + CategoryRail.GotFocus += (_, _) => RowHelp.Text = ""; CategoryRail.GettingFocus += OnRailGettingFocus; CategoryRail.AddHandler(UIElement.PointerPressedEvent, new PointerEventHandler((_, _) => _railPointerPressedAt = Environment.TickCount64), true); // Mouse clicks on buttons sound like a confirm (the pad has its own sounds in the navigator). @@ -76,8 +85,8 @@ private void OnLoaded(object sender, RoutedEventArgs e) App.MainWindowInstance is { } w ? WinRT.Interop.WindowNative.GetWindowHandle(w) : 0, readSonyHid: true); _navigator.SearchRoot = () => - ViewModel.IsControllerTestOpen ? ControllerTestPanel - : ViewModel.IsConsoleTutorialOpen ? ConsoleTutorialPanel + ViewModel.IsConsoleTourOpen ? ConsoleTourPanel + : ViewModel.IsControllerTestOpen ? ControllerTestPanel : ViewModel.IsShortcutEditorOpen ? ShortcutEditorPanel : ViewModel.IsPickerOpen ? PickerPanel : ViewModel.IsConsoleSettingsOpen ? SettingsPanel @@ -94,13 +103,13 @@ private void OnLoaded(object sender, RoutedEventArgs e) _navigator.MenuRequested += () => { if (ViewModel.CanStart && !ViewModel.IsRolePanelOpen && !ViewModel.IsConsoleSettingsOpen - && !ViewModel.IsPickerOpen && !ViewModel.IsShortcutEditorOpen && !ViewModel.IsConsoleTutorialOpen + && !ViewModel.IsPickerOpen && !ViewModel.IsShortcutEditorOpen && !ViewModel.IsConsoleTourOpen && !ViewModel.IsControllerTestOpen && !ViewModel.IsUpdateOpen) ViewModel.StartCommand.Execute(null); }; _navigator.AltRequested += () => { - if (ViewModel.IsRolePanelOpen || ViewModel.IsPickerOpen || ViewModel.IsShortcutEditorOpen || ViewModel.IsConsoleTutorialOpen || ViewModel.IsControllerTestOpen || ViewModel.IsUpdateOpen) return; + if (ViewModel.IsRolePanelOpen || ViewModel.IsPickerOpen || ViewModel.IsShortcutEditorOpen || ViewModel.IsConsoleTourOpen || ViewModel.IsControllerTestOpen || ViewModel.IsUpdateOpen) return; if (ViewModel.IsConsoleSettingsOpen) ViewModel.CloseConsoleSettingsCommand.Execute(null); else ViewModel.OpenFullSettingsCommand.Execute(null); }; @@ -119,7 +128,6 @@ private void OnViewModelChanged(object? sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { - case nameof(MainViewModel.IsConsoleUi): case nameof(MainViewModel.IsConsoleActive): RefreshNavigator(); DispatcherQueue.TryEnqueue(FocusDefault); @@ -169,12 +177,12 @@ private void OnViewModelChanged(object? sender, PropertyChangedEventArgs e) RefreshNavigator(); }); break; - case nameof(MainViewModel.IsConsoleTutorialOpen): - DispatcherQueue.TryEnqueue(() => - { - if (ViewModel.IsConsoleTutorialOpen) ConsoleTutorialNextButton.Focus(FocusState.Keyboard); - else FocusDefault(); - }); + case nameof(MainViewModel.IsConsoleTourOpen): + if (!ViewModel.IsConsoleTourOpen) DispatcherQueue.TryEnqueue(FocusDefault); + break; + case nameof(MainViewModel.ConsoleTourIndex): + // After the tab switch (queued by ConsoleTabIndex) has laid the new page out. + DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Low, ShowTourStop); break; case MainViewModel.ShortcutsProperty: RefreshNavigator(); @@ -201,24 +209,22 @@ private void OnViewModelChanged(object? sender, PropertyChangedEventArgs e) } /// - /// Only listen while this interface is showing and the window is in front: A pressed inside - /// Big Picture must not click something in a hidden window. (XInput reads without focus.) + /// Only listen while the window is in front: A pressed inside Big Picture must not click something + /// in a hidden window. (XInput reads without focus.) /// private void RefreshNavigator() { if (_navigator is null) return; - // Not Visibility: this runs from the IsConsoleUi change, before the binding has updated it. - var listen = ViewModel.IsConsoleUi && _windowActive; + var listen = _windowActive; if (listen && !_navigator.IsRunning) _navigator.Start(); else if (!listen && _navigator.IsRunning) _navigator.Stop(); } private void FocusDefault() { - if (!ViewModel.IsConsoleUi) return; if (ViewModel.IsConsoleActive) { RestoreButton.Focus(FocusState.Keyboard); return; } if (ViewModel.IsUpdateOpen) { UpdateNowButton.Focus(FocusState.Keyboard); return; } - if (ViewModel.IsConsoleTutorialOpen) { ConsoleTutorialNextButton.Focus(FocusState.Keyboard); return; } + if (ViewModel.IsConsoleTourOpen) { ConsoleTourNextButton.Focus(FocusState.Keyboard); return; } if (ViewModel.IsShortcutEditorOpen) { FocusShortcutEditorTarget(); return; } if (ViewModel.IsSystemTab) { FocusSystemCategory(); return; } if (ViewModel.IsSessionTab) { (FocusManager.FindFirstFocusableElement(ScreenCards) as Control)?.Focus(FocusState.Keyboard); return; } @@ -289,7 +295,7 @@ private void AnimateTab(int from, int to) /// LB / RB: the previous / next tab, unless a panel is open over the page. private void StepTab(int step) { - if (ViewModel.IsConsoleActive || ViewModel.IsRolePanelOpen || ViewModel.IsPickerOpen || ViewModel.IsShortcutEditorOpen || ViewModel.IsConsoleTutorialOpen || ViewModel.IsControllerTestOpen) return; + if (ViewModel.IsConsoleActive || ViewModel.IsRolePanelOpen || ViewModel.IsPickerOpen || ViewModel.IsShortcutEditorOpen || ViewModel.IsConsoleTourOpen || ViewModel.IsControllerTestOpen) return; if (ViewModel.StepConsoleTab(step)) UiSounds.Play(UiSound.Tab); } @@ -298,7 +304,7 @@ private void GoBack() if (ViewModel.IsControllerTestOpen) ViewModel.CloseControllerTestCommand.Execute(null); else if (ViewModel.IsPickerOpen) ViewModel.ClosePickerCommand.Execute(null); else if (ViewModel.IsShortcutEditorOpen) ViewModel.CloseShortcutEditorCommand.Execute(null); - else if (ViewModel.IsConsoleTutorialOpen) ViewModel.EndTourCommand.Execute(null); + else if (ViewModel.IsConsoleTourOpen) ViewModel.EndTourCommand.Execute(null); else if (ViewModel.IsRolePanelOpen) ViewModel.CloseRolePanelCommand.Execute(null); else if (ViewModel.IsSystemTab && IsFocusInside(SettingsRows)) FocusSystemCategory(); else if (!ViewModel.IsHomeTab) ViewModel.SelectConsoleTabCommand.Execute("0"); @@ -329,7 +335,7 @@ private void FocusShortcutEditorRow() "exit" => ExitShortcutRow, _ => null }; - if (ViewModel.IsConsoleUi && ViewModel.IsSystemTab && row?.Focus(FocusState.Keyboard) == true) return; + if (ViewModel.IsSystemTab && row?.Focus(FocusState.Keyboard) == true) return; FocusDefault(); } @@ -347,7 +353,184 @@ private void FocusShortcutEditorRow() _ => SystemSection7 }; - private void FocusSystemCategory() => CategoryButton(ViewModel.SystemCategory).Focus(FocusState.Keyboard); + private void FocusSystemCategory() + { + // The tour opens the System tab under itself: the focus stays on its card. + if (ViewModel.IsConsoleTourOpen) { ConsoleTourNextButton.Focus(FocusState.Keyboard); return; } + CategoryButton(ViewModel.SystemCategory).Focus(FocusState.Keyboard); + } + + // ───────────── First-run tour ───────────── + + private const double TourHolePadding = 14; + private const double TourEdge = 40; + private const double TourGap = 28; + + /// The part of the screen a tour stop is about, or null for the stops that only talk. + private Rect? TourTarget(ConsoleTourStop stop) + { + FrameworkElement[] parts = stop switch + { + ConsoleTourStop.Tabs => [TabBar], + ConsoleTourStop.Launchers => [LaunchRow], + ConsoleTourStop.Play => [PlayRow], + ConsoleTourStop.Screens => [ScreenCards], + ConsoleTourStop.QuickSettings => [QuickCards], + ConsoleTourStop.System => [CategoryRail], + ConsoleTourStop.Shortcuts => [HomeShortcutRow, ExitShortcutRow], + _ => [] + }; + Rect? area = null; + foreach (var part in parts) + { + if (part.ActualWidth <= 0 || part.ActualHeight <= 0) continue; + var bounds = part.TransformToVisual(ConsoleTourPanel).TransformBounds(new Rect(0, 0, part.ActualWidth, part.ActualHeight)); + if (area is { } union) { union.Union(bounds); area = union; } + else area = bounds; + } + return area; + } + + /// A stop came up: the page under it is laid out, so draw the hole and place the card, then focus Next. + private void ShowTourStop() + { + if (!ViewModel.IsConsoleTourOpen) return; + if (TourTargetElement(ViewModel.ConsoleTourStopNow) is { } part) + { + // The quick settings sit low on the Session page: scroll them in before measuring. + part.StartBringIntoView(new BringIntoViewOptions { AnimationDesired = false }); + } + TabPanel(ViewModel.ConsoleTabIndex).UpdateLayout(); + ConsoleTourPanel.UpdateLayout(); + PlaceTour(); + FadeInTourCard(); + ConsoleTourNextButton.Focus(FocusState.Keyboard); + } + + private FrameworkElement? TourTargetElement(ConsoleTourStop stop) => stop switch + { + ConsoleTourStop.QuickSettings => QuickCards, + ConsoleTourStop.Screens => ScreenCards, + ConsoleTourStop.Shortcuts => HomeShortcutRow, + _ => null + }; + + private void OnTourPanelSizeChanged(object sender, SizeChangedEventArgs e) + { + if (ViewModel.IsConsoleTourOpen) PlaceTour(); + } + + /// The veil with its hole, the ring around the hole and the card beside it (below, above, beside or centred). + private void PlaceTour() + { + var width = ConsoleTourPanel.ActualWidth; + var height = ConsoleTourPanel.ActualHeight; + if (width <= 0 || height <= 0) return; + + var stop = ViewModel.ConsoleTourStopNow; + var target = ConsoleTour.IsCentered(stop) ? null : TourTarget(stop); + Rect? hole = null; + if (target is { } t) + { + var left = Math.Max(t.X - TourHolePadding, 8); + var top = Math.Max(t.Y - TourHolePadding, 8); + var right = Math.Min(t.X + t.Width + TourHolePadding, width - 8); + var bottom = Math.Min(t.Y + t.Height + TourHolePadding, height - 8); + if (right > left && bottom > top) hole = new Rect(left, top, right - left, bottom - top); + } + + var veil = new GeometryGroup { FillRule = FillRule.EvenOdd }; + veil.Children.Add(new RectangleGeometry { Rect = new Rect(0, 0, width, height) }); + if (hole is { } h) + { + veil.Children.Add(RoundedRectangle(h, 20)); + TourRing.Margin = new Thickness(h.X, h.Y, 0, 0); + TourRing.Width = h.Width; + TourRing.Height = h.Height; + TourRing.Visibility = Visibility.Visible; + } + else TourRing.Visibility = Visibility.Collapsed; + TourVeil.Data = veil; + + var cardWidth = Math.Min(600, width - 2 * TourEdge); + TourCard.Width = cardWidth; + TourCard.Measure(new Size(cardWidth, double.PositiveInfinity)); + // DesiredSize counts the margin, which is where the card was put last time. + var cardHeight = TourCard.DesiredSize.Height - TourCard.Margin.Top - TourCard.Margin.Bottom; + double x, y; + if (hole is not { } spot) + { + x = (width - cardWidth) / 2; + y = (height - cardHeight) / 2; + } + else if (spot.Bottom + TourGap + cardHeight <= height - TourEdge) + { + x = spot.X; + y = spot.Bottom + TourGap; + } + else if (spot.Y - TourGap - cardHeight >= TourEdge) + { + x = spot.X; + y = spot.Y - TourGap - cardHeight; + } + else if (spot.Right + TourGap + cardWidth <= width - TourEdge) + { + x = spot.Right + TourGap; + y = spot.Y; + } + else if (spot.X - TourGap - cardWidth >= TourEdge) + { + x = spot.X - TourGap - cardWidth; + y = spot.Y; + } + else + { + x = (width - cardWidth) / 2; + y = height - TourEdge - cardHeight; + } + x = Math.Clamp(x, TourEdge, Math.Max(TourEdge, width - cardWidth - TourEdge)); + y = Math.Clamp(y, TourEdge, Math.Max(TourEdge, height - cardHeight - TourEdge)); + TourCard.Margin = new Thickness(x, y, 0, 0); + } + + private static PathGeometry RoundedRectangle(Rect r, double radius) + { + radius = Math.Min(radius, Math.Min(r.Width, r.Height) / 2); + var corner = new Size(radius, radius); + var figure = new PathFigure { StartPoint = new Point(r.X + radius, r.Y), IsClosed = true, IsFilled = true }; + void Line(double px, double py) => figure.Segments.Add(new LineSegment { Point = new Point(px, py) }); + void Arc(double px, double py) => figure.Segments.Add(new ArcSegment { Point = new Point(px, py), Size = corner, SweepDirection = SweepDirection.Clockwise }); + Line(r.Right - radius, r.Y); + Arc(r.Right, r.Y + radius); + Line(r.Right, r.Bottom - radius); + Arc(r.Right - radius, r.Bottom); + Line(r.X + radius, r.Bottom); + Arc(r.X, r.Bottom - radius); + Line(r.X, r.Y + radius); + Arc(r.X + radius, r.Y); + var geometry = new PathGeometry(); + geometry.Figures.Add(figure); + return geometry; + } + + /// Each stop's card fades in where it lands. Skipped when Windows has animations turned off. + private void FadeInTourCard() + { + if (!Ui.AnimationsEnabled) return; + try + { + var visual = ElementCompositionPreview.GetElementVisual(TourCard); + var fade = visual.Compositor.CreateScalarKeyFrameAnimation(); + fade.InsertKeyFrame(0f, 0f); + fade.InsertKeyFrame(1f, 1f); + fade.Duration = TimeSpan.FromMilliseconds(220); + visual.StartAnimation("Opacity", fade); + } + catch (Exception ex) + { + AppLog.Write($"Tour: animação: {ex.Message}"); + } + } /// Back to the option that was in use, else the first one of the category, else the category itself. private void FocusSystemRow() diff --git a/src/ConsoleMode/Views/HomeView.xaml b/src/ConsoleMode/Views/HomeView.xaml deleted file mode 100644 index 5281633..0000000 --- a/src/ConsoleMode/Views/HomeView.xaml +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/ConsoleMode/Views/HomeView.xaml.cs b/src/ConsoleMode/Views/HomeView.xaml.cs deleted file mode 100644 index 0d2f089..0000000 --- a/src/ConsoleMode/Views/HomeView.xaml.cs +++ /dev/null @@ -1,15 +0,0 @@ -using ConsoleMode.ViewModels; -using Microsoft.UI.Xaml.Controls; - -namespace ConsoleMode.Views; - -public sealed partial class HomeView : UserControl -{ - public MainViewModel ViewModel { get; } = App.ViewModel!; - - // Controller navigation for the desktop interface lives in MainWindow (GamepadNavigator). - public HomeView() - { - InitializeComponent(); - } -} diff --git a/src/ConsoleMode/Views/SettingsView.xaml b/src/ConsoleMode/Views/SettingsView.xaml deleted file mode 100644 index 31f4f18..0000000 --- a/src/ConsoleMode/Views/SettingsView.xaml +++ /dev/null @@ -1,480 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs b/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs index dfbaf5c..9ecde1b 100644 --- a/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs +++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml.cs @@ -371,7 +371,8 @@ private void FocusSystemCategory() { ConsoleTourStop.Tabs => [TabBar], ConsoleTourStop.Launchers => [LaunchRow], - ConsoleTourStop.Play => [PlayRow], + // What will open, where and what changes, and the play button: the text talks about the line above it. + ConsoleTourStop.Play => [HomeSummary], ConsoleTourStop.Screens => [ScreenCards], ConsoleTourStop.QuickSettings => [QuickCards], ConsoleTourStop.System => [CategoryRail], From a3ef84952e2ac5cb47e918252ef70c1da1581198 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Sat, 31 Oct 2026 22:18:11 -0300 Subject: [PATCH 04/10] feat: the Session tab draws the screens like Windows' display settings Each screen sits where it is on the desk at its real proportions (a screen standing up shows standing up), through MonitorLayoutPanel again; the text shrinks to fit small and standing screens, and screens that are off are dashed. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.en-US.md | 2 +- CHANGELOG.md | 2 +- docs/TESTING.md | 3 + .../Controls/MonitorLayoutPanel.cs | 48 +++++++++++++++ src/ConsoleMode/ViewModels/MainViewModel.cs | 6 +- .../ViewModels/MonitorRowViewModel.cs | 3 + src/ConsoleMode/Views/ConsoleHomeView.xaml | 59 ++++++++----------- 7 files changed, 85 insertions(+), 38 deletions(-) create mode 100644 src/ConsoleMode/Controls/MonitorLayoutPanel.cs diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 1a91779..dddce92 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -12,7 +12,7 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor - **Move the mouse pointer out of the way** (issue #172): when the launcher shows up on the TV, the pointer goes to the bottom-right corner of the game screen (twice, since Steam recenters it while opening) and goes back where it was when you return to the PC. On by default; turn it off in Settings or under System → When entering console mode. Based on @JarJarShinks' version in #173. (#177) - Redesigned title bar: on the Console interface the background runs up to the top edge of the window (no grey strip) and the minimize, maximize and close buttons are white, with the same soft highlight as the interface's own buttons; on the Desktop interface the icon and name are larger and the buttons fill the bar's height. (#182) - Console interface: new sounds. Move, confirm and back use glass and "minimize" sounds from Kenney's Interface Sounds pack (CC0), and switching tabs (LB / RB) gets its own sound, a crystal tick made by the Selene theme's sound script (MIT). The sounds play only with the controller (and the keyboard): mouse clicks, in the Console interface or the session menu, no longer make a sound. (#183) -- **One interface, with a guided tour**: Console Mode now has only the Console interface, which also works with the mouse and the keyboard (click the tabs, Page Up / Page Down, Enter and Esc). The Desktop interface and the Interface option are gone; what only it had moved to the System tab: the FPS counter (style, size, position, colour and items), the custom app's arguments and process to watch, the diagnostics report and the app's version. Under the list, the System tab shows what the setting in focus does. The first time you open it, a tour highlights the tabs, the launchers, the play button, the screens, the quick settings, the settings and the controller shortcuts (A goes on, B skips); to see it again, System → App → Tutorial. (#184) +- **One interface, with a guided tour**: Console Mode now has only the Console interface, which also works with the mouse and the keyboard (click the tabs, Page Up / Page Down, Enter and Esc). The Desktop interface and the Interface option are gone; what only it had moved to the System tab: the FPS counter (style, size, position, colour and items), the custom app's arguments and process to watch, the diagnostics report and the app's version. Under the list, the System tab shows what the setting in focus does. On the Session tab, the screens are drawn again like in Windows' display settings: each one where it sits on the desk and at its real proportions (a screen standing up shows standing up), the ones that are off dashed. The first time you open it, a tour highlights the tabs, the launchers, the play button, the screens, the quick settings, the settings and the controller shortcuts (A goes on, B skips); to see it again, System → App → Tutorial. (#184) ### Fixes - Custom app: Console Mode moves only the program's largest window to the game screen, instead of every window Windows reports as its main one; a tooltip is no longer stretched over the TV. (#175) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27f6543..1451238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH - **Tirar o ponteiro do mouse do caminho** (issue #172): quando o iniciador aparece na TV, o ponteiro vai para o canto inferior direito da tela de jogo (duas vezes, porque a Steam o recentraliza ao abrir) e, ao voltar ao PC, volta para onde estava. Ligado por padrão; desligue em Ajustes ou em Sistema → Ao entrar no modo console. Baseado na versão de @JarJarShinks no #173. (#177) - Barra de título redesenhada: na interface Console, o fundo vai até a borda de cima da janela (sem a faixa cinza) e os botões de minimizar, maximizar e fechar ficam brancos, com o mesmo realce suave dos botões da interface; na interface Desktop, o ícone e o nome ficam maiores e os botões ocupam a altura toda da barra. (#182) - Interface Console: sons novos. Mover, confirmar e voltar usam sons de vidro e de "minimizar" do pacote Interface Sounds da Kenney (CC0), e trocar de aba (LB / RB) ganhou um som próprio, um tique de cristal gerado pelo script de sons do tema Selene (MIT). Os sons tocam só com o controle (e o teclado): clicar com o mouse, na interface Console ou no menu da sessão, não faz mais som. (#183) -- **Uma interface só, com tour guiado**: o Console Mode passa a ter apenas a interface Console, que também funciona com mouse e teclado (clique nas abas, Page Up / Page Down, Enter e Esc). A interface Desktop e a opção Interface saíram; o que só existia nela foi para a aba Sistema: o contador de FPS (estilo, tamanho, posição, cor e itens), os argumentos e o processo a acompanhar do aplicativo personalizado, o relatório de diagnóstico e a versão do app. Embaixo da lista, a aba Sistema mostra o que faz o ajuste em foco. Na primeira vez que você abre, um tour destaca as abas, os iniciadores, o botão de jogar, as telas, os ajustes rápidos, as configurações e os atalhos do controle (A avança, B pula); para ver de novo, Sistema → App → Tutorial. (#184) +- **Uma interface só, com tour guiado**: o Console Mode passa a ter apenas a interface Console, que também funciona com mouse e teclado (clique nas abas, Page Up / Page Down, Enter e Esc). A interface Desktop e a opção Interface saíram; o que só existia nela foi para a aba Sistema: o contador de FPS (estilo, tamanho, posição, cor e itens), os argumentos e o processo a acompanhar do aplicativo personalizado, o relatório de diagnóstico e a versão do app. Embaixo da lista, a aba Sistema mostra o que faz o ajuste em foco. Na aba Sessão, as telas voltam a aparecer como nas configurações de vídeo do Windows: cada uma onde fica na mesa e na proporção real (um monitor em pé aparece em pé), e as desligadas tracejadas. Na primeira vez que você abre, um tour destaca as abas, os iniciadores, o botão de jogar, as telas, os ajustes rápidos, as configurações e os atalhos do controle (A avança, B pula); para ver de novo, Sistema → App → Tutorial. (#184) ### Correções - Aplicativo personalizado: o Console Mode leva para a tela de jogo só a maior janela do programa, em vez de todas as que o Windows aponta como principal; uma dica de ferramenta não é mais esticada sobre a TV. (#175) diff --git a/docs/TESTING.md b/docs/TESTING.md index d1965c6..150b952 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -646,6 +646,9 @@ Pré-condições: um `config.json` sem `consoleTourDone` (vale para quem atualiz - [ ] Sistema → Atalho, ajuda e dados: "Diagnóstico → Copiar relatório" põe o relatório na área de transferência e mostra o aviso; a versão do app aparece no fim da lista. Resultado: ______ - [ ] Sistema: com o foco numa linha, a descrição dela aparece embaixo da lista (até 3 linhas); no trilho das categorias, some. Em alemão, francês e russo o texto não estoura. Resultado: ______ +- [ ] Aba Sessão: as telas aparecem como em Configurações → Sistema → Tela do Windows: na mesma posição relativa, na proporção real (um monitor girado aparece em pé) e com um espaço entre elas; uma tela desligada no Windows aparece tracejada à direita. Os textos encolhem para caber nas telas pequenas. Resultado: ______ +- [ ] O direcional anda entre as telas pela posição delas no mapa (direita vai para a tela à direita etc.) e A abre o painel de papel da tela. Resultado: ______ + ### Tour guiado - [ ] Primeira abertura: o tour abre sozinho em "Bem-vindo ao Console Mode", 1 de 9, com o cartão no meio da tela e o fundo escurecido. Resultado: ______ diff --git a/src/ConsoleMode/Controls/MonitorLayoutPanel.cs b/src/ConsoleMode/Controls/MonitorLayoutPanel.cs new file mode 100644 index 0000000..31fc7f8 --- /dev/null +++ b/src/ConsoleMode/Controls/MonitorLayoutPanel.cs @@ -0,0 +1,48 @@ +using ConsoleMode.ViewModels; +using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml.Controls; +using Windows.Foundation; + +namespace ConsoleMode.Controls; + +/// +/// ItemsPanel that places each screen at its desktop position, like Windows display settings (a screen standing up +/// shows standing up). +/// Positions and sizes are precomputed in (LayoutX/LayoutY/TileWidth/TileHeight). +/// +public sealed class MonitorLayoutPanel : Panel +{ + protected override Size MeasureOverride(Size availableSize) + { + double width = 0, height = 0; + foreach (var child in Children) + { + var row = RowOf(child); + if (row is null) + { + child.Measure(new Size(0, 0)); + continue; + } + + child.Measure(new Size(row.TileWidth, row.TileHeight)); + width = Math.Max(width, row.LayoutX + row.TileWidth); + height = Math.Max(height, row.LayoutY + row.TileHeight); + } + return new Size(width, height); + } + + protected override Size ArrangeOverride(Size finalSize) + { + foreach (var child in Children) + { + var row = RowOf(child); + if (row is null) continue; + child.Arrange(new Rect(row.LayoutX, row.LayoutY, row.TileWidth, row.TileHeight)); + } + return finalSize; + } + + private static MonitorRowViewModel? RowOf(UIElement child) => + (child as ContentPresenter)?.Content as MonitorRowViewModel + ?? (child as FrameworkElement)?.DataContext as MonitorRowViewModel; +} diff --git a/src/ConsoleMode/ViewModels/MainViewModel.cs b/src/ConsoleMode/ViewModels/MainViewModel.cs index fd407c1..623e90a 100644 --- a/src/ConsoleMode/ViewModels/MainViewModel.cs +++ b/src/ConsoleMode/ViewModels/MainViewModel.cs @@ -27,9 +27,9 @@ public partial class MainViewModel : ObservableObject private static readonly int[] FpsPresets = [30, 48, 50, 59, 60, 72, 75, 90, 120, 144]; private const int FpsCustomValue = -1; - private const double LayoutMaxWidth = 720; - private const double LayoutMaxHeight = 220; - private const double TileInset = 3; + private const double LayoutMaxWidth = 1100; + private const double LayoutMaxHeight = 300; + private const double TileInset = 6; private readonly DispatcherQueue _dispatcher = DispatcherQueue.GetForCurrentThread(); private CancellationTokenSource? _loopCts; diff --git a/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs b/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs index 7b5ea9b..95b3c11 100644 --- a/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs +++ b/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs @@ -59,6 +59,7 @@ public int RoleIndex OnPropertyChanged(nameof(Role)); OnPropertyChanged(nameof(IsFocus)); OnPropertyChanged(nameof(IsHide)); + OnPropertyChanged(nameof(IsKeep)); OnPropertyChanged(nameof(RoleLabel)); OnPropertyChanged(nameof(RoleGlyph)); OnPropertyChanged(nameof(TileBackground)); @@ -107,9 +108,11 @@ public MonitorRole Role public bool IsFocus => Role == MonitorRole.Focus; public bool IsHide => Role == MonitorRole.Hide; + public bool IsKeep => Role == MonitorRole.Keep; /// Off in Windows right now; drawn dashed next to the live desktop. public bool IsOff => !Monitor.IsActive; + public bool IsOn => Monitor.IsActive; public string RoleLabel => Role switch { diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml b/src/ConsoleMode/Views/ConsoleHomeView.xaml index 9321e57..042c78a 100644 --- a/src/ConsoleMode/Views/ConsoleHomeView.xaml +++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml @@ -318,50 +318,43 @@ - + + - + - From de751b782d2ae63389d01e6f80ba64ec7506c1c4 Mon Sep 17 00:00:00 2001 From: Filipe Moreira Date: Sat, 31 Oct 2026 22:25:07 -0300 Subject: [PATCH 05/10] fix: one clean focus ring on the Session screens The screen tiles had a grey bezel inside the white focus ring, with different corner radii, so the focused one showed a double outline; and a focused screen grew over its neighbour. No bezel now (only the dashed outline of a screen that is off), corners matched to the ring, and the screens don't grow on focus. Co-Authored-By: Claude Opus 5.5 --- src/ConsoleMode/ViewModels/MonitorRowViewModel.cs | 1 - src/ConsoleMode/Views/ConsoleHomeView.xaml | 7 +++---- src/ConsoleMode/Views/ConsoleHomeView.xaml.cs | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs b/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs index 95b3c11..c5a71ee 100644 --- a/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs +++ b/src/ConsoleMode/ViewModels/MonitorRowViewModel.cs @@ -112,7 +112,6 @@ public MonitorRole Role /// Off in Windows right now; drawn dashed next to the live desktop. public bool IsOff => !Monitor.IsActive; - public bool IsOn => Monitor.IsActive; public string RoleLabel => Role switch { diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml b/src/ConsoleMode/Views/ConsoleHomeView.xaml index 042c78a..fe65e71 100644 --- a/src/ConsoleMode/Views/ConsoleHomeView.xaml +++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml @@ -328,14 +328,13 @@ - + + + + - - -