v1.1.0: 全面重构UI为Better-Seewo横版主窗口 (Fluent风格+圆角+动画), 新增非触摸大板支持与专业版激活, 更改菜单位置至ApplicationMenu/ExtendedTitleBar
This commit is contained in:
@@ -14,17 +14,22 @@ namespace BetterEN5
|
||||
{
|
||||
manager.Append(c => item, attribute);
|
||||
|
||||
var purpose = attribute.Purposes[0];
|
||||
string menuName;
|
||||
if (attribute.Purposes[0] == UIItemPurposes.BoardEditMenu)
|
||||
if (purpose == UIItemPurposes.BoardEditMenu)
|
||||
{
|
||||
menuName = "BoardEditContextMenu";
|
||||
}
|
||||
else if (purpose == UIItemPurposes.HeadToolBar)
|
||||
{
|
||||
menuName = "HeadToolBar";
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
menuName = purpose.Replace(".", "_");
|
||||
}
|
||||
|
||||
var itemLangKey = item.GetType().Name.Replace("MenuItem", "");
|
||||
var itemLangKey = item.GetType().Name.Replace("MenuItem", "").Replace("HeadToolBar", "").Replace("ApplicationMenu", "").Replace("ExtendedTitleBar", "");
|
||||
var langKey = $"Lang.{menuName}.{itemLangKey}";
|
||||
|
||||
Application.Current.Dispatcher.InvokeAsync(() =>
|
||||
|
||||
Reference in New Issue
Block a user