mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
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:
committed by
GitHub
parent
0aeecc7a99
commit
f9a756d1ff
@@ -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; ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user