|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:loc="clr-namespace:RigCheck.Localization" |
5 | 5 | Title="{loc:Str Settings_Title}" |
6 | | - Width="480" SizeToContent="Height" |
| 6 | + Width="520" SizeToContent="Height" |
7 | 7 | ResizeMode="NoResize" |
8 | 8 | WindowStartupLocation="CenterOwner" |
9 | 9 | ShowInTaskbar="False" |
10 | 10 | Background="{StaticResource BrushBackground}" |
11 | 11 | Foreground="{StaticResource BrushForeground}"> |
12 | 12 |
|
| 13 | + <!-- |
| 14 | + Settings are held as pending values and written only on OK. |
| 15 | + Buttons that act on files (open folder, delete logs, reset ID) act |
| 16 | + immediately and confirm first where destructive. |
| 17 | + --> |
| 18 | + |
13 | 19 | <StackPanel Margin="24,20,24,16"> |
14 | 20 |
|
15 | 21 | <!-- ── Anonymous diagnostics ── --> |
|
19 | 25 | <CheckBox x:Name="TelemetryCheckBox" |
20 | 26 | Content="{loc:Str Telemetry_Checkbox}" |
21 | 27 | Foreground="{StaticResource BrushForeground}" FontSize="13" |
22 | | - Margin="0,0,0,8" |
23 | | - Checked="Telemetry_Changed" Unchecked="Telemetry_Changed" /> |
| 28 | + Margin="0,0,0,8" /> |
24 | 29 |
|
25 | 30 | <TextBlock x:Name="WhatIsSentText" TextWrapping="Wrap" |
26 | 31 | Foreground="{StaticResource BrushMuted}" FontSize="12" Margin="0,0,0,6" /> |
27 | 32 | <TextBlock Text="{loc:Str Telemetry_WhatIsNotSent}" TextWrapping="Wrap" |
28 | | - Foreground="{StaticResource BrushMuted}" FontSize="12" Margin="0,0,0,12" /> |
| 33 | + Foreground="{StaticResource BrushMuted}" FontSize="12" Margin="0,0,0,10" /> |
29 | 34 |
|
30 | 35 | <StackPanel Orientation="Horizontal" Margin="0,0,0,20"> |
31 | 36 | <Button Content="{loc:Str Settings_ViewData}" |
|
38 | 43 | </Button> |
39 | 44 | </StackPanel> |
40 | 45 |
|
41 | | - <Button Content="{loc:Str Common_Close}" |
42 | | - Style="{StaticResource PrimaryButtonStyle}" |
43 | | - HorizontalAlignment="Right" MinWidth="90" |
44 | | - IsDefault="True" IsCancel="True" /> |
| 46 | + <!-- ── Logging ── --> |
| 47 | + <TextBlock Text="{loc:Str Settings_LoggingHeading}" |
| 48 | + FontWeight="SemiBold" FontSize="14" Margin="0,0,0,8" /> |
| 49 | + |
| 50 | + <DockPanel Margin="0,0,0,8"> |
| 51 | + <Label Content="{loc:Str Settings_LogLevel}" Style="{StaticResource FieldLabelStyle}" /> |
| 52 | + <ComboBox x:Name="LogLevelCombo" |
| 53 | + SelectedValuePath="Value" DisplayMemberPath="Label" |
| 54 | + Style="{StaticResource ComboBoxStyle}" MinWidth="260" HorizontalAlignment="Left" /> |
| 55 | + </DockPanel> |
| 56 | + |
| 57 | + <TextBlock Text="{loc:Str Settings_LogPath}" |
| 58 | + Foreground="{StaticResource BrushMuted}" FontSize="12" /> |
| 59 | + <TextBox x:Name="LogPathText" |
| 60 | + Style="{StaticResource TextBoxStyle}" |
| 61 | + IsReadOnly="True" FontFamily="Consolas" FontSize="12" |
| 62 | + Margin="0,4,0,8" /> |
| 63 | + |
| 64 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,20"> |
| 65 | + <Button Content="{loc:Str Settings_OpenLogFolder}" |
| 66 | + Style="{StaticResource SecondaryButtonStyle}" Click="OpenLogFolder_Click" Margin="0,0,8,0" /> |
| 67 | + <Button Content="{loc:Str Settings_DeleteLogs}" |
| 68 | + Style="{StaticResource SecondaryButtonStyle}" Click="DeleteLogs_Click" Margin="0,0,12,0" /> |
| 69 | + <TextBlock x:Name="LogActionStatus" VerticalAlignment="Center" |
| 70 | + Foreground="{StaticResource BrushMuted}" FontSize="12" /> |
| 71 | + </StackPanel> |
| 72 | + |
| 73 | + <!-- ── Support ID ── --> |
| 74 | + <TextBlock Text="{loc:Str Settings_SupportIdHeading}" |
| 75 | + FontWeight="SemiBold" FontSize="14" Margin="0,0,0,8" /> |
| 76 | + |
| 77 | + <DockPanel Margin="0,0,0,6"> |
| 78 | + <Button DockPanel.Dock="Right" Content="{loc:Str Common_Copy}" |
| 79 | + Style="{StaticResource CopyButtonStyle}" Click="CopyId_Click" /> |
| 80 | + <TextBox x:Name="SupportIdText" |
| 81 | + Style="{StaticResource TextBoxStyle}" |
| 82 | + IsReadOnly="True" FontFamily="Consolas" FontSize="12" /> |
| 83 | + </DockPanel> |
| 84 | + <TextBlock Text="{loc:Str Settings_SupportIdHint}" TextWrapping="Wrap" |
| 85 | + Foreground="{StaticResource BrushMuted}" FontSize="12" Margin="0,0,0,8" /> |
| 86 | + <Button Content="{loc:Str Settings_ResetId}" |
| 87 | + Style="{StaticResource SecondaryButtonStyle}" HorizontalAlignment="Left" |
| 88 | + Click="ResetId_Click" Margin="0,0,0,24" /> |
| 89 | + |
| 90 | + <!-- ── Footer ── --> |
| 91 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
| 92 | + <Button Content="{loc:Str Common_OK}" |
| 93 | + Style="{StaticResource PrimaryButtonStyle}" |
| 94 | + MinWidth="90" IsDefault="True" Click="Ok_Click" Margin="0,0,8,0" /> |
| 95 | + <Button Content="{loc:Str Common_Cancel}" |
| 96 | + Style="{StaticResource SecondaryButtonStyle}" |
| 97 | + MinWidth="90" IsCancel="True" /> |
| 98 | + </StackPanel> |
45 | 99 | </StackPanel> |
46 | 100 | </Window> |
0 commit comments