Skip to content

Commit

Permalink
Merge pull request #1073 from unoplatform/dev/arde/fix-lightweight-st…
Browse files Browse the repository at this point in the history
…yling-combobox-control

refactor: fix resources for ComboBox control
  • Loading branch information
agneszitte authored Jul 24, 2023
2 parents a04de42 + 594bc48 commit e55e49c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/library/Uno.Material/Styles/Controls/v2/ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@
<StaticResource x:Key="ComboBoxPlaceHolderForegroundFocused" ResourceKey="OnSurfaceLowBrush" />
<StaticResource x:Key="ComboBoxPlaceHolderForegroundFocusedPressed" ResourceKey="OnSurfaceLowBrush" />

<StaticResource x:Key="ComboBoxOpenedBorderBrush" ResourceKey="PrimaryBrush" />

<StaticResource x:Key="ComboBoxLeadingIconForeground" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="ComboBoxLeadingIconForegroundDisabled" ResourceKey="OnSurfaceLowBrush" />

<StaticResource x:Key="ComboBoxArrowForeground" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="ComboBoxArrowOpenedForeground" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="ComboBoxArrowForegroundOpened" ResourceKey="PrimaryBrush" />

<StaticResource x:Key="ComboBoxUpperPlaceHolderForeground" ResourceKey="PrimaryBrush" />
</ResourceDictionary>
Expand Down Expand Up @@ -189,14 +187,12 @@
<StaticResource x:Key="ComboBoxPlaceHolderForegroundDisabled" ResourceKey="OnSurfaceLowBrush" />
<StaticResource x:Key="ComboBoxPlaceHolderForegroundFocused" ResourceKey="OnSurfaceLowBrush" />
<StaticResource x:Key="ComboBoxPlaceHolderForegroundFocusedPressed" ResourceKey="OnSurfaceLowBrush" />

<StaticResource x:Key="ComboBoxOpenedBorderBrush" ResourceKey="PrimaryBrush" />


<StaticResource x:Key="ComboBoxLeadingIconForeground" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="ComboBoxLeadingIconForegroundDisabled" ResourceKey="OnSurfaceLowBrush" />

<StaticResource x:Key="ComboBoxArrowForeground" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="ComboBoxArrowOpenedForeground" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="ComboBoxArrowForegroundOpened" ResourceKey="PrimaryBrush" />

<StaticResource x:Key="ComboBoxUpperPlaceHolderForeground" ResourceKey="PrimaryBrush" />
</ResourceDictionary>
Expand Down Expand Up @@ -516,9 +512,9 @@
<VisualStateGroup x:Name="DropDownStates">
<VisualState x:Name="Opened">
<VisualState.Setters>
<Setter Target="RootGrid.BorderBrush" Value="{ThemeResource ComboBoxOpenedBorderBrush}" />
<Setter Target="RootGrid.BorderBrush" Value="{ThemeResource ComboBoxBorderBrushOpened}" />
<Setter Target="RootGrid.BorderThickness" Value="{StaticResource ComboBoxOpenedBorderThickness}" />
<Setter Target="DropDownGlyph_Up.Fill" Value="{ThemeResource ComboBoxArrowOpenedForeground}" />
<Setter Target="DropDownGlyph_Up.Fill" Value="{ThemeResource ComboBoxArrowForegroundOpened}" />
<Setter Target="DropDownGlyph_Down.Visibility" Value="Collapsed" />
<Setter Target="DropDownGlyph_Up.Visibility" Value="Visible" />
</VisualState.Setters>
Expand Down

0 comments on commit e55e49c

Please sign in to comment.