From 9e34f49d48d6e07edd307888230d4d3e4f8ecfb3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Dec 2013 17:22:06 +0300 Subject: add background color for status (yellow) bar. New progress color: STATUS. --- src/gui/theme.cpp | 5 +++-- src/gui/theme.h | 1 + src/gui/windows/ministatuswindow.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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), -- cgit v1.2.3-60-g2f50