From 87e1c826107dca7ab61c3983a79883d569a287c0 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Fri, 12 Jun 2026 09:11:37 +0200 Subject: [PATCH] feat(app): connection status indicator opens server settings on tap The green/red dot + status text in the wallet header is now tappable: opens the server settings overlay directly. Added Hand cursor and tooltip (server title) to signal interactivity. Status text uses SystemAccentColor instead of Gray. --- src/App/Views/MainWindow.axaml | 8 ++++++-- src/App/Views/MainWindow.axaml.cs | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/App/Views/MainWindow.axaml b/src/App/Views/MainWindow.axaml index 008b47c..a9d82ee 100644 --- a/src/App/Views/MainWindow.axaml +++ b/src/App/Views/MainWindow.axaml @@ -151,13 +151,17 @@ + + VerticalAlignment="Top" Cursor="Hand" Background="Transparent" + ToolTip.Tip="{Binding Loc[server.title]}" + Tapped="OnConnectionStatusTapped"> - diff --git a/src/App/Views/MainWindow.axaml.cs b/src/App/Views/MainWindow.axaml.cs index 9759a4e..636493e 100644 --- a/src/App/Views/MainWindow.axaml.cs +++ b/src/App/Views/MainWindow.axaml.cs @@ -72,6 +72,12 @@ public partial class MainWindow : Window vm.IsServerSettingsOpen = false; } + private void OnConnectionStatusTapped(object? sender, TappedEventArgs e) + { + if (DataContext is MainWindowViewModel vm) + vm.IsServerSettingsOpen = true; + } + private void OnSettingsOverlayBackdropTapped(object? sender, TappedEventArgs e) { if (!ReferenceEquals(e.Source, sender)) return;