From 7ced6b76ffb308e4589f0e59cdec908a9c60e9a6 Mon Sep 17 00:00:00 2001 From: Kevin Bost Date: Wed, 8 Feb 2023 23:15:27 -0800 Subject: [PATCH 1/2] Adding new Secondary styles which will eventually replace Accent styles The accent styles will continue to exist, but will likely be delete in the 5.0.0 release. --- MainDemo.Wpf/Buttons.xaml | 28 +++--- MainDemo.Wpf/Cards.xaml | 6 +- MainDemo.Wpf/Chips.xaml | 18 ++-- MainDemo.Wpf/ColorZones.xaml | 2 +- MainDemo.Wpf/Dialogs.xaml | 4 +- MainDemo.Wpf/Drawers.xaml | 2 +- MainDemo.Wpf/GroupBoxes.xaml | 4 +- MainDemo.Wpf/NavigationRail.xaml | 4 +- MainDemo.Wpf/Snackbars.xaml | 2 +- MainDemo.Wpf/Toggles.xaml | 16 ++-- .../TransitionsDemo/Slide2_Intro.xaml | 2 +- .../TransitionsDemo/Slide3_Intro.xaml | 2 +- .../Slide4_CombineTransitions.xaml | 2 +- .../Slide5_TransitioningContent.xaml | 2 +- MainDemo.Wpf/TransitionsDemo/Slide7_MVVM.xaml | 2 +- .../Themes/MaterialDesign3.ToggleButton.xaml | 13 ++- .../Themes/MaterialDesignTheme.Button.xaml | 5 ++ .../Themes/MaterialDesignTheme.CheckBox.xaml | 31 +++++-- .../Themes/MaterialDesignTheme.ListBox.xaml | 87 +++++++++++++++---- .../Themes/MaterialDesignTheme.PopupBox.xaml | 9 +- .../MaterialDesignTheme.RadioButton.xaml | 21 ++++- .../MaterialDesignTheme.ToggleButton.xaml | 14 ++- 22 files changed, 196 insertions(+), 80 deletions(-) diff --git a/MainDemo.Wpf/Buttons.xaml b/MainDemo.Wpf/Buttons.xaml index 8945b66c7e..6315f3d2c0 100644 --- a/MainDemo.Wpf/Buttons.xaml +++ b/MainDemo.Wpf/Buttons.xaml @@ -399,7 +399,7 @@ Content="MID" IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" Style="{StaticResource MaterialDesignFlatSecondaryMidBgButton}" - ToolTip="MaterialDesignFlatAccentBackgroundButton" /> + ToolTip="MaterialDesignFlatSecondaryMidBgButton" /> @@ -464,8 +464,8 @@ materialDesign:RippleAssist.Feedback="#DD000000" Content="CUSTOM RIPPLE" IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" - Style="{StaticResource MaterialDesignRaisedAccentButton}" - ToolTip="Resource name: MaterialDesignRaisedAccentButton" /> + Style="{StaticResource MaterialDesignRaisedSecondaryButton}" + ToolTip="Resource name: MaterialDesignRaisedSecondaryButton" /> @@ -473,8 +473,8 @@ materialDesign:RippleAssist.IsDisabled="True" Content="NO RIPPLE" IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" - Style="{StaticResource MaterialDesignRaisedAccentButton}" - ToolTip="Resource name: MaterialDesignRaisedAccentButton" /> + Style="{StaticResource MaterialDesignRaisedSecondaryButton}" + ToolTip="Resource name: MaterialDesignRaisedSecondaryButton" /> @@ -572,8 +572,8 @@ @@ -756,7 +756,7 @@ materialDesign:ButtonProgressAssist.Value="50" Content="{materialDesign:PackIcon DotsHorizontal}" IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" - Style="{StaticResource MaterialDesignFloatingActionAccentButton}" /> + Style="{StaticResource MaterialDesignFloatingActionSecondaryButton}" /> @@ -894,10 +894,10 @@ + ToolTip="PopupBox, Style MaterialDesignMultiFloatingActionSecondaryPopupBox"> - + @@ -92,7 +92,7 @@ Margin="0,0,16,-20" HorizontalAlignment="Right" VerticalAlignment="Bottom" - Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}"> + Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryButton}"> @@ -148,7 +148,7 @@ Margin="0,0,16,-20" HorizontalAlignment="Right" VerticalAlignment="Bottom" - Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}"> + Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryButton}"> diff --git a/MainDemo.Wpf/Chips.xaml b/MainDemo.Wpf/Chips.xaml index 401540a2a0..88db5269e5 100644 --- a/MainDemo.Wpf/Chips.xaml +++ b/MainDemo.Wpf/Chips.xaml @@ -159,7 +159,7 @@ - Secondary + Secondary @@ -179,7 +179,7 @@ + Style="{StaticResource MaterialDesignFilterChipSecondaryOutlineCheckBox}" /> @@ -208,7 +208,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -279,7 +279,7 @@ + Style="{StaticResource MaterialDesignChoiceChipSecondaryRadioButton}" /> @@ -300,7 +300,7 @@ + Style="{StaticResource MaterialDesignChoiceChipSecondaryOutlineRadioButton}" /> @@ -329,7 +329,8 @@ - + @@ -364,7 +365,8 @@ - + diff --git a/MainDemo.Wpf/ColorZones.xaml b/MainDemo.Wpf/ColorZones.xaml index f478a07f7e..5d570af0d5 100644 --- a/MainDemo.Wpf/ColorZones.xaml +++ b/MainDemo.Wpf/ColorZones.xaml @@ -76,7 +76,7 @@ + Style="{StaticResource MaterialDesignSwitchSecondaryToggleButton}" /> diff --git a/MainDemo.Wpf/Dialogs.xaml b/MainDemo.Wpf/Dialogs.xaml index ae9dc83269..c5353e01b5 100644 --- a/MainDemo.Wpf/Dialogs.xaml +++ b/MainDemo.Wpf/Dialogs.xaml @@ -124,7 +124,7 @@ Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}" Content="{materialDesign:PackIcon Kind=Plus, Size=22}" - Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" /> + Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryButton}" /> @@ -324,7 +324,7 @@ Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}" Content="{materialDesign:PackIcon Kind=Plus, Size=22}" - Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" /> + Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryButton}" /> diff --git a/MainDemo.Wpf/Drawers.xaml b/MainDemo.Wpf/Drawers.xaml index 49daec536d..ef9834ccef 100644 --- a/MainDemo.Wpf/Drawers.xaml +++ b/MainDemo.Wpf/Drawers.xaml @@ -187,7 +187,7 @@ Margin="4" Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}" Content="{materialDesign:PackIcon Kind=ArrowAll}" - Style="{StaticResource MaterialDesignRaisedAccentButton}" /> + Style="{StaticResource MaterialDesignRaisedSecondaryButton}" /> diff --git a/MainDemo.Wpf/GroupBoxes.xaml b/MainDemo.Wpf/GroupBoxes.xaml index 3039b58a57..1cbf84ca6c 100644 --- a/MainDemo.Wpf/GroupBoxes.xaml +++ b/MainDemo.Wpf/GroupBoxes.xaml @@ -68,7 +68,7 @@ UniqueKey="groupbox_4"> @@ -120,7 +120,7 @@ UniqueKey="groupbox_7"> diff --git a/MainDemo.Wpf/NavigationRail.xaml b/MainDemo.Wpf/NavigationRail.xaml index 685f607a65..b1a7bb878e 100644 --- a/MainDemo.Wpf/NavigationRail.xaml +++ b/MainDemo.Wpf/NavigationRail.xaml @@ -36,7 +36,7 @@ diff --git a/MainDemo.Wpf/TransitionsDemo/Slide3_Intro.xaml b/MainDemo.Wpf/TransitionsDemo/Slide3_Intro.xaml index c46b7aa8e0..f05e98171c 100644 --- a/MainDemo.Wpf/TransitionsDemo/Slide3_Intro.xaml +++ b/MainDemo.Wpf/TransitionsDemo/Slide3_Intro.xaml @@ -28,7 +28,7 @@ diff --git a/MainDemo.Wpf/TransitionsDemo/Slide4_CombineTransitions.xaml b/MainDemo.Wpf/TransitionsDemo/Slide4_CombineTransitions.xaml index 7151aacc27..af4a336f0f 100644 --- a/MainDemo.Wpf/TransitionsDemo/Slide4_CombineTransitions.xaml +++ b/MainDemo.Wpf/TransitionsDemo/Slide4_CombineTransitions.xaml @@ -33,7 +33,7 @@ diff --git a/MainDemo.Wpf/TransitionsDemo/Slide5_TransitioningContent.xaml b/MainDemo.Wpf/TransitionsDemo/Slide5_TransitioningContent.xaml index d0b5aa9749..fce7d50661 100644 --- a/MainDemo.Wpf/TransitionsDemo/Slide5_TransitioningContent.xaml +++ b/MainDemo.Wpf/TransitionsDemo/Slide5_TransitioningContent.xaml @@ -141,7 +141,7 @@ diff --git a/MainDemo.Wpf/TransitionsDemo/Slide7_MVVM.xaml b/MainDemo.Wpf/TransitionsDemo/Slide7_MVVM.xaml index a11de0e454..19293a3b22 100644 --- a/MainDemo.Wpf/TransitionsDemo/Slide7_MVVM.xaml +++ b/MainDemo.Wpf/TransitionsDemo/Slide7_MVVM.xaml @@ -34,7 +34,7 @@ + + - diff --git a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Button.xaml b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Button.xaml index ae8d45a569..90234f72d7 100644 --- a/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Button.xaml +++ b/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Button.xaml @@ -168,6 +168,7 @@ + + + + + - + + - + + - + + - - \ No newline at end of file + + + - + + - + + - - + + - - + - - + + - - + + - - \ No newline at end of file + + - + + - + + - + + - + + - + +