summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/theme.cpp5
-rw-r--r--src/gui/theme.h1
-rw-r--r--src/gui/windows/ministatuswindow.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 816fdcaa5..3f1064d1a 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -1046,7 +1046,7 @@ static Palette::GradientType readColorGradient(const std::string &grad)
static int readProgressType(const std::string &type)
{
- static const std::string colors[] =
+ static const std::string colors[Theme::THEME_PROG_END] =
{
"HP",
"MP",
@@ -1057,7 +1057,8 @@ static int readProgressType(const std::string &type)
"JOB",
"UPDATE",
"MONEY",
- "ARROWS"
+ "ARROWS",
+ "STATUS"
};
if (type.empty())
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 85062a3e7..95e8f84bc 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -425,6 +425,7 @@ class Theme final : public Palette, public ConfigListener
PROG_UPDATE,
PROG_MONEY,
PROG_ARROWS,
+ PROG_STATUS,
THEME_PROG_END
};
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index f21e53d42..2de6621f4 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -89,7 +89,7 @@ MiniStatusWindow::MiniStatusWindow() :
// TRANSLATORS: status bar name
"arrows bar", _("arrows bar"))),
mStatusBar(createBar(100, (config.getIntValue("fontSize") > 16
- ? 250 : 165), 0, Theme::PROGRESS_BAR, Theme::PROG_EXP,
+ ? 250 : 165), 0, Theme::PROGRESS_BAR, Theme::PROG_STATUS,
// TRANSLATORS: status bar name
"status bar", _("status bar"))),
mTextPopup(new TextPopup),