summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-09 17:22:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-09 17:22:06 +0300
commit9e34f49d48d6e07edd307888230d4d3e4f8ecfb3 (patch)
tree8367d709604894a514d0c796d3cc5cff350d4920 /src/gui
parent0677e4c9777eaad3dacbd4079939c501fec6f58b (diff)
downloadplus-9e34f49d48d6e07edd307888230d4d3e4f8ecfb3.tar.gz
plus-9e34f49d48d6e07edd307888230d4d3e4f8ecfb3.tar.bz2
plus-9e34f49d48d6e07edd307888230d4d3e4f8ecfb3.tar.xz
plus-9e34f49d48d6e07edd307888230d4d3e4f8ecfb3.zip
add background color for status (yellow) bar.
New progress color: STATUS.
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),