UI - Added debugger log tab (#753)

This commit is contained in:
Diogo Trindade authored and GitHub committed 2023-02-01 19:46:37 +01:00
1 parent 425485b059
commit b493e43c6e
10 files changed
+174 -31

No files matched your search

@@ -241,7 +241,16 @@ public class ColorGradient : IList<ColorGradientStop>, IList, INotifyCollectionC
return _stops[^1].Color;
//find the first stop after the position
int stop2Index = _stops.FindIndex(s => s.Position >= position);
int stop2Index = 0;
for (int i = 0; i < _stops.Count; i++)
{
if (_stops[i].Position >= position)
{
stop2Index = i;
break;
}
}
//if the position is before the first stop, return that color
if (stop2Index == 0)
return _stops[0].Color;