* UIBattery:修改可自定义背景色

This commit is contained in:
Sunny 2021-06-18 09:49:33 +08:00
parent 5e769b0b7d
commit e4b6be94e4
5 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -46,7 +46,6 @@ namespace Sunny.UI
{ {
SetStyleFlags(true, false); SetStyleFlags(true, false);
ShowRect = false; ShowRect = false;
fillColor = UIStyles.Blue.PlainColor;
Width = 48; Width = 48;
Height = 24; Height = 24;
} }
@ -145,6 +144,8 @@ namespace Sunny.UI
public override void SetStyleColor(UIBaseStyle uiColor) public override void SetStyleColor(UIBaseStyle uiColor)
{ {
if (uiColor.IsCustom()) return;
base.SetStyleColor(uiColor); base.SetStyleColor(uiColor);
fillColor = uiColor.PlainColor; fillColor = uiColor.PlainColor;
} }