diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-09 19:30:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-09 19:30:29 +0300 |
commit | 84d0d0e63d8e46187f81fdbd241062f942f5e54f (patch) | |
tree | a8ec371a94f7eee2ba4b402a3d5f56720d8c8a52 /src/gui | |
parent | 0669b8b097f21957ed72ae1304064743130710d9 (diff) | |
download | plus-84d0d0e63d8e46187f81fdbd241062f942f5e54f.tar.gz plus-84d0d0e63d8e46187f81fdbd241062f942f5e54f.tar.bz2 plus-84d0d0e63d8e46187f81fdbd241062f942f5e54f.tar.xz plus-84d0d0e63d8e46187f81fdbd241062f942f5e54f.zip |
Add text colors for job bar.
New theme colors: JOB_BAR, JOB_BAR_OUTLINE
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/theme.cpp | 4 | ||||
-rw-r--r-- | src/gui/theme.h | 2 | ||||
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 281f5b37f..b7510dc9f 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -968,7 +968,9 @@ static int readColorType(const std::string &type) "ARROWS_BAR", "ARROWS_BAR_OUTLINE", "STATUS_BAR", - "STATUS_BAR_OUTLINE" + "STATUS_BAR_OUTLINE", + "JOB_BAR", + "JOB_BAR_OUTLINE" }; if (type.empty()) diff --git a/src/gui/theme.h b/src/gui/theme.h index 9e022dfcb..049e7e04b 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -412,6 +412,8 @@ class Theme final : public Palette, public ConfigListener ARROWS_BAR_OUTLINE, STATUS_BAR, STATUS_BAR_OUTLINE, + JOB_BAR, + JOB_BAR_OUTLINE, THEME_COLORS_END }; diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index fb1805f22..412b1b730 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -112,7 +112,7 @@ MiniStatusWindow::MiniStatusWindow() : if (job) { - mJobBar = createBar(0, 100, 0, Theme::PROGRESS_BAR, Theme::PROG_JOB, + mJobBar = createBar(0, 100, 0, Theme::JOB_BAR, Theme::PROG_JOB, // TRANSLATORS: status bar name "job bar", _("job bar")); StatusWindow::updateJobBar(mJobBar); diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 2f3d5f1e0..e08483f5d 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -255,6 +255,8 @@ StatusWindow::StatusWindow() : // TRANSLATORS: status window label mJobLabel = new Label(this, _("Job:")); mJobBar = new ProgressBar(this, 0.0F, 80, 0, Theme::PROG_JOB); + mJobBar->setColor(Theme::getThemeColor(Theme::JOB_BAR), + Theme::getThemeColor(Theme::JOB_BAR_OUTLINE)); place(3, 0, mJobLvlLabel, 3); place(5, 2, mJobLabel).setPadding(3); |