diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-11 04:52:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-11 04:52:48 +0300 |
commit | aabbfa8483a13958d27a24c9b1e4fcad288fad8c (patch) | |
tree | 9606e86d727a8b6b26f7ee1a5ce7c3066d7d2c45 /src | |
parent | db4361d9f7652104e818cf9a2a0f326e1c607fb8 (diff) | |
download | mv-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.gz mv-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.bz2 mv-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.tar.xz mv-aabbfa8483a13958d27a24c9b1e4fcad288fad8c.zip |
Add own theme image for progressbar. If no own image it fallback to vscroll image.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/progressbar.cpp | 4 |
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); |