improve:主题切换

This commit is contained in:
2025-10-05 09:16:36 +08:00
parent 3eba662772
commit fbf6a13f92
3 changed files with 69 additions and 0 deletions
@@ -430,6 +430,25 @@ namespace Ink_Canvas
InitializeUI();
}
/// <summary>
/// 刷新主题,当主窗口主题切换时调用
/// </summary>
public void RefreshTheme()
{
try
{
// 重新应用主题
ApplyTheme();
// 强制刷新UI
InvalidateVisual();
}
catch (Exception ex)
{
LogHelper.WriteLogToFile($"刷新计时器窗口主题出错: {ex.Message}", LogHelper.LogType.Error);
}
}
private void UpdateButtonTexts()
{
if (useLegacyUI)