aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/SkinEngine
diff options
context:
space:
mode:
Diffstat (limited to 'source/WindowsFormsApplication1/SkinEngine')
-rw-r--r--source/WindowsFormsApplication1/SkinEngine/skins.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/WindowsFormsApplication1/SkinEngine/skins.cs b/source/WindowsFormsApplication1/SkinEngine/skins.cs
index f23a7b5..d18770d 100644
--- a/source/WindowsFormsApplication1/SkinEngine/skins.cs
+++ b/source/WindowsFormsApplication1/SkinEngine/skins.cs
@@ -12,11 +12,13 @@ namespace Skinning
{
public class Skin : ShiftUI.ShiftOS.Skin
{
- //ShiftUI inherits: Anything marked with 'public new' is inherited
- //from ShiftUI.ShiftOS.Skin, and is marked this way to provide a
- //default value that JSON.NET can deserialize but also have
- //ShiftUI see it.
-
+ public Skin()
+ {
+ //We need to set our base skin settings here because the 'new' keyword
+ //hides the variable from ShiftUI.
+ base.ButtonBackColor_Pressed = this.ButtonBackColor_Pressed;
+ base.ProgressBar_BackgroundColor = this.ProgressBar_BackgroundColor;
+ }
public new Color ButtonBackColor_Pressed = Color.Black;