Changing default key for FanzyZones (#10751)

* Changing default key

* Update Settings.h
This commit is contained in:
Clint Rutkas 2021-04-15 02:11:08 -07:00 committed by GitHub
parent b585aef166
commit e9ce9ab87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ namespace ZonedWindowProperties
const wchar_t MultiMonitorDeviceID[] = L"FancyZones#MultiMonitorDevice"; const wchar_t MultiMonitorDeviceID[] = L"FancyZones#MultiMonitorDevice";
} }
// in reality, this file needs to be kept in sync currently with src/settings-ui/Microsoft.PowerToys.Settings.UI.Library/FZConfigProperties.cs
struct Settings struct Settings
{ {
enum struct OverlappingZonesAlgorithm : int enum struct OverlappingZonesAlgorithm : int
@ -45,7 +46,7 @@ struct Settings
std::wstring zoneHighlightColor = L"#008CFF"; std::wstring zoneHighlightColor = L"#008CFF";
int zoneHighlightOpacity = 50; int zoneHighlightOpacity = 50;
OverlappingZonesAlgorithm overlappingZonesAlgorithm = OverlappingZonesAlgorithm::Smallest; OverlappingZonesAlgorithm overlappingZonesAlgorithm = OverlappingZonesAlgorithm::Smallest;
PowerToysSettings::HotkeyObject editorHotkey = PowerToysSettings::HotkeyObject::from_settings(true, false, false, false, VK_OEM_3); PowerToysSettings::HotkeyObject editorHotkey = PowerToysSettings::HotkeyObject::from_settings(true, false, false, true, VK_OEM_3);
std::wstring excludedApps = L""; std::wstring excludedApps = L"";
std::vector<std::wstring> excludedAppsArray; std::vector<std::wstring> excludedAppsArray;
}; };

View File

@ -9,7 +9,8 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{ {
public class FZConfigProperties public class FZConfigProperties
{ {
public static readonly HotkeySettings DefaultHotkeyValue = new HotkeySettings(true, false, false, false, 0xc0); // in reality, this file needs to be kept in sync currently with src\modules\fancyzones\lib\Settings.h
public static readonly HotkeySettings DefaultHotkeyValue = new HotkeySettings(true, false, false, true, 0xc0);
public FZConfigProperties() public FZConfigProperties()
{ {