* UINavMenu: 设置滚动条背景色

This commit is contained in:
Sunny 2022-01-10 23:47:02 +08:00
parent 0beefc845b
commit f1e6fd0cb1
3 changed files with 13 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -83,6 +83,19 @@ namespace Sunny.UI
SetScrollInfo();
}
[Description("滚动条填充颜色"), Category("SunnyUI")]
[DefaultValue(typeof(Color), "56, 56, 56")]
public Color ScrollFillColor
{
get => Bar.FillColor;
set
{
menuStyle = UIMenuStyle.Custom;
Bar.FillColor = value;
Invalidate();
}
}
[Description("滚动条填充颜色"), Category("SunnyUI")]
[DefaultValue(typeof(Color), "Silver")]
public Color ScrollBarColor