improve:主题切换

This commit is contained in:
CJK_mkp
2025-11-01 20:26:52 +08:00
parent 16ae32bfd7
commit 8394e99127
6 changed files with 34 additions and 7 deletions
+21
View File
@@ -65,6 +65,9 @@ namespace Ink_Canvas
// 刷新图片选中栏图标
RefreshImageSelectionIcons();
// 刷新手势按钮图标
RefreshGestureButtonIcon();
RefreshFloatingBarHighlightColors();
if (autoSwitchIcon)
@@ -109,6 +112,9 @@ namespace Ink_Canvas
// 刷新图片选中栏图标
RefreshImageSelectionIcons();
// 刷新手势按钮图标
RefreshGestureButtonIcon();
RefreshFloatingBarHighlightColors();
if (autoSwitchIcon)
@@ -492,6 +498,21 @@ namespace Ink_Canvas
}
}
/// <summary>
/// 刷新手势按钮图标
/// </summary>
private void RefreshGestureButtonIcon()
{
try
{
// 调用手势按钮颜色和图标更新方法,该方法会根据当前主题和手势状态设置正确的图标
CheckEnableTwoFingerGestureBtnColorPrompt();
}
catch (Exception)
{
}
}
/// <summary>
/// 刷新其他窗口的主题
/// </summary>