* 设置控件自定义颜色时的一些问题修改

This commit is contained in:
Sunny 2021-06-18 09:57:33 +08:00
parent e4b6be94e4
commit bafb6533b5
11 changed files with 9 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -190,6 +190,8 @@ namespace Sunny.UI
public override void SetStyleColor(UIBaseStyle uiColor)
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
fillColor = ChartStyle.BackColor;
foreColor = ChartStyle.ForeColor;
}

View File

@ -144,9 +144,9 @@ namespace Sunny.UI
public override void SetStyleColor(UIBaseStyle uiColor)
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
base.SetStyleColor(uiColor);
fillColor = uiColor.PlainColor;
}

View File

@ -105,6 +105,8 @@ namespace Sunny.UI
public override void SetStyleColor(UIBaseStyle uiColor)
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
Panel.BackColor = uiColor.PlainColor;
}

View File

@ -280,6 +280,7 @@ namespace Sunny.UI
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
symbolColor = foreColor = uiColor.LabelForeColor;
}

View File

@ -180,6 +180,7 @@ namespace Sunny.UI
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
foreColor = uiColor.RectColor;
Invalidate();
}

View File

@ -111,6 +111,7 @@ namespace Sunny.UI
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
markColor = uiColor.RectColor;
Invalidate();
}

View File

@ -791,6 +791,7 @@ namespace Sunny.UI
public override void SetStyleColor(UIBaseStyle uiColor)
{
base.SetStyleColor(uiColor);
if (uiColor.IsCustom()) return;
foreach (var button in buttons.Values)
{