aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeClassic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeClassic.cpp')
-rw-r--r--gui/ThemeClassic.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/ThemeClassic.cpp b/gui/ThemeClassic.cpp
index bda8836af5..69a5690b03 100644
--- a/gui/ThemeClassic.cpp
+++ b/gui/ThemeClassic.cpp
@@ -79,7 +79,8 @@ void ThemeClassic::refresh() {
_shadowcolor = _system->RGBToColor(64, 64, 64);
_textcolor = _system->RGBToColor(32, 160, 32);
_textcolorhi = _system->RGBToColor(0, 255, 0);
- _system->showOverlay();
+ if (_enabled)
+ _system->showOverlay();
}
void ThemeClassic::enable() {
@@ -87,10 +88,12 @@ void ThemeClassic::enable() {
resetDrawArea();
_system->showOverlay();
clearAll();
+ _enabled = true;
}
void ThemeClassic::disable() {
_system->hideOverlay();
+ _enabled = false;
}
void ThemeClassic::openDialog(bool topDialog) {