|
1 |
| -<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| 1 | +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
3 | 2 |
|
4 |
| - <!-- use this resource dictionary to set up the most common themese for standard controls --> |
| 3 | + <!-- use this resource dictionary to set up the most common themese for standard controls --> |
5 | 4 |
|
6 | 5 | <ResourceDictionary.MergedDictionaries>
|
7 | 6 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
|
43 | 42 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ValidationErrorTemplate.xaml" />
|
44 | 43 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Window.xaml" />
|
45 | 44 | </ResourceDictionary.MergedDictionaries>
|
46 |
| - |
47 |
| - <SolidColorBrush x:Key="MaterialDesignLightBackground" Color="#FFFAFAFA"/> |
48 |
| - <SolidColorBrush x:Key="MaterialDesignLightForeground" Color="#DD000000"/> |
49 |
| - <SolidColorBrush x:Key="MaterialDesignDarkBackground" Color="#FF303030"/> |
50 |
| - <SolidColorBrush x:Key="MaterialDesignDarkForeground" Color="#FFFAFAFA"/> |
| 45 | + |
| 46 | + <SolidColorBrush x:Key="MaterialDesignLightBackground" Color="#FFFAFAFA" /> |
| 47 | + <SolidColorBrush x:Key="MaterialDesignLightForeground" Color="#DD000000" /> |
| 48 | + <SolidColorBrush x:Key="MaterialDesignDarkBackground" Color="#FF303030" /> |
| 49 | + <SolidColorBrush x:Key="MaterialDesignDarkForeground" Color="#FFFAFAFA" /> |
51 | 50 | <SolidColorBrush x:Key="MaterialDesignDarkSeparatorBackground" Color="#1F000000" />
|
52 | 51 | <SolidColorBrush x:Key="MaterialDesignLightSeparatorBackground" Color="#1FFFFFFF" />
|
53 |
| - |
54 |
| - <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignRaisedButton}" /> |
55 |
| - <Style TargetType="{x:Type Calendar}" BasedOn="{StaticResource MaterialDesignCalendarPortrait}" /> |
56 |
| - <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource MaterialDesignCheckBox}" /> |
57 |
| - <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MaterialDesignComboBox}" /> |
58 |
| - <Style TargetType="{x:Type ContextMenu}" BasedOn="{StaticResource MaterialDesignContextMenu}" /> |
59 |
| - <Style TargetType="{x:Type Thumb}" BasedOn="{StaticResource MaterialDesignThumb}" /> |
60 |
| - <Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource MaterialDesignDataGrid}" /> |
61 |
| - <Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource MaterialDesignDataGridCell}" /> |
62 |
| - <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}" /> |
63 |
| - <Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource MaterialDesignDataGridRow}" /> |
64 |
| - <Style TargetType="{x:Type DataGridRowHeader}" BasedOn="{StaticResource MaterialDesignDataGridRowHeader}" /> |
65 |
| - <Style TargetType="{x:Type DatePicker}" BasedOn="{StaticResource MaterialDesignDatePicker}" /> |
66 |
| - <Style TargetType="{x:Type Expander}" BasedOn="{StaticResource MaterialDesignExpander}" /> |
67 |
| - <Style TargetType="{x:Type GridSplitter}" BasedOn="{StaticResource MaterialDesignGridSplitter}" /> |
68 |
| - <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MaterialDesignGroupBox}" /> |
69 |
| - <Style TargetType="{x:Type Label}" BasedOn="{StaticResource MaterialDesignLabel}" /> |
70 |
| - <Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource MaterialDesignListBox}" /> |
71 |
| - <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource MaterialDesignListBoxItem}" /> |
72 |
| - <Style TargetType="{x:Type ListView}" BasedOn="{StaticResource MaterialDesignListView}" /> |
73 |
| - <Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource MaterialDesignListBoxItem}" /> |
74 |
| - <Style TargetType="{x:Type Menu}" BasedOn="{StaticResource MaterialDesignMenu}" /> |
75 |
| - <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource MaterialDesignMenuItem}" /> |
76 |
| - <Style TargetType="{x:Type PasswordBox}" BasedOn="{StaticResource MaterialDesignPasswordBox}" /> |
77 |
| - <Style TargetType="{x:Type ProgressBar}" BasedOn="{StaticResource MaterialDesignLinearProgressBar}" /> |
78 |
| - <Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource MaterialDesignRadioButton}" /> |
79 |
| - <Style TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource MaterialDesignRaisedButton}" /> |
80 |
| - <Style TargetType="{x:Type RichTextBox}" BasedOn="{StaticResource MaterialDesignRichTextBox}" /> |
81 |
| - <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource MaterialDesignScrollBar}" /> |
82 |
| - <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource MaterialDesignScrollViewer}" /> |
83 |
| - <Style TargetType="{x:Type Slider}" BasedOn="{StaticResource MaterialDesignSlider}" /> |
84 |
| - <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignTextBox}" /> |
85 |
| - <Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource MaterialDesignSwitchToggleButton}" /> |
86 |
| - <Style TargetType="{x:Type ToolBar}" BasedOn="{StaticResource MaterialDesignToolBar}" /> |
87 |
| - <Style TargetType="{x:Type ToolBarTray}" BasedOn="{StaticResource MaterialDesignToolBarTray}" /> |
88 |
| - <Style TargetType="{x:Type ToolTip}" BasedOn="{StaticResource MaterialDesignToolTip}" /> |
89 |
| - <Style TargetType="{x:Type TreeView}" BasedOn="{StaticResource MaterialDesignTreeView}" /> |
90 |
| - <Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource MaterialDesignTreeViewItem}" /> |
91 | 52 |
|
92 |
| - <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="{x:Type Separator}" BasedOn="{StaticResource MaterialDesignSeparator}" /> |
93 |
| - <Style x:Key="MaterialDesignDarkSeparator" TargetType="{x:Type Separator}" BasedOn="{StaticResource MaterialDesignSeparator}"> |
94 |
| - <Setter Property="Background" Value="{DynamicResource MaterialDesignDarkSeparatorBackground}"/> |
95 |
| - <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignDarkSeparatorBackground}"/> |
| 53 | + <Style BasedOn="{StaticResource MaterialDesignRaisedButton}" TargetType="{x:Type Button}" /> |
| 54 | + <Style BasedOn="{StaticResource MaterialDesignCalendarPortrait}" TargetType="{x:Type Calendar}" /> |
| 55 | + <Style BasedOn="{StaticResource MaterialDesignCheckBox}" TargetType="{x:Type CheckBox}" /> |
| 56 | + <Style BasedOn="{StaticResource MaterialDesignComboBox}" TargetType="{x:Type ComboBox}" /> |
| 57 | + <Style BasedOn="{StaticResource MaterialDesignContextMenu}" TargetType="{x:Type ContextMenu}" /> |
| 58 | + <Style BasedOn="{StaticResource MaterialDesignThumb}" TargetType="{x:Type Thumb}" /> |
| 59 | + <Style BasedOn="{StaticResource MaterialDesignDataGrid}" TargetType="{x:Type DataGrid}" /> |
| 60 | + <Style BasedOn="{StaticResource MaterialDesignDataGridCell}" TargetType="{x:Type DataGridCell}" /> |
| 61 | + <Style BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}" TargetType="{x:Type DataGridColumnHeader}" /> |
| 62 | + <Style BasedOn="{StaticResource MaterialDesignDataGridRow}" TargetType="{x:Type DataGridRow}" /> |
| 63 | + <Style BasedOn="{StaticResource MaterialDesignDataGridRowHeader}" TargetType="{x:Type DataGridRowHeader}" /> |
| 64 | + <Style BasedOn="{StaticResource MaterialDesignDatePicker}" TargetType="{x:Type DatePicker}" /> |
| 65 | + <Style BasedOn="{StaticResource MaterialDesignExpander}" TargetType="{x:Type Expander}" /> |
| 66 | + <Style BasedOn="{StaticResource MaterialDesignGridSplitter}" TargetType="{x:Type GridSplitter}" /> |
| 67 | + <Style BasedOn="{StaticResource MaterialDesignGroupBox}" TargetType="{x:Type GroupBox}" /> |
| 68 | + <Style BasedOn="{StaticResource MaterialDesignLabel}" TargetType="{x:Type Label}" /> |
| 69 | + <Style BasedOn="{StaticResource MaterialDesignListBox}" TargetType="{x:Type ListBox}" /> |
| 70 | + <Style BasedOn="{StaticResource MaterialDesignListBoxItem}" TargetType="{x:Type ListBoxItem}" /> |
| 71 | + <Style BasedOn="{StaticResource MaterialDesignListView}" TargetType="{x:Type ListView}" /> |
| 72 | + <Style BasedOn="{StaticResource MaterialDesignListBoxItem}" TargetType="{x:Type ListViewItem}" /> |
| 73 | + <Style BasedOn="{StaticResource MaterialDesignMenu}" TargetType="{x:Type Menu}" /> |
| 74 | + <Style BasedOn="{StaticResource MaterialDesignMenuItem}" TargetType="{x:Type MenuItem}" /> |
| 75 | + <Style BasedOn="{StaticResource MaterialDesignPasswordBox}" TargetType="{x:Type PasswordBox}" /> |
| 76 | + <Style BasedOn="{StaticResource MaterialDesignLinearProgressBar}" TargetType="{x:Type ProgressBar}" /> |
| 77 | + <Style BasedOn="{StaticResource MaterialDesignRadioButton}" TargetType="{x:Type RadioButton}" /> |
| 78 | + <Style BasedOn="{StaticResource MaterialDesignRaisedButton}" TargetType="{x:Type RepeatButton}" /> |
| 79 | + <Style BasedOn="{StaticResource MaterialDesignRichTextBox}" TargetType="{x:Type RichTextBox}" /> |
| 80 | + <Style BasedOn="{StaticResource MaterialDesignScrollBar}" TargetType="{x:Type ScrollBar}" /> |
| 81 | + <Style BasedOn="{StaticResource MaterialDesignScrollViewer}" TargetType="{x:Type ScrollViewer}" /> |
| 82 | + <Style BasedOn="{StaticResource MaterialDesignSlider}" TargetType="{x:Type Slider}" /> |
| 83 | + <Style BasedOn="{StaticResource MaterialDesignTabControl}" TargetType="{x:Type TabControl}" /> |
| 84 | + <Style BasedOn="{StaticResource MaterialDesignTabItem}" TargetType="{x:Type TabItem}" /> |
| 85 | + <Style BasedOn="{StaticResource MaterialDesignTextBox}" TargetType="{x:Type TextBox}" /> |
| 86 | + <Style BasedOn="{StaticResource MaterialDesignSwitchToggleButton}" TargetType="{x:Type ToggleButton}" /> |
| 87 | + <Style BasedOn="{StaticResource MaterialDesignToolBar}" TargetType="{x:Type ToolBar}" /> |
| 88 | + <Style BasedOn="{StaticResource MaterialDesignToolBarTray}" TargetType="{x:Type ToolBarTray}" /> |
| 89 | + <Style BasedOn="{StaticResource MaterialDesignToolTip}" TargetType="{x:Type ToolTip}" /> |
| 90 | + <Style BasedOn="{StaticResource MaterialDesignTreeView}" TargetType="{x:Type TreeView}" /> |
| 91 | + <Style BasedOn="{StaticResource MaterialDesignTreeViewItem}" TargetType="{x:Type TreeViewItem}" /> |
| 92 | + |
| 93 | + <Style |
| 94 | + x:Key="{x:Static MenuItem.SeparatorStyleKey}" |
| 95 | + BasedOn="{StaticResource MaterialDesignSeparator}" |
| 96 | + TargetType="{x:Type Separator}" /> |
| 97 | + <Style |
| 98 | + x:Key="MaterialDesignDarkSeparator" |
| 99 | + BasedOn="{StaticResource MaterialDesignSeparator}" |
| 100 | + TargetType="{x:Type Separator}"> |
| 101 | + <Setter Property="Background" Value="{DynamicResource MaterialDesignDarkSeparatorBackground}" /> |
| 102 | + <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignDarkSeparatorBackground}" /> |
96 | 103 | </Style>
|
97 |
| - <Style x:Key="MaterialDesignLightSeparator" TargetType="{x:Type Separator}" BasedOn="{StaticResource MaterialDesignSeparator}"> |
98 |
| - <Setter Property="Background" Value="{DynamicResource MaterialDesignLightSeparatorBackground}"/> |
99 |
| - <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignLightSeparatorBackground}"/> |
| 104 | + <Style |
| 105 | + x:Key="MaterialDesignLightSeparator" |
| 106 | + BasedOn="{StaticResource MaterialDesignSeparator}" |
| 107 | + TargetType="{x:Type Separator}"> |
| 108 | + <Setter Property="Background" Value="{DynamicResource MaterialDesignLightSeparatorBackground}" /> |
| 109 | + <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignLightSeparatorBackground}" /> |
100 | 110 | </Style>
|
101 | 111 | </ResourceDictionary>
|
0 commit comments