diff --git a/src/modules/registrypreview/RegistryPreviewUI/MainWindow.Events.cs b/src/modules/registrypreview/RegistryPreviewUI/MainWindow.Events.cs index 10149d1611..949bb3b7b0 100644 --- a/src/modules/registrypreview/RegistryPreviewUI/MainWindow.Events.cs +++ b/src/modules/registrypreview/RegistryPreviewUI/MainWindow.Events.cs @@ -56,7 +56,6 @@ namespace RegistryPreview } // Save app settings - jsonSettings.SetNamedValue("checkBoxTextBox.Checked", JsonValue.CreateBooleanValue(checkBoxTextBox.IsChecked.Value)); SaveSettingsFile(settingsFolder, settingsFile); } @@ -68,12 +67,6 @@ namespace RegistryPreview // static flag to track whether the Visual Tree is ready - if the main Grid has been loaded, the tree is ready. visualTreeReady = true; - // Load and restore app settings - if (jsonSettings.ContainsKey("checkBoxTextBox.Checked")) - { - checkBoxTextBox.IsChecked = jsonSettings.GetNamedBoolean("checkBoxTextBox.Checked"); - } - // Check to see if the REG file was opened and parsed successfully if (OpenRegistryFile(App.AppFilename) == false) { @@ -354,33 +347,5 @@ namespace RegistryPreview RefreshRegistryFile(); saveButton.IsEnabled = true; } - - /// - /// Readonly checkbox is checked, set textBox to read only; also update the font color so it has a hint of being "disabled" (also the hover state!) - /// - private void CheckBoxTextBox_Checked(object sender, RoutedEventArgs e) - { - textBox.IsReadOnly = true; - SolidColorBrush brush = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 120, 120, 120)); // (SolidColorBrush)Application.Current.Resources["TextBoxDisabledForegroundThemeBrush"]; - if (brush != null) - { - textBox.Foreground = brush; - textBox.Resources["TextControlForegroundPointerOver"] = brush; - } - } - - /// - /// Readonly checkbox is unchecked, set textBox to be editable; also update the font color back to a theme friendly foreground (also the hover state!) - /// - private void CheckBoxTextBox_Unchecked(object sender, RoutedEventArgs e) - { - textBox.IsReadOnly = false; - SolidColorBrush brush = (SolidColorBrush)Application.Current.Resources["TextControlForeground"]; - if (brush != null) - { - textBox.Foreground = brush; - textBox.Resources["TextControlForegroundPointerOver"] = brush; - } - } } } diff --git a/src/modules/registrypreview/RegistryPreviewUI/MainWindow.xaml b/src/modules/registrypreview/RegistryPreviewUI/MainWindow.xaml index b3bb4d8121..e8c8e4b4ae 100644 --- a/src/modules/registrypreview/RegistryPreviewUI/MainWindow.xaml +++ b/src/modules/registrypreview/RegistryPreviewUI/MainWindow.xaml @@ -41,7 +41,6 @@ - - - - - + TabIndex="1"> + TabIndex="2"> System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Read only - Edit file... diff --git a/src/settings-ui/Settings.UI/Assets/Modules/OOBE/RegistryPreview.png b/src/settings-ui/Settings.UI/Assets/Modules/OOBE/RegistryPreview.png index 369e117a7e..754005de39 100644 Binary files a/src/settings-ui/Settings.UI/Assets/Modules/OOBE/RegistryPreview.png and b/src/settings-ui/Settings.UI/Assets/Modules/OOBE/RegistryPreview.png differ diff --git a/src/settings-ui/Settings.UI/Assets/Modules/RegistryPreview.png b/src/settings-ui/Settings.UI/Assets/Modules/RegistryPreview.png index ec1a043536..4afbf66f06 100644 Binary files a/src/settings-ui/Settings.UI/Assets/Modules/RegistryPreview.png and b/src/settings-ui/Settings.UI/Assets/Modules/RegistryPreview.png differ