Color brush - Fixed gradient picker not appearing

Gradient picker - Use dialog instead of a popup window
This commit is contained in:
SpoinkyNL committed 2020-04-17 23:01:42 +02:00
1 parent a8912076d3
commit 92a3e0d61b
21 files changed
+206 -101

No files matched your search

@@ -47,7 +47,10 @@ namespace Artemis.Core.Models.Profile
public SKColor GetColor(float position)
{
var point = Stops.SingleOrDefault(f => f.Position == position);
if (!Stops.Any())
return SKColor.Empty;
var point = Stops.FirstOrDefault(f => f.Position == position);
if (point != null) return point.Color;
var before = Stops.First(w => w.Position == Stops.Min(m => m.Position));