mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[FancyZones] Feature to create zone layouts spanning multiple monitors (#5289)
* Added the setting * Added a property to Editor Settings This will be used later * Fixed a bug in the previous commit * Simplified a method * Added snapping points to the editor * Simplified a method in ZoneSet * Updated ZoneSet testcases * Add a method to FancyZones / ZoneWindowHost * Almost works * The editor now launches, but FZ does not understand the results * Refactored some code * Snapping to a zone by dragging seems to work * Hotkeys seem to work * Refresh the work area handler after changing settings * Fixed zones not snapping to monitor edges when moved * Remove unused method in FancyZones.h * Fixed an issue with DPI awareness * Renamed setting to spanZonesAcrossMonitors * Renamed a function * Fixed a bug with the magnetic effect * Fix restoring window positions on layout changes
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#define MULTI_ZONE_STAMP L"FancyZones_zones"
|
||||
#define RESTORE_SIZE_STAMP L"FancyZones_RestoreSize"
|
||||
#define RESTORE_ORIGIN_STAMP L"FancyZones_RestoreOrigin"
|
||||
#define MULTI_MONITOR_MODE_DEVICE L"FancyZonesMultiMonitorDevice"
|
||||
#include <common/settings_objects.h>
|
||||
|
||||
struct Settings
|
||||
@@ -20,6 +21,7 @@ struct Settings
|
||||
bool restoreSize = false;
|
||||
bool use_cursorpos_editor_startupscreen = true;
|
||||
bool showZonesOnAllMonitors = false;
|
||||
bool spanZonesAcrossMonitors = false;
|
||||
bool makeDraggedWindowTransparent = true;
|
||||
std::wstring zoneColor = L"#F5FCFF";
|
||||
std::wstring zoneBorderColor = L"#FFFFFF";
|
||||
|
||||
Reference in New Issue
Block a user