Customize checkboxes
authorunc0rr
Tue, 05 Aug 2008 22:39:05 +0000
changeset 1155 ffd0a34171f1
parent 1154 03cc0ab9c013
child 1156 3b51492e77f9
Customize checkboxes
QTfrontend/hedgewars.qrc
QTfrontend/main.cpp
QTfrontend/res/checked.png
QTfrontend/res/unchecked.png
--- 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 @@
     <file>res/NetworkPlay.png</file>
     <file>res/Settings.png</file>
     <file>res/dropdown.png</file>
+    <file>res/checked.png</file>
+    <file>res/unchecked.png</file>
 </qresource>
 </RCC>
--- 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\");"
+				"}"
 			)
 		);
 
Binary file QTfrontend/res/checked.png has changed
Binary file QTfrontend/res/unchecked.png has changed