diff options
| author | MichaelTheShifter <[email protected]> | 2016-07-20 09:17:10 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-07-20 09:17:10 -0400 |
| commit | f1856e8ed30ed882229fd3fa2a4038122a5fb441 (patch) | |
| tree | f07964fa90b80fbb210b1a87a847481430502146 /source/WindowsFormsApplication1/SkinEngine/skins.cs | |
| parent | d5f6a04902749e73530eae1e1e0f97cb78525334 (diff) | |
| download | shiftos-c--f1856e8ed30ed882229fd3fa2a4038122a5fb441.tar.gz shiftos-c--f1856e8ed30ed882229fd3fa2a4038122a5fb441.tar.bz2 shiftos-c--f1856e8ed30ed882229fd3fa2a4038122a5fb441.zip | |
Fix graphical glitch with buttons.
This glitch has been prevelant ever since ShiftOS first had Knowledge
Input. And I don't mean 0.1.0, I mean all the way back before 0.0.5 when
OSFirstTimer was developing it.
Basically, buttons would show light gray backgrounds when you click on
them. Now they show black (and it's skinnable :D)
Diffstat (limited to 'source/WindowsFormsApplication1/SkinEngine/skins.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/SkinEngine/skins.cs | 12 |
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; |
