diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/updaterwindow.cpp | 3 | ||||
-rw-r--r-- | src/resources/theme.cpp | 3 | ||||
-rw-r--r-- | src/resources/theme.h | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index fe036814..40da4487 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -37,6 +37,7 @@ #include "net/download.h" #include "resources/resourcemanager.h" +#include "resources/theme.h" #include "utils/gettext.h" #include "utils/stringutils.h" @@ -147,7 +148,7 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost, mBrowserBox = new BrowserBox; mScrollArea = new ScrollArea(mBrowserBox); mLabel = new Label(_("Connecting...")); - mProgressBar = new ProgressBar(0.0, 310, 20); + mProgressBar = new ProgressBar(0.0, 310, 20, Theme::PROG_DOWNLOAD); mCancelButton = new Button(_("Cancel"), "cancel", this); mPlayButton = new Button(_("Play"), "play", this); diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp index 4b46b003..dde7bb3c 100644 --- a/src/resources/theme.cpp +++ b/src/resources/theme.cpp @@ -514,7 +514,8 @@ static int readProgressType(const std::string &type) "EXP", "INVY_SLOTS", "WEIGHT", - "JOB" + "JOB", + "DOWNLOAD" }; if (type.empty()) diff --git a/src/resources/theme.h b/src/resources/theme.h index 9c1ec293..98904518 100644 --- a/src/resources/theme.h +++ b/src/resources/theme.h @@ -172,6 +172,7 @@ class Theme : public Palette, public EventListener PROG_INVY_SLOTS, PROG_WEIGHT, PROG_JOB, + PROG_DOWNLOAD, THEME_PROG_END }; |