FancyZones editor display zone numbers & PowerRename fix (#1726)

* Fix for issue #1218

Design Change: Default Enter Action

* Fix for issue #1085

* change zone's number color and font
remove the light blue background

* Fix for disappearing zone number in editor

* Grid layout reversed order fix

Co-authored-by: sqrlmn <sqrlmn@users.noreply.github.com>
Co-authored-by: Enrico Giordani <enrico.giordani@gmail.com>
This commit is contained in:
PrzemyslawTusinski
2020-03-27 13:07:19 +01:00
committed by GitHub
parent 0aeecc7a99
commit f9a756d1ff
8 changed files with 88 additions and 45 deletions

View File

@@ -329,15 +329,15 @@ namespace FancyZonesEditor
_gridModel.ColumnPercents[col] = ((_multiplier * (col + 1)) / cols) - ((_multiplier * col) / cols);
}
int index = 0;
for (int col = cols - 1; col >= 0; col--)
int index = ZoneCount - 1;
for (int row = rows - 1; row >= 0; row--)
{
for (int row = rows - 1; row >= 0; row--)
for (int col = cols - 1; col >= 0; col--)
{
_gridModel.CellChildMap[row, col] = index++;
if (index == ZoneCount)
_gridModel.CellChildMap[row, col] = index--;
if (index < 0)
{
index--;
index = 0; ;
}
}
}