!35 修正窗体被继承时,改更主题后,有些子控件主题不改变的问题
Merge pull request !35 from 木-易-杨/master
This commit is contained in:
commit
8ddd9858bc
@ -41,20 +41,7 @@ namespace Sunny.UI
|
||||
public UIForm()
|
||||
{
|
||||
base.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);//设置最大化尺寸
|
||||
InitializeComponent();
|
||||
|
||||
if (this.Register())
|
||||
{
|
||||
SetStyle(UIStyles.Style);
|
||||
}
|
||||
|
||||
SetStyle(
|
||||
ControlStyles.UserPaint |
|
||||
ControlStyles.DoubleBuffer |
|
||||
ControlStyles.OptimizedDoubleBuffer |
|
||||
ControlStyles.AllPaintingInWmPaint |
|
||||
ControlStyles.SupportsTransparentBackColor, true);
|
||||
UpdateStyles();
|
||||
InitializeComponent();
|
||||
|
||||
Version = UIGlobal.Version;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
@ -75,7 +62,20 @@ namespace Sunny.UI
|
||||
{
|
||||
SetStyle(UIStyles.Style);
|
||||
}
|
||||
|
||||
private void UIForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Register())
|
||||
{
|
||||
SetStyle(UIStyles.Style);
|
||||
}
|
||||
SetStyle(
|
||||
ControlStyles.UserPaint |
|
||||
ControlStyles.DoubleBuffer |
|
||||
ControlStyles.OptimizedDoubleBuffer |
|
||||
ControlStyles.AllPaintingInWmPaint |
|
||||
ControlStyles.SupportsTransparentBackColor, true);
|
||||
UpdateStyles();
|
||||
}
|
||||
protected override void OnBackColorChanged(EventArgs e)
|
||||
{
|
||||
base.OnBackColorChanged(e);
|
||||
@ -1566,7 +1566,7 @@ namespace Sunny.UI
|
||||
public void ShowSuccessNotifier(string desc, bool isDialog = false, int timeout = 2000)
|
||||
{
|
||||
UINotifierHelper.ShowNotifier(desc, UINotifierType.OK, UILocalize.SuccessTitle, false, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowWarningNotifier(string desc, bool isDialog = false, int timeout = 2000)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user