* 重构主题

This commit is contained in:
Sunny 2023-11-12 22:41:30 +08:00
parent 4496090fc7
commit 7c7e759f44
2 changed files with 3 additions and 14 deletions

View File

@ -18,6 +18,7 @@
*
* 2021-07-18: V3.0.5
* 2021-07-18: V3.0.5 TableLayoutPanel里控件的自定义颜色问题
* 2023-11-12: V3.5.2
******************************************************************************/
using System.ComponentModel;
@ -42,18 +43,6 @@ namespace Sunny.UI
this.SetDPIScaleFont(DefaultFontSize);
}
protected override void OnControlAdded(ControlEventArgs e)
{
base.OnControlAdded(e);
if (e.Control is IStyleInterface ctrl)
{
if (!ctrl.StyleCustomMode) ctrl.Style = Style;
}
UIStyleHelper.SetRawControlStyle(e, Style);
}
/// <summary>
/// 自定义主题风格
/// </summary>

View File

@ -439,10 +439,10 @@ namespace Sunny.UI
}
if (obj is UIPage) continue;
if (obj is UITableLayoutPanel) continue;
//if (obj is UITableLayoutPanel) continue;
//if (obj is UIFlowLayoutPanel) continue;
//if (obj is UIUserControl) continue;
if (obj is TableLayoutPanel) continue;
//if (obj is TableLayoutPanel) continue;
if (obj.Controls.Count > 0)
{