# HG changeset patch
# User unc0rr
# Date 1217975945 0
# Node ID ffd0a34171f1589425ea94a0af22b6705f5b789a
# Parent 03cc0ab9c013bd38c93ef9587cae40e12cd71bee
Customize checkboxes
diff -r 03cc0ab9c013 -r ffd0a34171f1 QTfrontend/hedgewars.qrc
--- a/QTfrontend/hedgewars.qrc Tue Aug 05 22:15:32 2008 +0000
+++ b/QTfrontend/hedgewars.qrc Tue Aug 05 22:39:05 2008 +0000
@@ -27,5 +27,7 @@
res/NetworkPlay.png
res/Settings.png
res/dropdown.png
+ res/checked.png
+ res/unchecked.png
diff -r 03cc0ab9c013 -r ffd0a34171f1 QTfrontend/main.cpp
--- a/QTfrontend/main.cpp Tue Aug 05 22:15:32 2008 +0000
+++ b/QTfrontend/main.cpp Tue Aug 05 22:39:05 2008 +0000
@@ -98,9 +98,7 @@
"width: 25px;"
"}"
"QComboBox::down-arrow {"
- "background-image: url(\":/res/dropdown.png\");"
- "height: 16px;"
- "width: 16px;"
+ "image: url(\":/res/dropdown.png\");"
"}"
"QComboBox QAbstractItemView{"
"border: solid transparent;"
@@ -111,6 +109,40 @@
"color: orange;"
"font: bold 14px;"
"}"
+
+ "QGroupBox{"
+ "border: solid;"
+ "border-width: 4px;"
+ "border-radius: 16px;"
+ "border-color: orange;"
+ "background-color: #0d0544;"
+ "color: orange;"
+ "font: bold 14px;"
+ "padding: 3px;"
+ "}"
+ "QGroupBox:hover{"
+ "border-color: yellow;"
+ "}"
+ "QGroupBox:pressed{"
+ "border-color: white;"
+ "}"
+
+ "QCheckBox{"
+// "background-color: #0d0544;"
+ "color: orange;"
+ "font: bold 14px;"
+// "padding: 3px;"
+ "}"
+ "QCheckBox::indicator{"
+ "image-position: right;"
+ "}"
+ "QCheckBox::indicator:checked{"
+ "image: url(\":/res/checked.png\");"
+ "image-position: right;"
+ "}"
+ "QCheckBox::indicator:unchecked{"
+ "image: url(\":/res/unchecked.png\");"
+ "}"
)
);
diff -r 03cc0ab9c013 -r ffd0a34171f1 QTfrontend/res/checked.png
Binary file QTfrontend/res/checked.png has changed
diff -r 03cc0ab9c013 -r ffd0a34171f1 QTfrontend/res/unchecked.png
Binary file QTfrontend/res/unchecked.png has changed