|
4 | 4 | xmlns:local="clr-namespace:MultiMonitorWallpaperSwitcher"
|
5 | 5 | xmlns:lang="clr-namespace:LanguageResources;assembly=LanguageResources"
|
6 | 6 | xmlns:tb="http://www.hardcodet.net/taskbar"
|
7 |
| - xmlns:taskbar="clr-namespace:MultiMonitorWallpaperSwitcher.Taskbar"> |
| 7 | + xmlns:taskbar="clr-namespace:MultiMonitorWallpaperSwitcher.Taskbar" |
| 8 | + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"> |
8 | 9 | <Application.Resources>
|
9 | 10 | <ResourceDictionary>
|
10 |
| - <ContextMenu x:Key="TrayMenu" x:Shared="false"> |
11 |
| - <MenuItem Header="{x:Static lang:Resource.ShowWindow}" Command="{Binding ShowWindowCommand}"/> |
| 11 | + <ResourceDictionary.MergedDictionaries> |
| 12 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml"/> |
| 13 | + <materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime"/> |
| 14 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.GroupBox.xaml"/> |
| 15 | + <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml"/> |
| 16 | + </ResourceDictionary.MergedDictionaries> |
| 17 | + <ContextMenu x:Key="TrayMenu" x:Shared="false" FontFamily="Microsoft YaHei"> |
| 18 | + <MenuItem Header="{x:Static lang:Resource.ShowWindow}" Icon="{materialDesign:PackIcon Kind=Monitor}" Command="{Binding ShowWindowCommand}"/> |
12 | 19 | <Separator/>
|
13 |
| - <MenuItem Header="{x:Static lang:Resource.SwitchWallpaperSet}" Command="{Binding SwitchNextWallpaperSet}"/> |
| 20 | + <MenuItem Header="{x:Static lang:Resource.SwitchWallpaperSet}" Icon="{materialDesign:PackIcon Kind=SkipNext}" Command="{Binding SwitchNextWallpaperSet}"/> |
14 | 21 | <MenuItem Header="{x:Static lang:Resource.PauseAutoSwitch}" IsCheckable="True" IsChecked="{Binding PauseState}"/>
|
15 | 22 | <Separator/>
|
16 |
| - <MenuItem Header="{x:Static lang:Resource.ExitProgram}" Command="{Binding ExitApplicationCommand}"/> |
| 23 | + <MenuItem Header="{x:Static lang:Resource.ExitProgram}" Icon="{materialDesign:PackIcon Kind=ExitToApp}" Command="{Binding ExitApplicationCommand}"/> |
17 | 24 | </ContextMenu>
|
18 | 25 | <tb:TaskbarIcon x:Key="Taskbar" ToolTipText="Multi-Monitor Wallpaper Switcher" IconSource="{Binding IconFile}" LeftClickCommand="{Binding ClickCustomCommand}" DoubleClickCommand="{Binding DoubleCustomCommand}" ContextMenu="{StaticResource TrayMenu}">
|
19 | 26 | <tb:TaskbarIcon.DataContext>
|
|
0 commit comments