diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index f91a3676..8ce9c42c 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIControl.cs b/SunnyUI/Controls/UIControl.cs index 9bdefbbb..5467d685 100644 --- a/SunnyUI/Controls/UIControl.cs +++ b/SunnyUI/Controls/UIControl.cs @@ -401,6 +401,8 @@ namespace Sunny.UI color = rectSelectedColor; if (ShowFocusColor && Focused) color = rectPressColor; + if (isReadOnly) + color = rectReadOnlyColor; return Enabled ? color : rectDisableColor; } @@ -412,6 +414,8 @@ namespace Sunny.UI set; } + protected bool isReadOnly; + /// /// 获取字体颜色 /// @@ -428,6 +432,8 @@ namespace Sunny.UI color = foreSelectedColor; if (ShowFocusColor && Focused) color = forePressColor; + if (isReadOnly) + color = foreReadOnlyColor; return Enabled ? color : foreDisableColor; } @@ -447,6 +453,8 @@ namespace Sunny.UI color = fillSelectedColor; if (ShowFocusColor && Focused) color = fillPressColor; + if (isReadOnly) + color = fillReadOnlyColor; return Enabled ? color : fillDisableColor; }