mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
UI - Added debugger log tab (#753)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user