From 0677e4c9777eaad3dacbd4079939c501fec6f58b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Dec 2013 16:43:45 +0300 Subject: Add text colors for arrows bar. New theme colors: ARROWS_BAR, ARROWS_BAR_OUTLINE --- src/gui/theme.cpp | 4 +++- src/gui/theme.h | 2 ++ src/gui/windows/ministatuswindow.cpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2