aboutsummaryrefslogtreecommitdiff
path: root/Histacom2.Engine/UI
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-09-20 00:37:10 -0400
committerlempamo <[email protected]>2017-09-20 00:37:10 -0400
commit1733261571c06226b44374ef658de0f062cef08b (patch)
treefafa67140fd013054873011b7f2d34060ed8592e /Histacom2.Engine/UI
parentcd16332b3c651b4190d91a9e00b8dff88c2db2da (diff)
downloadhistacom2-1733261571c06226b44374ef658de0f062cef08b.tar.gz
histacom2-1733261571c06226b44374ef658de0f062cef08b.tar.bz2
histacom2-1733261571c06226b44374ef658de0f062cef08b.zip
partial 1999 12padams site
Diffstat (limited to 'Histacom2.Engine/UI')
-rw-r--r--Histacom2.Engine/UI/ClassicButton.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Histacom2.Engine/UI/ClassicButton.cs b/Histacom2.Engine/UI/ClassicButton.cs
index 9b1db72..027d198 100644
--- a/Histacom2.Engine/UI/ClassicButton.cs
+++ b/Histacom2.Engine/UI/ClassicButton.cs
@@ -28,6 +28,7 @@ namespace Histacom2.Engine.UI
}
}
+ public bool AdaptBackColorWithTheme = true;
public bool AdaptForeColorWithTheme = true;
public bool AdaptFontWithTheme = true;
@@ -48,8 +49,7 @@ namespace Histacom2.Engine.UI
{
base.OnPaint(e);
- if (SaveSystem.currentTheme != null) BackColor = SaveSystem.currentTheme.threeDObjectsColor;
- else BackColor = Color.Silver;
+ if (SaveSystem.currentTheme != null && AdaptBackColorWithTheme) BackColor = SaveSystem.currentTheme.threeDObjectsColor;
if (AdaptForeColorWithTheme)
{