Updated namespaces
This commit is contained in:
Родитель
f9b61f0817
Коммит
224c1a7837
|
@ -4,6 +4,7 @@ using Comet.Handlers;
|
|||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.ApplicationModel;
|
||||
using Microsoft.Maui.Devices;
|
||||
using Microsoft.Maui.Handlers;
|
||||
using Microsoft.Maui.Hosting;
|
||||
|
|
|
@ -99,13 +99,13 @@ namespace Comet
|
|||
{
|
||||
canvas.SaveState();
|
||||
|
||||
var colors = new GradientStop[gradient.Stops.Length];
|
||||
var colors = new PaintGradientStop[gradient.Stops.Length];
|
||||
|
||||
var sortedStops = gradient.GetSortedStops();
|
||||
|
||||
for (var i = 0; i < sortedStops.Length; i++)
|
||||
{
|
||||
colors[i] = new GradientStop(sortedStops[i].Offset,sortedStops[i].Color);
|
||||
colors[i] = new PaintGradientStop(sortedStops[i].Offset,sortedStops[i].Color);
|
||||
}
|
||||
|
||||
if (gradient is LinearGradient linearGradient)
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Maui.ApplicationModel;
|
||||
using Microsoft.Maui.Devices;
|
||||
|
||||
namespace Comet
|
||||
|
|
Загрузка…
Ссылка в новой задаче