mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Color brush - Fixed gradient picker not appearing
Gradient picker - Use dialog instead of a popup window
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user