Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara authored Nov 16, 2023
1 parent ec483a1 commit c73c9b8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
16 changes: 8 additions & 8 deletions ModernWpf.MahApps/Styles/Controls.FlipView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<Setter.Value>
<ControlTemplate TargetType="Controls:FlipView">
<ControlTemplate.Resources>
<StreamGeometry x:Key="ChevronLeft">M 14.091797 19.970703 L 4.111328 10 L 14.091797 0.029297 L 14.970703 0.908203 L 5.888672 10 L 14.970703 19.091797 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronRight">M 5.029297 19.091797 L 14.111328 10 L 5.029297 0.908203 L 5.908203 0.029297 L 15.888672 10 L 5.908203 19.970703 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronUp">M 19.091797 14.970703 L 10 5.888672 L 0.908203 14.970703 L 0.029297 14.091797 L 10 4.111328 L 19.970703 14.091797 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronDown">M 18.935547 4.560547 L 19.814453 5.439453 L 10 15.253906 L 0.185547 5.439453 L 1.064453 4.560547 L 10 13.496094 Z</StreamGeometry>
<StreamGeometry x:Key="CaretLeft">F1 M 5 10 L 15 0 L 15 20 L 5 10 Z</StreamGeometry>
<StreamGeometry x:Key="CaretRight">F1 M 5 0 L 15 10 L 5 20 L 5 0 Z</StreamGeometry>
<StreamGeometry x:Key="CaretUp">F1 M 10 5 L 20 15 L 0 15 L 10 5 Z</StreamGeometry>
<StreamGeometry x:Key="CaretDown">F1 M 0 5 L 20 5 L 10 15 L 0 5 Z</StreamGeometry>
<Storyboard x:Key="ShowBannerStoryboard">
<DoubleAnimation
AccelerationRatio="1.0"
Expand Down Expand Up @@ -73,7 +73,7 @@
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}"
Data="{StaticResource ChevronRight}"
Data="{StaticResource CaretRight}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
UseLayoutRounding="False" />
Expand Down Expand Up @@ -103,7 +103,7 @@
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}"
Data="{StaticResource ChevronLeft}"
Data="{StaticResource CaretLeft}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
UseLayoutRounding="False" />
Expand Down Expand Up @@ -133,7 +133,7 @@
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}"
Data="{StaticResource ChevronDown}"
Data="{StaticResource CaretDown}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
UseLayoutRounding="False" />
Expand Down Expand Up @@ -163,7 +163,7 @@
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="12"
Foreground="{DynamicResource FlipViewNextPreviousArrowForeground}"
Data="{StaticResource ChevronUp}"
Data="{StaticResource CaretUp}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
UseLayoutRounding="False" />
Expand Down
10 changes: 6 additions & 4 deletions ModernWpf/Styles/Calendar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
Style="{StaticResource WeekDayNameStyle}"
Text="{Binding}" />
</DataTemplate>
<StreamGeometry x:Key="ChevronDown">M 18.935547 4.560547 L 19.814453 5.439453 L 10 15.253906 L 0.185547 5.439453 L 1.064453 4.560547 L 10 13.496094 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronUp">M 19.091797 14.970703 L 10 5.888672 L 0.908203 14.970703 L 0.029297 14.091797 L 10 4.111328 L 19.970703 14.091797 Z</StreamGeometry>
<StreamGeometry x:Key="CaretUp">F1 M 10 5 L 20 15 L 0 15 L 10 5 Z</StreamGeometry>
<StreamGeometry x:Key="CaretDown">F1 M 0 5 L 20 5 L 10 15 L 0 5 Z</StreamGeometry>
<DataTemplate x:Key="IconTemplate">
<local:FontIconFallback Data="{Binding}" />
</DataTemplate>
Expand Down Expand Up @@ -105,9 +105,10 @@
<Button
x:Name="PART_PreviousButton"
Grid.Column="1"
Content="{StaticResource ChevronUp}"
Content="{StaticResource CaretUp}"
ContentTemplate="{StaticResource IconTemplate}"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="8"
Focusable="False"
Padding="1"
Foreground="{TemplateBinding Foreground}"
Expand All @@ -116,9 +117,10 @@
<Button
x:Name="PART_NextButton"
Grid.Column="2"
Content="{StaticResource ChevronDown}"
Content="{StaticResource CaretDown}"
ContentTemplate="{StaticResource IconTemplate}"
FontFamily="{DynamicResource SymbolThemeFontFamily}"
FontSize="8"
Focusable="False"
Padding="1"
Foreground="{TemplateBinding Foreground}"
Expand Down
16 changes: 8 additions & 8 deletions ModernWpf/Styles/ScrollBar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<ControlTemplate.Resources>
<StreamGeometry x:Key="ChevronDown">M 18.935547 4.560547 L 19.814453 5.439453 L 10 15.253906 L 0.185547 5.439453 L 1.064453 4.560547 L 10 13.496094 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronUp">M 19.091797 14.970703 L 10 5.888672 L 0.908203 14.970703 L 0.029297 14.091797 L 10 4.111328 L 19.970703 14.091797 Z</StreamGeometry>
<StreamGeometry x:Key="CaretUp">F1 M 10 5 L 20 15 L 0 15 L 10 5 Z</StreamGeometry>
<StreamGeometry x:Key="CaretDown">F1 M 0 5 L 20 5 L 10 15 L 0 5 Z</StreamGeometry>
</ControlTemplate.Resources>
<Border
x:Name="Root"
Expand Down Expand Up @@ -342,7 +342,7 @@
IsTabStop="False"
Margin="0"
Grid.Row="0"
Content="{StaticResource ChevronUp}"
Content="{StaticResource CaretUp}"
Template="{StaticResource ScrollBarButtonTemplate}"
HorizontalAlignment="Center" />
<Track
Expand Down Expand Up @@ -393,7 +393,7 @@
IsTabStop="False"
Margin="0"
Grid.Row="2"
Content="{StaticResource ChevronDown}"
Content="{StaticResource CaretDown}"
Template="{StaticResource ScrollBarButtonTemplate}"
HorizontalAlignment="Center" />
</Grid>
Expand Down Expand Up @@ -436,8 +436,8 @@
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<ControlTemplate.Resources>
<StreamGeometry x:Key="ChevronLeft">M 14.091797 19.970703 L 4.111328 10 L 14.091797 0.029297 L 14.970703 0.908203 L 5.888672 10 L 14.970703 19.091797 Z</StreamGeometry>
<StreamGeometry x:Key="ChevronRight">M 5.029297 19.091797 L 14.111328 10 L 5.029297 0.908203 L 5.908203 0.029297 L 15.888672 10 L 5.908203 19.970703 Z</StreamGeometry>
<StreamGeometry x:Key="CaretLeft">F1 M 5 10 L 15 0 L 15 20 L 5 10 Z</StreamGeometry>
<StreamGeometry x:Key="CaretRight">F1 M 5 0 L 15 10 L 5 20 L 5 0 Z</StreamGeometry>
</ControlTemplate.Resources>
<Border
x:Name="Root"
Expand Down Expand Up @@ -547,7 +547,7 @@
MinHeight="{StaticResource ScrollBarSize}"
IsTabStop="False"
Margin="0"
Content="{StaticResource ChevronLeft}"
Content="{StaticResource CaretLeft}"
Template="{StaticResource ScrollBarButtonTemplate}"
Width="{StaticResource ScrollBarSize}"
VerticalAlignment="Center" />
Expand Down Expand Up @@ -597,7 +597,7 @@
MinHeight="{StaticResource ScrollBarSize}"
IsTabStop="False"
Margin="0"
Content="{StaticResource ChevronRight}"
Content="{StaticResource CaretRight}"
Template="{StaticResource ScrollBarButtonTemplate}"
Width="{StaticResource ScrollBarSize}"
VerticalAlignment="Center" />
Expand Down
4 changes: 2 additions & 2 deletions ModernWpf/ThemeResources/Dark.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1637,11 +1637,11 @@
<m:StaticResource x:Key="ToggleSwitchFillOn" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnPointerOver" ResourceKey="AccentAAFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnPressed" ResourceKey="AccentAAFillColorTertiaryBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnDisabled" ResourceKey="AccentAAFillColorDisabled" />
<m:StaticResource x:Key="ToggleSwitchFillOnDisabled" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOn" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnPointerOver" ResourceKey="AccentAAFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnPressed" ResourceKey="AccentAAFillColorTertiaryBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnDisabled" ResourceKey="AccentAAFillColorDisabled" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnDisabled" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOff" ResourceKey="TextFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOffPointerOver" ResourceKey="TextFillColorSecondary" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOffPressed" ResourceKey="TextFillColorSecondary" />
Expand Down
4 changes: 2 additions & 2 deletions ModernWpf/ThemeResources/Light.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1639,11 +1639,11 @@
<m:StaticResource x:Key="ToggleSwitchFillOn" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnPointerOver" ResourceKey="AccentAAFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnPressed" ResourceKey="AccentAAFillColorTertiaryBrush" />
<m:StaticResource x:Key="ToggleSwitchFillOnDisabled" ResourceKey="AccentAAFillColorDisabled" />
<m:StaticResource x:Key="ToggleSwitchFillOnDisabled" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOn" ResourceKey="AccentAAFillColorDefaultBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnPointerOver" ResourceKey="AccentAAFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnPressed" ResourceKey="AccentAAFillColorTertiaryBrush" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnDisabled" ResourceKey="AccentAAFillColorDisabled" />
<m:StaticResource x:Key="ToggleSwitchStrokeOnDisabled" ResourceKey="AccentAAFillColorDisabledBrush" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOff" ResourceKey="TextFillColorSecondaryBrush" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOffPointerOver" ResourceKey="TextFillColorSecondary" />
<m:StaticResource x:Key="ToggleSwitchKnobFillOffPressed" ResourceKey="TextFillColorSecondary" />
Expand Down

0 comments on commit c73c9b8

Please sign in to comment.