Changed default theme in settings to be consistent with that of shortcut guide (#6832)

* changed default theme to be consistent with that of shortcut guide

* change the test to reflect that the initial settings theme or shortcut guide is 'system' and not 'light'.
This commit is contained in:
Alekhya
2020-09-28 12:44:18 -07:00
committed by GitHub
parent 9f8202bc4f
commit a5b22cffa2
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
{
OverlayOpacity = new IntProperty(90);
PressTime = new IntProperty(900);
Theme = new StringProperty("light");
Theme = new StringProperty("system");
}
[JsonPropertyName("overlay_opacity")]

View File

@@ -62,7 +62,8 @@ namespace ViewModelTests
// Arrange
ShortcutGuideViewModel viewModel = new ShortcutGuideViewModel(SettingsRepository<GeneralSettings>.GetInstance(mockGeneralSettingsUtils.Object), SettingsRepository<ShortcutGuideSettings>.GetInstance(mockShortcutGuideSettingsUtils.Object), SendMockIPCConfigMSG, ShortCutGuideTestFolderName);
Assert.AreEqual(1, viewModel.ThemeIndex);
// Initialize shortcut guide settings theme to 'system' to be in sync with shortcut_guide.h.
Assert.AreEqual(2, viewModel.ThemeIndex);
// Act
viewModel.ThemeIndex = 0;