|
9 | 9 | ShutdownMode="OnExplicitShutdown"> |
10 | 10 | <Application.Resources> |
11 | 11 | <ResourceDictionary> |
| 12 | + <ResourceDictionary.MergedDictionaries> |
| 13 | + <ui:ThemeResources/> |
| 14 | + <ui:XamlControlsResources/> |
| 15 | + <ui:ResourceDictionaryEx/> |
| 16 | + <ui:ColorPaletteResources/> |
| 17 | + <ui:IntellisenseResources/> |
| 18 | + <ResourceDictionary Source="/Resources/Languages/zh-cn.xaml"/> |
| 19 | + <ResourceDictionary Source="/Resources/Languages/jp.xaml"/> |
| 20 | + <ResourceDictionary Source="/Resources/Languages/en-us.xaml"/> |
| 21 | + </ResourceDictionary.MergedDictionaries> |
12 | 22 | <FontFamily x:Key="SegoeFluent">/Resources/segoe-fluent-icons.ttf#Segoe Fluent Icons</FontFamily> |
| 23 | + <v:LanguageToBoolConverter x:Key="LanguageToBoolConverter"/> |
13 | 24 | <v:AddConverter x:Key="AddConverter"/> |
14 | 25 | <v:ReverseConverter x:Key="ReverseConverter"/> |
15 | 26 | <tb:TaskbarIcon x:Key="PART_Taskbar" |
|
31 | 42 | <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
32 | 43 | </MenuItem.Icon> |
33 | 44 | </MenuItem> |
34 | | - <Separator/> |
35 | 45 | <MenuItem Header="{DynamicResource VisitWebsite}" Command="{Binding GitHubCommand}"> |
36 | 46 | <MenuItem.Icon> |
37 | 47 | <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
38 | 48 | </MenuItem.Icon> |
39 | 49 | </MenuItem> |
| 50 | + <Separator/> |
| 51 | + <MenuItem Header="{DynamicResource LaunchGame1440x900}" Command="{Binding LaunchGame1440x900Command}"> |
| 52 | + <MenuItem.Icon> |
| 53 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 54 | + </MenuItem.Icon> |
| 55 | + </MenuItem> |
| 56 | + <Separator/> |
| 57 | + <MenuItem Header="{DynamicResource Language}"> |
| 58 | + <MenuItem.Icon> |
| 59 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 60 | + </MenuItem.Icon> |
| 61 | + <MenuItem.Items> |
| 62 | + <MenuItem Header="简体中文" Command="{Binding LanguageZH}" IsCheckable="False" IsChecked="{Binding Language,Converter={StaticResource LanguageToBoolConverter},ConverterParameter=zh-cn}"> |
| 63 | + <MenuItem.Icon> |
| 64 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 65 | + </MenuItem.Icon> |
| 66 | + </MenuItem> |
| 67 | + <MenuItem Header="日本語" Command="{Binding LanguageJP}" IsCheckable="False" IsChecked="{Binding Language,Converter={StaticResource LanguageToBoolConverter},ConverterParameter=jp}"> |
| 68 | + <MenuItem.Icon> |
| 69 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 70 | + </MenuItem.Icon> |
| 71 | + </MenuItem> |
| 72 | + <MenuItem Header="English" Command="{Binding LanguageEN}" IsCheckable="False" IsChecked="{Binding Language,Converter={StaticResource LanguageToBoolConverter},ConverterParameter=en-us}"> |
| 73 | + <MenuItem.Icon> |
| 74 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 75 | + </MenuItem.Icon> |
| 76 | + </MenuItem> |
| 77 | + </MenuItem.Items> |
| 78 | + </MenuItem> |
| 79 | + <MenuItem Header="{DynamicResource Restart}" Command="{Binding RestartCommand}"> |
| 80 | + <MenuItem.Icon> |
| 81 | + <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
| 82 | + </MenuItem.Icon> |
| 83 | + </MenuItem> |
40 | 84 | <MenuItem Header="{DynamicResource Exit}" Command="{Binding ExitCommand}"> |
41 | 85 | <MenuItem.Icon> |
42 | 86 | <TextBlock Text="" FontSize="8" FontFamily="{StaticResource SegoeFluent}"/> |
|
45 | 89 | </ContextMenu> |
46 | 90 | </tb:TaskbarIcon.ContextMenu> |
47 | 91 | </tb:TaskbarIcon> |
48 | | - <ResourceDictionary.MergedDictionaries> |
49 | | - <ui:ThemeResources/> |
50 | | - <ui:XamlControlsResources/> |
51 | | - <ui:ResourceDictionaryEx/> |
52 | | - <ui:ColorPaletteResources/> |
53 | | - <ui:IntellisenseResources/> |
54 | | - <ResourceDictionary Source="/Resources/Languages/zh-cn.xaml"/> |
55 | | - <ResourceDictionary Source="/Resources/Languages/jp.xaml"/> |
56 | | - <ResourceDictionary Source="/Resources/Languages/en-us.xaml"/> |
57 | | - </ResourceDictionary.MergedDictionaries> |
58 | 92 | </ResourceDictionary> |
59 | 93 | </Application.Resources> |
60 | 94 | </Application> |
0 commit comments