|
|
|
@ -3,9 +3,6 @@ |
|
|
|
xmlns:controls="using:Avalonia.Controls" |
|
|
|
x:CompileBindings="True"> |
|
|
|
|
|
|
|
<!-- This must follow OverlayCornerRadius --> |
|
|
|
<CornerRadius x:Key="TopOverlayCornerRadius">5,5,0,0</CornerRadius> |
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type ColorPicker}" |
|
|
|
TargetType="ColorPicker"> |
|
|
|
<Setter Property="CornerRadius" Value="{DynamicResource ControlCornerRadius}" /> |
|
|
|
@ -25,7 +22,7 @@ |
|
|
|
Padding="0,0,10,0" |
|
|
|
UseLayoutRounding="False"> |
|
|
|
<DropDownButton.Styles> |
|
|
|
<Style Selector="FlyoutPresenter.NoPadding"> |
|
|
|
<Style Selector="FlyoutPresenter.nopadding"> |
|
|
|
<Setter Property="Padding" Value="0" /> |
|
|
|
</Style> |
|
|
|
</DropDownButton.Styles> |
|
|
|
@ -45,8 +42,10 @@ |
|
|
|
</Panel> |
|
|
|
</DropDownButton.Content> |
|
|
|
<DropDownButton.Flyout> |
|
|
|
<Flyout FlyoutPresenterClasses="NoPadding"> |
|
|
|
<Flyout FlyoutPresenterClasses="nopadding" |
|
|
|
Placement="Bottom"> |
|
|
|
<ColorView x:Name="FlyoutColorView" |
|
|
|
Classes="topoverlay" |
|
|
|
Color="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
|
ColorModel="{Binding ColorModel, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
|
ColorSpectrumComponents="{TemplateBinding ColorSpectrumComponents}" |
|
|
|
@ -81,10 +80,4 @@ |
|
|
|
</Setter> |
|
|
|
</ControlTheme> |
|
|
|
|
|
|
|
<!-- Adjust Background within Flyout --> |
|
|
|
<!-- Note: This is implemented but there seems to be an issue and the selector can't match across the Flyout --> |
|
|
|
<!--<Style Selector="ColorPicker /template/ ColorView#FlyoutColorView /template/ Border#TabBackgroundBorder"> |
|
|
|
<Setter Property="CornerRadius" Value="{DynamicResource TopOverlayCornerRadius}" /> |
|
|
|
</Style>--> |
|
|
|
|
|
|
|
</ResourceDictionary> |
|
|
|
|