* 重构主题
This commit is contained in:
parent
e25fe74d87
commit
ee63065623
1
SunnyUI.Demo/FMain.Designer.cs
generated
1
SunnyUI.Demo/FMain.Designer.cs
generated
@ -116,7 +116,6 @@
|
|||||||
this.uiLogo1.MinimumSize = new System.Drawing.Size(300, 80);
|
this.uiLogo1.MinimumSize = new System.Drawing.Size(300, 80);
|
||||||
this.uiLogo1.Name = "uiLogo1";
|
this.uiLogo1.Name = "uiLogo1";
|
||||||
this.uiLogo1.Size = new System.Drawing.Size(300, 80);
|
this.uiLogo1.Size = new System.Drawing.Size(300, 80);
|
||||||
this.uiLogo1.Style = Sunny.UI.UIStyle.Custom;
|
|
||||||
this.uiLogo1.TabIndex = 4;
|
this.uiLogo1.TabIndex = 4;
|
||||||
this.uiLogo1.Text = "uiLogo1";
|
this.uiLogo1.Text = "uiLogo1";
|
||||||
//
|
//
|
||||||
|
@ -403,7 +403,18 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
if (control is IStyleInterface item && item.Style == UIStyle.Inherited)
|
if (control is IStyleInterface item && item.Style == UIStyle.Inherited)
|
||||||
{
|
{
|
||||||
item.SetInheritedStyle(style);
|
if (item is UIPage uipage && uipage.Parent is TabPage tabpage)
|
||||||
|
{
|
||||||
|
TabControl tabControl = tabpage.Parent as TabControl;
|
||||||
|
if (tabControl.SelectedTab == tabpage)
|
||||||
|
{
|
||||||
|
item.SetInheritedStyle(style);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
item.SetInheritedStyle(style);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user