Skip to content

Commit

Permalink
Adding missing brushes
Browse files Browse the repository at this point in the history
Co-Authored-By: robloo <[email protected]>
  • Loading branch information
niels9001 and robloo committed Sep 23, 2023
1 parent f19604b commit 72e6e9a
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions components/ColorPicker/src/ColorPickerButton.xaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,48 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls">

<Style BasedOn="{StaticResource DefaultColorPickerButtonStyle}"
TargetType="controls:ColorPickerButton" />
<!-- WinUI copy -->
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<StaticResource x:Key="DropDownButtonForegroundSecondary"
ResourceKey="TextFillColorSecondaryBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPointerOver"
ResourceKey="TextFillColorTertiaryBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPressed"
ResourceKey="TextFillColorTertiaryBrush" />
</ResourceDictionary>

<ResourceDictionary x:Key="Light">
<StaticResource x:Key="DropDownButtonForegroundSecondary"
ResourceKey="TextFillColorSecondaryBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPointerOver"
ResourceKey="TextFillColorTertiaryBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPressed"
ResourceKey="TextFillColorTertiaryBrush" />
</ResourceDictionary>

<ResourceDictionary x:Key="HighContrast">
<StaticResource x:Key="DropDownButtonForegroundSecondary"
ResourceKey="SystemColorButtonTextColorBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPointerOver"
ResourceKey="SystemColorHighlightColorBrush" />
<StaticResource x:Key="DropDownButtonForegroundSecondaryPressed"
ResourceKey="SystemColorHighlightColorBrush" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<CornerRadius x:Key="ColorPickerButtonPreviewCornerRadius">2</CornerRadius>
<Thickness x:Key="ColorPickerButtonPadding">3,3,6,3</Thickness>
<x:Double x:Key="ColorPickerButtonPreviewMinHeight">22</x:Double>
<x:Double x:Key="ColorPickerButtonPreviewMinWidth">32</x:Double>

<!-- WinUI copy -->
<Style BasedOn="{StaticResource DefaultColorPickerButtonStyle}"
TargetType="controls:ColorPickerButton" />

<Style x:Key="DefaultColorPickerButtonStyle"
TargetType="controls:ColorPickerButton">
<Style.Setters>
Expand Down

0 comments on commit 72e6e9a

Please sign in to comment.