aboutsummaryrefslogtreecommitdiff
path: root/Histacom2.Engine/UI
diff options
context:
space:
mode:
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)
{