summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-11 04:52:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-11 04:52:48 +0300
commitaabbfa8483a13958d27a24c9b1e4fcad288fad8c (patch)
tree9606e86d727a8b6b26f7ee1a5ce7c3066d7d2c45 /src/gui/widgets
parentdb4361d9f7652104e818cf9a2a0f326e1c607fb8 (diff)
downloadmanaplus-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.gz
manaplus-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.bz2
manaplus-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.xz
manaplus-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.zip
Add own theme image for progressbar. If no own image it fallback to vscroll image.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/progressbar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index c1d6a9531..7324fc9ad 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -70,7 +70,9 @@ ProgressBar::ProgressBar(float progress,
if (mInstances == 0)
{
- Image *dBorders = Theme::getImageFromTheme("vscroll_grey.png");
+ Image *dBorders = Theme::getImageFromTheme("progress.png");
+ if (!dBorders)
+ dBorders = Theme::getImageFromTheme("vscroll_grey.png");
if (dBorders)
{
mBorder.grid[0] = dBorders->getSubImage(0, 0, 4, 4);