Fix editor tables rows coloring to start with darker one
This commit is contained in:
@@ -266,7 +266,7 @@ namespace FlaxEditor.Windows.Profiler
|
|||||||
|
|
||||||
// Add row to the table
|
// Add row to the table
|
||||||
row.Width = _table.Width;
|
row.Width = _table.Width;
|
||||||
row.BackgroundColor = rowIndex % 2 == 0 ? rowColor2 : Color.Transparent;
|
row.BackgroundColor = rowIndex % 2 == 1 ? rowColor2 : Color.Transparent;
|
||||||
row.Parent = _table;
|
row.Parent = _table;
|
||||||
rowIndex++;
|
rowIndex++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -538,7 +538,7 @@ namespace FlaxEditor.Windows.Profiler
|
|||||||
row.Depth = e.Depth;
|
row.Depth = e.Depth;
|
||||||
row.Width = _table.Width;
|
row.Width = _table.Width;
|
||||||
row.Visible = e.Depth < 2;
|
row.Visible = e.Depth < 2;
|
||||||
row.BackgroundColor = i % 2 == 0 ? rowColor2 : Color.Transparent;
|
row.BackgroundColor = i % 2 == 1 ? rowColor2 : Color.Transparent;
|
||||||
row.Parent = _table;
|
row.Parent = _table;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ namespace FlaxEditor.Windows.Profiler
|
|||||||
row.Depth = e.Depth;
|
row.Depth = e.Depth;
|
||||||
row.Width = _table.Width;
|
row.Width = _table.Width;
|
||||||
row.Visible = e.Depth < 3;
|
row.Visible = e.Depth < 3;
|
||||||
row.BackgroundColor = i % 2 == 0 ? rowColor2 : Color.Transparent;
|
row.BackgroundColor = i % 2 == 1 ? rowColor2 : Color.Transparent;
|
||||||
row.Parent = _table;
|
row.Parent = _table;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ namespace FlaxEditor.Windows.Profiler
|
|||||||
|
|
||||||
// Add row to the table
|
// Add row to the table
|
||||||
row.Width = _table.Width;
|
row.Width = _table.Width;
|
||||||
row.BackgroundColor = rowIndex % 2 == 0 ? rowColor2 : Color.Transparent;
|
row.BackgroundColor = rowIndex % 2 == 1 ? rowColor2 : Color.Transparent;
|
||||||
row.Parent = _table;
|
row.Parent = _table;
|
||||||
rowIndex++;
|
rowIndex++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ namespace FlaxEditor.Windows.Profiler
|
|||||||
|
|
||||||
var table = isRpc ? _tableRpc : _tableRep;
|
var table = isRpc ? _tableRpc : _tableRep;
|
||||||
row.Width = table.Width;
|
row.Width = table.Width;
|
||||||
row.BackgroundColor = rowCount[isRpc ? 0 : 1] % 2 == 0 ? rowColor2 : Color.Transparent;
|
row.BackgroundColor = rowCount[isRpc ? 0 : 1] % 2 == 1 ? rowColor2 : Color.Transparent;
|
||||||
row.Parent = table;
|
row.Parent = table;
|
||||||
if (isRpc)
|
if (isRpc)
|
||||||
rowCount.X++;
|
rowCount.X++;
|
||||||
|
|||||||
Reference in New Issue
Block a user