mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-05 04:39:08 +08: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:
parent
465de438ce
commit
918ebc62a2
@ -557,8 +557,9 @@ namespace FancyZonesEditor
|
||||
}
|
||||
|
||||
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 rows = model.Rows;
|
||||
|
@ -6,6 +6,8 @@
|
||||
xmlns:local="clr-namespace:FancyZonesEditor"
|
||||
mc:Ignorable="d"
|
||||
Background="LightGray"
|
||||
BorderThickness="1"
|
||||
BorderBrush="SlateGray"
|
||||
Opacity="0.5"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid x:Name="Frame" Visibility="Collapsed">
|
||||
|
Loading…
Reference in New Issue
Block a user