mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-29 12:43:24 +08:00
misc: reduce menu level.
This commit is contained in:
@@ -31,11 +31,6 @@ public partial class MainViewModel : ObservableObject
|
|||||||
public MainViewModel()
|
public MainViewModel()
|
||||||
{
|
{
|
||||||
MenuItems =
|
MenuItems =
|
||||||
[
|
|
||||||
new MenuItemViewModel
|
|
||||||
{
|
|
||||||
Header = "High Contrast Theme",
|
|
||||||
Items =
|
|
||||||
[
|
[
|
||||||
new MenuItemViewModel
|
new MenuItemViewModel
|
||||||
{
|
{
|
||||||
@@ -61,15 +56,8 @@ public partial class MainViewModel : ObservableObject
|
|||||||
Command = SelectThemeCommand,
|
Command = SelectThemeCommand,
|
||||||
CommandParameter = SemiTheme.NightSky
|
CommandParameter = SemiTheme.NightSky
|
||||||
},
|
},
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
LocaleItems =
|
LocaleItems =
|
||||||
[
|
|
||||||
new MenuItemViewModel
|
|
||||||
{
|
|
||||||
Header = "Locale",
|
|
||||||
Items =
|
|
||||||
[
|
[
|
||||||
new MenuItemViewModel
|
new MenuItemViewModel
|
||||||
{
|
{
|
||||||
@@ -107,8 +95,6 @@ public partial class MainViewModel : ObservableObject
|
|||||||
Command = SelectLocaleCommand,
|
Command = SelectLocaleCommand,
|
||||||
CommandParameter = new System.Globalization.CultureInfo("zh-tw")
|
CommandParameter = new System.Globalization.CultureInfo("zh-tw")
|
||||||
},
|
},
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user