improve:主题切换

This commit is contained in:
2025-10-04 17:26:11 +08:00
parent 97bcf168b7
commit 1d9a669829
2 changed files with 32 additions and 7 deletions
+13 -2
View File
@@ -155,8 +155,19 @@ namespace Ink_Canvas
{
try
{
// 选中状态的颜色(蓝底)
var selectedColor = Color.FromRgb(30, 58, 138);
// 根据主题选择高光颜色
Color selectedColor;
bool isDarkTheme = Settings.Appearance.Theme == 1 ||
(Settings.Appearance.Theme == 2 && !IsSystemThemeLight());
if (isDarkTheme)
{
selectedColor = Color.FromRgb(102, 204, 255);
}
else
{
selectedColor = Color.FromRgb(30, 58, 138);
}
// 根据当前模式设置按钮颜色
switch (_currentToolMode)