* UINavMenu: 滚动条可设置颜色

This commit is contained in:
Sunny 2022-01-02 22:00:04 +08:00
parent 789b7cb918
commit 225385b959
2 changed files with 40 additions and 0 deletions

Binary file not shown.

View File

@ -23,6 +23,7 @@
* 2021-08-07: V3.0.5 / * 2021-08-07: V3.0.5 /
* 2021-08-27: V3.0.6 TipsText显示的颜色 * 2021-08-27: V3.0.6 TipsText显示的颜色
* 2021-12-13: V3.0.9 * 2021-12-13: V3.0.9
* 2022-01-02: V3.0.9
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -82,6 +83,45 @@ namespace Sunny.UI
SetScrollInfo(); SetScrollInfo();
} }
[Description("滚动条填充颜色"), Category("SunnyUI")]
[DefaultValue(typeof(Color), "Silver")]
public Color ScrollBarColor
{
get => Bar.ForeColor;
set
{
menuStyle = UIMenuStyle.Custom;
Bar.ForeColor = value;
Invalidate();
}
}
[Description("滚动条移上填充颜色"), Category("SunnyUI")]
[DefaultValue(typeof(Color), "Silver")]
public Color ScrollBarHoverColor
{
get => Bar.HoverColor;
set
{
menuStyle = UIMenuStyle.Custom;
Bar.HoverColor = value;
Invalidate();
}
}
[Description("滚动条按下填充颜色"), Category("SunnyUI")]
[DefaultValue(typeof(Color), "Silver")]
public Color ScrollBarPressColor
{
get => Bar.PressColor;
set
{
menuStyle = UIMenuStyle.Custom;
Bar.PressColor = value;
Invalidate();
}
}
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
base.Dispose(disposing); base.Dispose(disposing);