This commit is contained in:
parent
77a3b86e4b
commit
2d8daa6d2b
@ -221,7 +221,7 @@ namespace Sunny.UI
|
||||
{
|
||||
if (FillColorGradient)
|
||||
{
|
||||
if (IsHover || IsPress || Selected)
|
||||
if (IsHover || IsPress || Selected || Disabled)
|
||||
{
|
||||
base.OnPaintFill(g, path);
|
||||
}
|
||||
|
@ -49,6 +49,8 @@ namespace Sunny.UI
|
||||
base.MinimumSize = new Size(1, 1);
|
||||
}
|
||||
|
||||
public bool Disabled => !Enabled;
|
||||
|
||||
/// <summary>
|
||||
/// 禁止控件跟随窗体缩放
|
||||
/// </summary>
|
||||
|
@ -50,6 +50,8 @@ namespace Sunny.UI
|
||||
SetStyleFlags(true, false);
|
||||
}
|
||||
|
||||
public bool Disabled => !Enabled;
|
||||
|
||||
/// <summary>
|
||||
/// 禁止控件跟随窗体缩放
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user