From 7e8ba785e95385d32024e151697d2e6d4ec61ef3 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Thu, 2 Aug 2012 03:29:09 +0200 Subject: Made download progress colorable --- data/graphics/gui/colors.xml | 1 + src/gui/updaterwindow.cpp | 3 ++- src/resources/theme.cpp | 3 ++- src/resources/theme.h | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/graphics/gui/colors.xml b/data/graphics/gui/colors.xml index 1dfa820c..52b755f2 100644 --- a/data/graphics/gui/colors.xml +++ b/data/graphics/gui/colors.xml @@ -48,4 +48,5 @@ + 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 }; -- cgit v1.2.3-70-g09d2