Browse Source

Use Transparent background in ColorPreviewer so DropShadow appears

This addresses #10539. Drop shadow for now requires the Background to be set in order to work correctly.
pull/10816/head
robloo 4 years ago
parent
commit
12fa653ca2
  1. 1
      src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPreviewer.xaml
  2. 1
      src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPreviewer.xaml

1
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPreviewer.xaml

@ -64,6 +64,7 @@
<Border Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Transparent"
BoxShadow="0 0 10 2 #BF000000"
CornerRadius="{TemplateBinding CornerRadius}"
Margin="10">

1
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPreviewer.xaml

@ -64,6 +64,7 @@
<Border Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Transparent"
BoxShadow="0 0 10 2 #BF000000"
CornerRadius="{TemplateBinding CornerRadius}"
Margin="10">

Loading…
Cancel
Save