summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-09 16:43:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-09 16:43:45 +0300
commit0677e4c9777eaad3dacbd4079939c501fec6f58b (patch)
treea998ca0b0ae848c7dbc80f10c7e2ef712951726e /src
parent848d757b0d801780253d34bf11ebd88c26254ff0 (diff)
downloadmanaplus-0677e4c9777eaad3dacbd4079939c501fec6f58b.tar.gz
manaplus-0677e4c9777eaad3dacbd4079939c501fec6f58b.tar.bz2
manaplus-0677e4c9777eaad3dacbd4079939c501fec6f58b.tar.xz
manaplus-0677e4c9777eaad3dacbd4079939c501fec6f58b.zip
Add text colors for arrows bar.
New theme colors: ARROWS_BAR, ARROWS_BAR_OUTLINE
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp4
-rw-r--r--src/gui/theme.h2
-rw-r--r--src/gui/windows/ministatuswindow.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index ff2d66c67..816fdcaa5 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -964,7 +964,9 @@ static int readColorType(const std::string &type)
"WEIGHT_BAR",
"WEIGHT_BAR_OUTLINE",
"MONEY_BAR",
- "MONEY_BAR_OUTLINE"
+ "MONEY_BAR_OUTLINE",
+ "ARROWS_BAR",
+ "ARROWS_BAR_OUTLINE"
};
if (type.empty())
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 1a94bdb53..85062a3e7 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -408,6 +408,8 @@ class Theme final : public Palette, public ConfigListener
WEIGHT_BAR_OUTLINE,
MONEY_BAR,
MONEY_BAR_OUTLINE,
+ ARROWS_BAR,
+ ARROWS_BAR_OUTLINE,
THEME_COLORS_END
};
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 14508b334..f21e53d42 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -85,7 +85,7 @@ MiniStatusWindow::MiniStatusWindow() :
mMoneyBar(createBar(0, 130, 0, Theme::MONEY_BAR, Theme::PROG_MONEY,
// TRANSLATORS: status bar name
"money bar", _("money bar"))),
- mArrowsBar(createBar(0, 50, 0, Theme::SLOTS_BAR, Theme::PROG_ARROWS,
+ mArrowsBar(createBar(0, 50, 0, Theme::ARROWS_BAR, Theme::PROG_ARROWS,
// TRANSLATORS: status bar name
"arrows bar", _("arrows bar"))),
mStatusBar(createBar(100, (config.getIntValue("fontSize") > 16