diff --git a/src/Artemis.UI/Screens/Settings/Debug/DebugView.xaml b/src/Artemis.UI/Screens/Settings/Debug/DebugView.xaml index 08b3757db..0b7efd0b2 100644 --- a/src/Artemis.UI/Screens/Settings/Debug/DebugView.xaml +++ b/src/Artemis.UI/Screens/Settings/Debug/DebugView.xaml @@ -12,6 +12,7 @@ Background="{DynamicResource MaterialDesignPaper}" FontFamily="pack://application:,,,/MaterialDesignThemes.Wpf;component/Resources/Roboto/#Roboto" UseLayoutRounding="True" + FadeContentIfInactive="False" Width="800" Height="800" d:DesignHeight="800" diff --git a/src/Plugins/Artemis.Plugins.LayerBrushes.Color/ColorBrush.cs b/src/Plugins/Artemis.Plugins.LayerBrushes.Color/ColorBrush.cs index 5b7b2d46c..b4417aef9 100644 --- a/src/Plugins/Artemis.Plugins.LayerBrushes.Color/ColorBrush.cs +++ b/src/Plugins/Artemis.Plugins.LayerBrushes.Color/ColorBrush.cs @@ -77,7 +77,7 @@ namespace Artemis.Plugins.LayerBrushes.Color private void CreateShader(SKRect pathBounds) { - var center = new SKPoint(Layer.Bounds.MidX, Layer.Bounds.MidY); + var center = new SKPoint(pathBounds.MidX, pathBounds.MidY); SKShader shader; switch (GradientTypeProperty.CurrentValue) { @@ -85,7 +85,7 @@ namespace Artemis.Plugins.LayerBrushes.Color shader = SKShader.CreateColor(_color); break; case GradientType.LinearGradient: - shader = SKShader.CreateLinearGradient(new SKPoint(0, 0), new SKPoint(pathBounds.Width, 0), + shader = SKShader.CreateLinearGradient(new SKPoint(pathBounds.Left, pathBounds.Top), new SKPoint(pathBounds.Right, pathBounds.Bottom), GradientProperty.Value.GetColorsArray(), GradientProperty.Value.GetPositionsArray(), SKShaderTileMode.Repeat); break;