From c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Oct 2012 01:36:25 +0300 Subject: Add new parameters to buttons theming. New parameters: padding - padding over button text. spacing - space between text and image. --- data/graphics/gui/button.xml | 3 ++ data/graphics/gui/button_disabled.xml | 3 ++ data/graphics/gui/button_highlighted.xml | 3 ++ data/graphics/gui/button_pressed.xml | 3 ++ src/gui/theme.h | 4 +- src/gui/widgets/button.cpp | 74 ++++++++++++++++++++------------ src/gui/widgets/button.h | 5 ++- 7 files changed, 64 insertions(+), 31 deletions(-) diff --git a/data/graphics/gui/button.xml b/data/graphics/gui/button.xml index 899030820..95ac8d7f2 100644 --- a/data/graphics/gui/button.xml +++ b/data/graphics/gui/button.xml @@ -1,5 +1,8 @@ +