mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +08:00
[Settings V2] Updated default color values for fz (#2972)
* updated default color values for fz * moved default values to shared constants Co-authored-by: Lavius Motileng <laviusmotileng-ms>
This commit is contained in:
parent
b37695bc6f
commit
3737ad6524
@ -0,0 +1,22 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
{
|
||||
public static class ConfigDefaults
|
||||
{
|
||||
// Fancy Zones Default Colors
|
||||
public static readonly string DefaultFancyZonesZoneHighlightColor = "#0078D7";
|
||||
public static readonly string DefaultFancyZonesInActiveColor = "#F5FCFF";
|
||||
public static readonly string DefaultFancyzonesBorderColor = "#FFFFFF";
|
||||
|
||||
// Fancy Zones Default Flags.
|
||||
public static readonly bool DefaultFancyzonesShiftDrag = true;
|
||||
public static readonly bool DefaultUseCursorposEditorStartupscreen = true;
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
{
|
||||
public FZConfigProperties()
|
||||
{
|
||||
this.FancyzonesShiftDrag = new BoolProperty(true);
|
||||
this.FancyzonesShiftDrag = new BoolProperty(ConfigDefaults.DefaultFancyzonesShiftDrag);
|
||||
this.FancyzonesOverrideSnapHotkeys = new BoolProperty();
|
||||
this.FancyzonesMouseSwitch = new BoolProperty();
|
||||
this.FancyzonesMoveWindowsAcrossMonitors = new BoolProperty();
|
||||
@ -18,9 +18,9 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
this.FancyzonesZoneSetChangeMoveWindows = new BoolProperty();
|
||||
this.FancyzonesVirtualDesktopChangeMoveWindows = new BoolProperty();
|
||||
this.FancyzonesAppLastZoneMoveWindows = new BoolProperty();
|
||||
this.UseCursorposEditorStartupscreen = new BoolProperty(true);
|
||||
this.UseCursorposEditorStartupscreen = new BoolProperty(ConfigDefaults.DefaultUseCursorposEditorStartupscreen);
|
||||
this.FancyzonesShowOnAllMonitors = new BoolProperty();
|
||||
this.FancyzonesZoneHighlightColor = new StringProperty("#F5FCFF");
|
||||
this.FancyzonesZoneHighlightColor = new StringProperty(ConfigDefaults.DefaultFancyZonesZoneHighlightColor);
|
||||
this.FancyzonesHighlightOpacity = new IntProperty(50);
|
||||
this.FancyzonesEditorHotkey = new KeyBoardKeysProperty(
|
||||
new HotkeySettings()
|
||||
@ -34,8 +34,8 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
});
|
||||
this.FancyzonesMakeDraggedWindowTransparent = new BoolProperty();
|
||||
this.FancyzonesExcludedApps = new StringProperty();
|
||||
this.FancyzonesInActiveColor = new StringProperty("#F5FCFF");
|
||||
this.FancyzonesBorderColor = new StringProperty("#F5FCFF");
|
||||
this.FancyzonesInActiveColor = new StringProperty(ConfigDefaults.DefaultFancyZonesInActiveColor);
|
||||
this.FancyzonesBorderColor = new StringProperty(ConfigDefaults.DefaultFancyzonesBorderColor);
|
||||
}
|
||||
|
||||
[JsonPropertyName("fancyzones_shiftDrag")]
|
||||
|
@ -253,7 +253,7 @@ namespace ViewModelTests
|
||||
{
|
||||
// arrange
|
||||
FancyZonesViewModel viewModel = new FancyZonesViewModel();
|
||||
Assert.AreEqual("#F5FCFF", ToRGBHex(viewModel.ZoneHighlightColor));
|
||||
Assert.AreEqual(ConfigDefaults.DefaultFancyZonesZoneHighlightColor, ToRGBHex(viewModel.ZoneHighlightColor));
|
||||
|
||||
// Assert
|
||||
ShellPage.DefaultSndMSGCallback = msg =>
|
||||
@ -271,7 +271,7 @@ namespace ViewModelTests
|
||||
{
|
||||
// arrange
|
||||
FancyZonesViewModel viewModel = new FancyZonesViewModel();
|
||||
Assert.AreEqual("#F5FCFF", ToRGBHex(viewModel.ZoneBorderColor));
|
||||
Assert.AreEqual(ConfigDefaults.DefaultFancyzonesBorderColor, ToRGBHex(viewModel.ZoneBorderColor));
|
||||
|
||||
// Assert
|
||||
ShellPage.DefaultSndMSGCallback = msg =>
|
||||
@ -289,7 +289,7 @@ namespace ViewModelTests
|
||||
{
|
||||
// arrange
|
||||
FancyZonesViewModel viewModel = new FancyZonesViewModel();
|
||||
Assert.AreEqual("#F5FCFF", ToRGBHex(viewModel.ZoneInActiveColor));
|
||||
Assert.AreEqual(ConfigDefaults.DefaultFancyZonesInActiveColor, ToRGBHex(viewModel.ZoneInActiveColor));
|
||||
|
||||
// Assert
|
||||
ShellPage.DefaultSndMSGCallback = msg =>
|
||||
|
Loading…
Reference in New Issue
Block a user