mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[FancyZones] Custom canvas layouts scaling (#3644)
* Make canvas layout scaling sensitive * Revert "Make canvas layout scaling sensitive" This reverts commit705dab7e36. * Revert "Revert "Make canvas layout scaling sensitive"" This reverts commitb9dd27644c. * Cleanup * Minor refactoring * Address PR comments
This commit is contained in:
@@ -31,7 +31,7 @@ namespace FancyZonesEditor
|
||||
|
||||
KeyUp += MainWindow_KeyUp;
|
||||
|
||||
if (_settings.WorkArea.Height < 900)
|
||||
if (Settings.WorkArea.Height < 900)
|
||||
{
|
||||
SizeToContent = SizeToContent.WidthAndHeight;
|
||||
WrapPanelItemSize = 180;
|
||||
@@ -146,6 +146,7 @@ namespace FancyZonesEditor
|
||||
private void Apply_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
EditorOverlay mainEditor = EditorOverlay.Current;
|
||||
|
||||
if (mainEditor.DataContext is LayoutModel model)
|
||||
{
|
||||
if (model is GridLayoutModel)
|
||||
@@ -154,7 +155,7 @@ namespace FancyZonesEditor
|
||||
}
|
||||
else
|
||||
{
|
||||
model.Apply();
|
||||
model.Persist();
|
||||
}
|
||||
|
||||
Close();
|
||||
|
||||
Reference in New Issue
Block a user