From 1733261571c06226b44374ef658de0f062cef08b Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 20 Sep 2017 00:37:10 -0400 Subject: partial 1999 12padams site --- Histacom2.Engine/UI/ClassicButton.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Histacom2.Engine/UI/ClassicButton.cs') 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) { -- cgit v1.2.3