diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index 2b0412e..f1abf41 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -10,6 +10,7 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor
- **Per-game profiles**: each Steam game can have 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**; next time it starts in console mode, the profile is applied by itself and undone when the game closes. Also works for Steam games opened from Playnite or the Xbox app. Profiles are listed in Settings → **Per-game profiles**, where you can delete them. (#170)
- **Browser (JoyChromium)** in the session menu, pinned right under ControlFS and working the same way: [JoyChromium](https://github.com/lippdev/joychromium) (the TV browser you drive with the controller) opens full screen over the game and, if it isn't installed, the first press downloads its newest release, checks its SHA-256 and installs it. Going back to the PC while it's open takes it out of full screen and leaves it as a window, tabs and all. (#175, #181)
- **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)
### 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 9d5b7ae..8e251f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH
- **Perfis por jogo**: cada jogo da Steam pode ter 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**; da próxima vez que ele abrir no modo console, o perfil é aplicado sozinho e desfeito quando o jogo fecha. Vale também para jogos da Steam abertos pelo Playnite ou pelo app Xbox. Os perfis ficam em Ajustes → **Perfis por jogo**, onde dá para apagá-los. (#170)
- **Navegador (JoyChromium)** no menu da sessão, fixo logo abaixo do ControlFS e funcionando do mesmo jeito: o [JoyChromium](https://github.com/lippdev/joychromium) (o navegador para a TV que se usa com o controle) abre em tela cheia por cima do jogo e, se não estiver instalado, o primeiro clique baixa a versão mais recente, confere o SHA-256 e instala. Voltar ao PC com ele aberto o tira da tela cheia e o deixa como janela, sem perder as abas. (#175, #181)
- **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)
### 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 7e99db2..60898c2 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -619,3 +619,10 @@ Pré-condições: a opção **Tirar o ponteiro do mouse do caminho** ligada (é
- [ ] Controle que fazia o menu "subir sozinho": o menu fica parado; se o log mostrar `analógico fora do centro desde o início`, o direcional e os botões continuam navegando. Anote o modelo do controle. Resultado: ______
- [ ] Controle normal: o analógico navega como antes (na primeira leitura ele está no centro). Resultado: ______
- [ ] Aba Sessão em espanhol, francês e russo: as legendas dos ajustes rápidos aparecem inteiras, em até duas linhas. Resultado: ______
+
+## Barra de título (#182)
+
+- [ ] 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: ______
diff --git a/src/ConsoleMode/MainWindow.xaml b/src/ConsoleMode/MainWindow.xaml
index 99f9f38..f30964b 100644
--- a/src/ConsoleMode/MainWindow.xaml
+++ b/src/ConsoleMode/MainWindow.xaml
@@ -12,41 +12,48 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/ConsoleMode/MainWindow.xaml.cs b/src/ConsoleMode/MainWindow.xaml.cs
index abaedd3..34baf73 100644
--- a/src/ConsoleMode/MainWindow.xaml.cs
+++ b/src/ConsoleMode/MainWindow.xaml.cs
@@ -28,6 +28,9 @@ public MainWindow(MainViewModel viewModel)
appWindow.Resize(new Windows.Graphics.SizeInt32((int)(960 * scale), (int)(760 * scale)));
appWindow.TitleBar.ButtonBackgroundColor = Colors.Transparent;
appWindow.TitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
+ // Tall caption buttons: as high as the 48 px bar, instead of 32 px ones floating at the top.
+ appWindow.TitleBar.PreferredHeightOption = TitleBarHeightOption.Tall;
+ StyleCaptionButtons(appWindow.TitleBar, ViewModel.IsConsoleUi);
if (File.Exists(AppPaths.IconPath))
{
@@ -59,6 +62,7 @@ public MainWindow(MainViewModel viewModel)
// The console interface fills the screen, like a console; the desktop one gets its size back.
ViewModel.PropertyChanged += (_, e) =>
{
+ if (e.PropertyName == nameof(MainViewModel.IsConsoleUi)) StyleCaptionButtons(appWindow.TitleBar, ViewModel.IsConsoleUi);
if (e.PropertyName == nameof(MainViewModel.IsConsoleUi) && appWindow.Presenter is OverlappedPresenter p)
{
if (ViewModel.IsConsoleUi) p.Maximize();
@@ -70,6 +74,21 @@ public MainWindow(MainViewModel viewModel)
WatchDesktopPad(hwnd);
}
+ ///
+ /// Minimize, maximize and close over the console interface's dark background: white, with the same soft veil on hover
+ /// and press as its own buttons. The desktop interface keeps Windows' colours for its theme.
+ ///
+ private static void StyleCaptionButtons(AppWindowTitleBar bar, bool console)
+ {
+ Windows.UI.Color? Argb(byte a, byte r, byte g, byte b) => console ? Windows.UI.Color.FromArgb(a, r, g, b) : null;
+ bar.ButtonForegroundColor = Argb(0xFF, 0xFF, 0xFF, 0xFF);
+ bar.ButtonInactiveForegroundColor = Argb(0x80, 0xFF, 0xFF, 0xFF);
+ bar.ButtonHoverForegroundColor = Argb(0xFF, 0xFF, 0xFF, 0xFF);
+ bar.ButtonHoverBackgroundColor = Argb(0x1F, 0xFF, 0xFF, 0xFF);
+ bar.ButtonPressedForegroundColor = Argb(0xFF, 0xFF, 0xFF, 0xFF);
+ bar.ButtonPressedBackgroundColor = Argb(0x33, 0xFF, 0xFF, 0xFF);
+ }
+
// The desktop interface, driven by the pad like a console menu (ported from PR #17):
// D-pad/stick move, A activates (lists, toggles, cards), B closes a list or leaves Settings,
// Start toggles Settings, Y jumps to the console interface, tour: A next / B skip.
diff --git a/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs b/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
index cd65911..6671108 100644
--- a/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
+++ b/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
@@ -26,6 +26,8 @@ public partial class MainViewModel
public bool IsDesktopHome => !IsConsoleUi && IsHomePage;
public bool IsDesktopSettings => !IsConsoleUi && IsSettingsPage;
+ /// The desktop interface: the title bar shows the app's name there (the console one has its own brand mark).
+ public bool IsDesktopUi => !IsConsoleUi;
public string FocusScreenName => FocusRow?.Name ?? "";
public string RolePanelTitle => LocalizationService.Get("ChooseRoleFor", RolePanelMonitor?.Name ?? "");
public string HdrText => LocalizationService.Get(HdrEnable ? "ToggleOn" : "ToggleOff");
@@ -47,6 +49,7 @@ partial void OnSelectedControllerLayoutChanged(ComboOption? value)
partial void OnIsConsoleUiChanged(bool value)
{
OnPropertyChanged(nameof(IsDesktopHome));
+ OnPropertyChanged(nameof(IsDesktopUi));
OnPropertyChanged(nameof(IsDesktopSettings));
OnPropertyChanged(nameof(IsTourMap));
OnPropertyChanged(nameof(IsTourRole));
diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml b/src/ConsoleMode/Views/ConsoleHomeView.xaml
index ebf4dbc..ab5b79c 100644
--- a/src/ConsoleMode/Views/ConsoleHomeView.xaml
+++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml
@@ -17,8 +17,9 @@
-
-
+
+