From 14bfb4cde9ecfa637171ab219f3c12963b784202 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 19 Aug 2022 10:10:11 +0800 Subject: [PATCH] =?UTF-8?q?*=20UINavMenu:=20=E4=BF=AE=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E8=8A=82=E7=82=B9=E5=8F=B3=E4=BE=A7=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=89=8D=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UINavMenu.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SunnyUI/Controls/UINavMenu.cs b/SunnyUI/Controls/UINavMenu.cs index 88e45811..5472dbda 100644 --- a/SunnyUI/Controls/UINavMenu.cs +++ b/SunnyUI/Controls/UINavMenu.cs @@ -28,6 +28,7 @@ * 2022-03-24: V3.1.1 修复TipsText显示位置 * 2022-04-14: V3.1.3 重构扩展函数 * 2022-06-23: V3.2.0 绘制节点字体图标增加偏移SymbolOffset + * 2022-08-19: V3.2.3 修复选中节点右侧图标前景色 ******************************************************************************/ using System; @@ -668,7 +669,7 @@ namespace Sunny.UI for (int i = 0; i < TreeNodeSymbols[e.Node].Count; i++) { - e.Graphics.DrawFontImage(TreeNodeSymbols[e.Node][i], 24, ForeColor, new Rectangle(firstLeft + i * 32, e.Bounds.Top, 32, e.Bounds.Height)); + e.Graphics.DrawFontImage(TreeNodeSymbols[e.Node][i], 24, SelectedForeColor, new Rectangle(firstLeft + i * 32, e.Bounds.Top, 32, e.Bounds.Height)); } } }