v1.1.0: 全面重构UI为Better-Seewo横版主窗口 (Fluent风格+圆角+动画), 新增非触摸大板支持与专业版激活, 更改菜单位置至ApplicationMenu/ExtendedTitleBar

This commit is contained in:
miao-moe
2026-06-28 02:43:22 +08:00
parent fdd3418890
commit 2d35293f7c
20 changed files with 1092 additions and 81 deletions

View File

@@ -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(() =>