summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index debbe342f..1032e7e4e 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -95,6 +95,8 @@ Gui::Gui(Graphics *const graphics) :
mLastMouseRealY(0),
#endif
mFocusListeners(),
+ mForegroundColor(Theme::getThemeColor(Theme::TEXT)),
+ mForegroundColor2(Theme::getThemeColor(Theme::TEXT_OUTLINE)),
mCustomCursor(false)
{
logger->log1("Initializing GUI...");
@@ -449,6 +451,7 @@ void Gui::draw()
{
const int posX = mouseX - mGuiFont->getWidth(str) / 2;
const int posY = mouseY + (image ? image->mBounds.h / 2 : 0);
+ g2->setColorAll(mForegroundColor, mForegroundColor2);
mGuiFont->drawString(g2, str, posX, posY);
}
}