Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Dec 2, 2023
1 parent 6eefb88 commit 0387684
Show file tree
Hide file tree
Showing 8 changed files with 2,085 additions and 5 deletions.
1 change: 0 additions & 1 deletion ModernWpf/Styles/ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<Thickness x:Key="ComboBoxItemThemeTouchPadding">11,11,11,13</Thickness>
<Thickness x:Key="ComboBoxItemThemeGameControllerPadding">11,11,11,13</Thickness>
<Thickness x:Key="ComboBoxBackgroundBorderThicknessFocused">2</Thickness>
<Thickness x:Key="ComboBoxDropdownBorderPadding">0</Thickness>
<Thickness x:Key="ComboBoxDropdownContentMargin">0,4</Thickness>
<Thickness x:Key="ComboBoxTopHeaderMargin">0,0,0,8</Thickness>
<Thickness x:Key="ComboBoxPadding">12,5,0,7</Thickness>
Expand Down
1 change: 1 addition & 0 deletions ModernWpf/ThemeResources/Dark.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@
<m:StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="ControlAltFillColorQuarternaryBrush" />
<m:StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="TextFillColorSecondaryBrush" />
<m:StaticResource x:Key="ComboBoxItemPillFillBrush" ResourceKey="AccentFillColorDefaultBrush"/>
<Thickness x:Key="ComboBoxDropdownBorderPadding">0</Thickness>

<!-- Resources for CommandBar -->
<sys:Double x:Key="CommandBarOverflowMinWidth">160</sys:Double>
Expand Down
23 changes: 23 additions & 0 deletions ModernWpf/ThemeResources/HighContrast.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@

<!-- Resources for AppBarToggleButton -->
<m:StaticResource x:Key="AppBarToggleButtonBackground" ResourceKey="SystemControlTransparentBrush" />
<m:StaticResource x:Key="AppBarToggleButtonBackgroundPointerOver" ResourceKey="SubtleFillColorSecondaryBrush" />
<m:StaticResource x:Key="AppBarToggleButtonBackgroundPressed" ResourceKey="SubtleFillColorTertiaryBrush" />
<m:StaticResource x:Key="AppBarToggleButtonBackgroundDisabled" ResourceKey="SystemControlTransparentBrush" />
<m:StaticResource x:Key="AppBarToggleButtonBackgroundChecked" ResourceKey="SystemControlHighlightListAccentLowBrush" />
<m:StaticResource x:Key="AppBarToggleButtonBackgroundCheckedPointerOver" ResourceKey="SystemControlHighlightListAccentMediumBrush" />
Expand Down Expand Up @@ -681,6 +683,7 @@
<m:StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="SystemControlBackgroundListMediumBrush" />
<m:StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="SystemControlForegroundBaseMediumHighBrush" />
<m:StaticResource x:Key="ComboBoxItemPillFillBrush" ResourceKey="SystemControlHighlightListAccentLowBrush"/>
<Thickness x:Key="ComboBoxDropdownBorderPadding">0</Thickness>

<!-- Resources for CommandBar -->
<sys:Double x:Key="CommandBarOverflowMinWidth">160</sys:Double>
Expand Down Expand Up @@ -1603,6 +1606,26 @@
<m:StaticResource x:Key="TextControlButtonForegroundPointerOver" ResourceKey="SystemControlHighlightAccentBrush" />
<m:StaticResource x:Key="TextControlButtonForegroundPressed" ResourceKey="SystemControlHighlightAltChromeWhiteBrush" />

<LinearGradientBrush x:Key="TextControlElevationBorderBrush" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,2">
<LinearGradientBrush.RelativeTransform>
<ScaleTransform ScaleY="-1" CenterY="0.5"/>
</LinearGradientBrush.RelativeTransform>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0.5" Color="{StaticResource ControlAAStrokeColorDefault}"/>
<GradientStop Offset="1.0" Color="{StaticResource ControlStrokeColorDefault}"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>

<LinearGradientBrush x:Key="TextControlElevationBorderFocusedBrush" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,2">
<LinearGradientBrush.RelativeTransform>
<ScaleTransform ScaleY="-1" CenterY="0.5"/>
</LinearGradientBrush.RelativeTransform>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="1.0" Color="{DynamicResource SystemAccentColorLight2}"/>
<GradientStop Offset="1.0" Color="{StaticResource ControlStrokeColorDefault}"/>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>

<!-- Resources for Window -->
<SolidColorBrush x:Key="WindowBorder" Color="{m:ThemeResource SystemColorActiveCaptionColor}" />
<SolidColorBrush x:Key="WindowBorderInactive" Color="{m:ThemeResource SystemColorInactiveCaptionTextColor}" />
Expand Down
1 change: 1 addition & 0 deletions ModernWpf/ThemeResources/Light.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@
<m:StaticResource x:Key="ComboBoxFocusedDropDownBackgroundPointerPressed" ResourceKey="ControlAltFillColorQuarternaryBrush" />
<m:StaticResource x:Key="ComboBoxEditableDropDownGlyphForeground" ResourceKey="TextFillColorSecondaryBrush" />
<m:StaticResource x:Key="ComboBoxItemPillFillBrush" ResourceKey="AccentFillColorDefaultBrush"/>
<Thickness x:Key="ComboBoxDropdownBorderPadding">0</Thickness>

<!-- Resources for CommandBar -->
<sys:Double x:Key="CommandBarOverflowMinWidth">160</sys:Double>
Expand Down
Loading

0 comments on commit 0387684

Please sign in to comment.