mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
FZ editor: splitter thickness set to 1px when space around zones is zero (#2020)
This commit is contained in:
@@ -101,7 +101,16 @@ namespace FancyZonesEditor
|
|||||||
|
|
||||||
private int SplitterThickness
|
private int SplitterThickness
|
||||||
{
|
{
|
||||||
get { return Math.Max(((App)Application.Current).ZoneSettings.Spacing, 5); }
|
get
|
||||||
|
{
|
||||||
|
Settings settings = ((App)Application.Current).ZoneSettings;
|
||||||
|
if (!settings.ShowSpacing)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Math.Max(settings.Spacing, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateSplitter()
|
private void UpdateSplitter()
|
||||||
|
|||||||
Reference in New Issue
Block a user