From 2be0ba5eb1088bf3d184b11de90b634e5978eb81 Mon Sep 17 00:00:00 2001 From: Carter <4911475+carterscode@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:36:54 -0700 Subject: [PATCH] fix(ui): make "Learn more" text selectable so commands can be copied MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Learn more expanders rendered their content (including the verify / apply / reverse PowerShell commands) in a plain TextBlock, which WPF doesn't allow you to select or copy. Render it instead in a read-only, chrome-free TextBox via a shared CopyableLearnMoreText style — looks identical to plain text but supports click-drag selection, Ctrl+A/Ctrl+C, and right-click Copy, so users can paste the commands into a terminal. The custom template strips all TextBox chrome (border, background, focus underline) and disables its scrollbars so it doesn't swallow mouse-wheel scrolling inside the settings ScrollViewer. Applied to all 8 Learn more expanders (one per tab's row template). Binding is Mode=OneWay (the source is a read-only property; avoids the TwoWay-to-readonly pitfall). Co-Authored-By: Claude Opus 4.8 --- src/GamerGuardian/UI/SettingsWindow.xaml | 83 +++++++++++++++--------- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/src/GamerGuardian/UI/SettingsWindow.xaml b/src/GamerGuardian/UI/SettingsWindow.xaml index 6bd814d..7beebb5 100644 --- a/src/GamerGuardian/UI/SettingsWindow.xaml +++ b/src/GamerGuardian/UI/SettingsWindow.xaml @@ -11,6 +11,33 @@ ExtendsContentIntoTitleBar="True" WindowCornerPreference="Round"> + + + @@ -61,10 +88,9 @@ - + @@ -282,10 +308,9 @@ - + @@ -356,10 +381,9 @@ - + @@ -456,10 +480,9 @@ - + @@ -566,10 +589,9 @@ - + @@ -646,10 +668,9 @@ - + @@ -698,10 +719,9 @@ - + @@ -836,10 +856,9 @@ - +