mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[FancyZones] Customize default layouts (#21156)
This commit is contained in:
@@ -2,14 +2,25 @@
|
||||
|
||||
#include <guiddef.h>
|
||||
|
||||
#include <FancyZonesLib/FancyZonesData/LayoutDefaults.h>
|
||||
#include <FancyZonesLib/FancyZonesDataTypes.h>
|
||||
|
||||
struct Layout
|
||||
{
|
||||
GUID uuid;
|
||||
FancyZonesDataTypes::ZoneSetLayoutType type;
|
||||
bool showSpacing;
|
||||
int spacing;
|
||||
int zoneCount;
|
||||
int sensitivityRadius;
|
||||
};
|
||||
GUID uuid = GUID_NULL;
|
||||
FancyZonesDataTypes::ZoneSetLayoutType type = FancyZonesDataTypes::ZoneSetLayoutType::PriorityGrid;
|
||||
bool showSpacing = DefaultValues::ShowSpacing;
|
||||
int spacing = DefaultValues::Spacing;
|
||||
int zoneCount = DefaultValues::ZoneCount;
|
||||
int sensitivityRadius = DefaultValues::SensitivityRadius;
|
||||
};
|
||||
|
||||
inline bool operator==(const Layout& lhs, const Layout& rhs)
|
||||
{
|
||||
return lhs.uuid == rhs.uuid &&
|
||||
lhs.type == rhs.type &&
|
||||
lhs.showSpacing == rhs.showSpacing &&
|
||||
lhs.spacing == rhs.spacing &&
|
||||
lhs.zoneCount == rhs.zoneCount &&
|
||||
lhs.sensitivityRadius == rhs.sensitivityRadius;
|
||||
}
|
||||
Reference in New Issue
Block a user