Skip to content

Commit

Permalink
dropdown hc update (#6096)
Browse files Browse the repository at this point in the history
  • Loading branch information
tashatitova authored Oct 18, 2021
1 parent 1f2d163 commit 4119c68
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
12 changes: 11 additions & 1 deletion dev/DropDownButton/DropDownButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonForegroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChevronIcon" Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource DropDownButtonForegroundSecondaryPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<VisualState.Setters>
<Setter Target="ChevronIcon.(local:AnimatedIcon.State)" Value="PointerOver"/>
Expand Down Expand Up @@ -114,7 +117,14 @@
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
AutomationProperties.AccessibilityView="Raw" />

<local:AnimatedIcon x:Name="ChevronIcon" Grid.Column="1" Margin="8,0,0,0" AutomationProperties.AccessibilityView="Raw" local:AnimatedIcon.State="Normal" Width="12" Height="12" Foreground="{ThemeResource DropDownButtonForegroundSecondary}">
<local:AnimatedIcon x:Name="ChevronIcon"
Grid.Column="1"
Margin="8,0,0,0"
Width="12"
Height="12"
Foreground="{ThemeResource DropDownButtonForegroundSecondary}"
AutomationProperties.AccessibilityView="Raw"
local:AnimatedIcon.State="Normal">
<animatedvisuals:AnimatedChevronDownSmallVisualSource/>
<local:AnimatedIcon.FallbackIconSource>
<local:FontIconSource
Expand Down
11 changes: 7 additions & 4 deletions dev/DropDownButton/DropDownButton_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@

<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<StaticResource x:Key="DropDownButtonForegroundSecondaryPressed" ResourceKey="TextFillColorTertiaryBrush"/>
<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="DropDownButtonForegroundSecondaryPressed" ResourceKey="TextFillColorTertiaryBrush"/>
<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="DropDownButtonForegroundSecondaryPressed" ResourceKey="SystemControlHighlightBaseHighBrush"/>
<StaticResource x:Key="DropDownButtonForegroundSecondary" ResourceKey="SystemColorButtonTextColor"/>
<StaticResource x:Key="DropDownButtonForegroundSecondary" ResourceKey="SystemColorButtonTextColorBrush"/>
<StaticResource x:Key="DropDownButtonForegroundSecondaryPointerOver" ResourceKey="SystemColorHighlightColorBrush"/>
<StaticResource x:Key="DropDownButtonForegroundSecondaryPressed" ResourceKey="SystemColorHighlightColorBrush"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>

0 comments on commit 4119c68

Please sign in to comment.