From 7a7f5905cf19f6a773dcf9bab762b54c16e325f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Oct 2012 17:00:40 +0300 Subject: Add support for padding in progress bars. Also fixed progress bars size. New progress bar attributes: fillPadding - padding for will rectangle padding - normal padding for bar --- data/graphics/gui/progressbar.xml | 2 + data/themes/enchilado/CMakeLists.txt | 1 + data/themes/enchilado/Makefile.am | 1 + data/themes/enchilado/progressbar.xml | 25 ++++++++ data/themes/pink/CMakeLists.txt | 1 + data/themes/pink/Makefile.am | 1 + data/themes/pink/progressbar.xml | 25 ++++++++ data/themes/unity/CMakeLists.txt | 1 + data/themes/unity/Makefile.am | 1 + data/themes/unity/progressbar.xml | 25 ++++++++ data/themes/wood/CMakeLists.txt | 1 + data/themes/wood/Makefile.am | 1 + data/themes/wood/progressbar.xml | 25 ++++++++ src/gui/inventorywindow.cpp | 4 +- src/gui/ministatuswindow.cpp | 18 +++--- src/gui/skilldialog.cpp | 7 --- src/gui/specialswindow.cpp | 2 +- src/gui/statuswindow.cpp | 8 +-- src/gui/updaterwindow.cpp | 2 +- src/gui/widgets/progressbar.cpp | 113 +++++++++++++--------------------- src/gui/widgets/progressbar.h | 20 +++--- 21 files changed, 178 insertions(+), 106 deletions(-) create mode 100644 data/themes/enchilado/progressbar.xml create mode 100644 data/themes/pink/progressbar.xml create mode 100644 data/themes/unity/progressbar.xml create mode 100644 data/themes/wood/progressbar.xml diff --git a/data/graphics/gui/progressbar.xml b/data/graphics/gui/progressbar.xml index b425025bb..dab818416 100644 --- a/data/graphics/gui/progressbar.xml +++ b/data/graphics/gui/progressbar.xml @@ -1,5 +1,7 @@ +