mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
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:
@@ -12,7 +12,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
|||||||
{
|
{
|
||||||
OverlayOpacity = new IntProperty(90);
|
OverlayOpacity = new IntProperty(90);
|
||||||
PressTime = new IntProperty(900);
|
PressTime = new IntProperty(900);
|
||||||
Theme = new StringProperty("light");
|
Theme = new StringProperty("system");
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonPropertyName("overlay_opacity")]
|
[JsonPropertyName("overlay_opacity")]
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// Arrange
|
// Arrange
|
||||||
ShortcutGuideViewModel viewModel = new ShortcutGuideViewModel(SettingsRepository<GeneralSettings>.GetInstance(mockGeneralSettingsUtils.Object), SettingsRepository<ShortcutGuideSettings>.GetInstance(mockShortcutGuideSettingsUtils.Object), SendMockIPCConfigMSG, ShortCutGuideTestFolderName);
|
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
|
// Act
|
||||||
viewModel.ThemeIndex = 0;
|
viewModel.ThemeIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user