From 3ae7d2eff3d20c3042ddac4fd4f205812079b94e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Oct 2012 18:31:26 +0300 Subject: Extend checkbox theming. New options: padding - padding from all sides except left imagePadding - padding from left before image imageSize - image size for computation width spacing - space between image and text width = imagePadding + imageSize + spacing + text width + padding height = padding + text height + padding --- data/graphics/gui/checkbox.xml | 5 ++ src/gui/logindialog.h | 6 +- src/gui/setup_joystick.h | 10 +-- src/gui/setup_relations.h | 6 +- src/gui/setup_video.h | 12 ++-- src/gui/shopwindow.h | 2 +- src/gui/widgets/checkbox.cpp | 144 +++++++++++++++------------------------ src/gui/widgets/checkbox.h | 17 +++-- src/guichan/widgets/checkbox.cpp | 4 -- 9 files changed, 85 insertions(+), 121 deletions(-) diff --git a/data/graphics/gui/checkbox.xml b/data/graphics/gui/checkbox.xml index 7e6161bb0..456c26366 100644 --- a/data/graphics/gui/checkbox.xml +++ b/data/graphics/gui/checkbox.xml @@ -1,5 +1,10 @@ +