Browse Source

Fixed ToPaintable not having alpha

Krzysztof Krysiński 5 months ago
parent
commit
b245f91666
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor/Helpers/Extensions/ColorHelpers.cs

+ 1 - 1
src/PixiEditor/Helpers/Extensions/ColorHelpers.cs

@@ -41,7 +41,7 @@ internal static class ColorHelpers
     public static Paintable ToPaintable(this IBrush avaloniaBrush) => avaloniaBrush switch
     {
         ISolidColorBrush solidColorBrush => new BackendColor(solidColorBrush.Color.R, solidColorBrush.Color.G,
-            solidColorBrush.Color.B),
+            solidColorBrush.Color.B, solidColorBrush.Color.A),
         ILinearGradientBrush linearGradientBrush =>
             new LinearGradientPaintable(
                 new VecD(linearGradientBrush.StartPoint.Point.X, linearGradientBrush.StartPoint.Point.Y),