summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp2
-rw-r--r--src/gui/theme.h2
-rw-r--r--src/gui/windows/ministatuswindow.cpp2
-rw-r--r--src/gui/windows/statuswindow.cpp2
4 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 5935442c0..aa0b87bcb 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -959,6 +959,8 @@ static int readColorType(const std::string &type)
"MP_BAR_OUTLINE"
"NO_MP_BAR",
"NO_MP_BAR_OUTLINE"
+ "XP_BAR",
+ "XP_BAR_OUTLINE"
};
if (type.empty())
diff --git a/src/gui/theme.h b/src/gui/theme.h
index bd3db6f66..bbcce646f 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -402,6 +402,8 @@ class Theme final : public Palette, public ConfigListener
MP_BAR_OUTLINE,
NO_MP_BAR,
NO_MP_BAR_OUTLINE,
+ XP_BAR,
+ XP_BAR_OUTLINE,
THEME_COLORS_END
};
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 8186f1e04..be691b72e 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -71,7 +71,7 @@ MiniStatusWindow::MiniStatusWindow() :
// TRANSLATORS: status bar name
? Theme::PROG_MP : Theme::PROG_NO_MP, "mp bar", _("mana bar"))
: nullptr),
- mXpBar(createBar(0, 100, 0, Theme::PROGRESS_BAR, Theme::PROG_EXP,
+ mXpBar(createBar(0, 100, 0, Theme::XP_BAR, Theme::PROG_EXP,
// TRANSLATORS: status bar name
"xp bar", _("experience bar"))),
mJobBar(nullptr),
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index bf93efbee..2f3d5f1e0 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -199,6 +199,8 @@ StatusWindow::StatusWindow() :
static_cast<float>(PlayerInfo::getAttribute(PlayerInfo::EXP))
/ static_cast<float>(max):
static_cast<float>(0), 80, 0, Theme::PROG_EXP);
+ mXpBar->setColor(Theme::getThemeColor(Theme::XP_BAR),
+ Theme::getThemeColor(Theme::XP_BAR_OUTLINE));
const bool magicBar = Net::getGameHandler()->canUseMagicBar();
const int job = Net::getPlayerHandler()->getJobLocation()