setting change

This commit is contained in:
Bob.Song
2026-02-02 17:58:39 +08:00
parent f33f61f515
commit 55a92d9b23
127 changed files with 803 additions and 222 deletions

View File

@@ -16,11 +16,7 @@ namespace NBC
bool IsShowing { get; }
bool IsCanVisible { get; }
bool IsDotDel { get; }
/// <summary>
/// 不能返回
/// </summary>
bool IsDontBack { get; }
bool IsModal { get; }
@@ -30,6 +26,7 @@ namespace NBC
void SetData(object args);
object GetData();
string[] GetDependPackages();
void SetLanguage();
void Init();
void Show();

View File

@@ -190,6 +190,7 @@ namespace NBC
Show();
}
/// <summary>
/// 设置刷新多语言
/// </summary>

View File

@@ -137,7 +137,14 @@ namespace NBC
if (curField == null) return;
var textFormat = curField.textFormat;
var font = Lan.GetLanFontByCurFont(textFormat.font);
Log.Info($"font={textFormat.font}");
var fontName = textFormat.font;
if (string.IsNullOrEmpty(fontName))
{
fontName = UIConfig.defaultFont;
}
var font = Lan.GetLanFontByCurFont(fontName);
if (font == null) return;
textFormat.font = font;
curField.textFormat = textFormat;