mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
When spacing is set to 0 or turned off display 1px border so user can distinguish zone edges. No spacing will be applied in actual layout. (#994)
This commit is contained in:
@@ -557,8 +557,9 @@ namespace FancyZonesEditor
|
|||||||
}
|
}
|
||||||
|
|
||||||
Settings settings = ((App)Application.Current).ZoneSettings;
|
Settings settings = ((App)Application.Current).ZoneSettings;
|
||||||
int spacing = settings.Spacing;
|
|
||||||
int gutter = settings.Spacing;
|
int spacing, gutter;
|
||||||
|
spacing = gutter = settings.ShowSpacing ? settings.Spacing : 0;
|
||||||
|
|
||||||
int cols = model.Columns;
|
int cols = model.Columns;
|
||||||
int rows = model.Rows;
|
int rows = model.Rows;
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
xmlns:local="clr-namespace:FancyZonesEditor"
|
xmlns:local="clr-namespace:FancyZonesEditor"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Background="LightGray"
|
Background="LightGray"
|
||||||
|
BorderThickness="1"
|
||||||
|
BorderBrush="SlateGray"
|
||||||
Opacity="0.5"
|
Opacity="0.5"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Grid x:Name="Frame" Visibility="Collapsed">
|
<Grid x:Name="Frame" Visibility="Collapsed">
|
||||||
|
|||||||
Reference in New Issue
Block a user