aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-15 09:13:08 -0400
committerMichael <[email protected]>2017-04-15 09:13:08 -0400
commit1a3a9b4a4c82bab2417955c81acddb85352d9013 (patch)
tree3050048dafdb7b23d8094a3c7681c9605409c297 /ShiftOS.WinForms
parent0bc8eef195e7da04ea89481ede327bf37d591659 (diff)
downloadshiftos_thereturn-1a3a9b4a4c82bab2417955c81acddb85352d9013.tar.gz
shiftos_thereturn-1a3a9b4a4c82bab2417955c81acddb85352d9013.tar.bz2
shiftos_thereturn-1a3a9b4a4c82bab2417955c81acddb85352d9013.zip
fix skin loader preview
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Applications/Skin Loader.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Skin Loader.cs b/ShiftOS.WinForms/Applications/Skin Loader.cs
index 58b444c..1f09e4a 100644
--- a/ShiftOS.WinForms/Applications/Skin Loader.cs
+++ b/ShiftOS.WinForms/Applications/Skin Loader.cs
@@ -47,12 +47,20 @@ namespace ShiftOS.WinForms.Applications
public Skin_Loader()
{
InitializeComponent();
-
+ SetupControls(pnlborder);
+ SetupControls(pnldesktop);
LoadedSkin = JsonConvert.DeserializeObject<Skin>(JsonConvert.SerializeObject(SkinEngine.LoadedSkin));
this.Load += (o, a) => { SetupUI(); };
}
+ public void SetupControls(Control ctrl)
+ {
+ ctrl.Tag = "keepbg keepfg keepfont";
+ foreach (Control c in ctrl.Controls)
+ SetupControls(c);
+ }
+
public Skin LoadedSkin { get; set; }
public void SetupUI()
@@ -318,6 +326,7 @@ namespace ShiftOS.WinForms.Applications
public void OnSkinLoad()
{
+ SetupUI();
}
public bool OnUnload()
@@ -327,6 +336,7 @@ namespace ShiftOS.WinForms.Applications
public void OnUpgrade()
{
+ SetupUI();
}
}
}