Customize menu look
authorunc0rr
Sat, 25 Oct 2008 09:55:09 +0000
changeset 1413 6393a1d5ac18
parent 1412 20746999bc4a
child 1414 971136fa0a80
Customize menu look
QTfrontend/hwform.cpp
QTfrontend/main.cpp
--- a/QTfrontend/hwform.cpp	Sat Oct 25 09:54:53 2008 +0000
+++ b/QTfrontend/hwform.cpp	Sat Oct 25 09:55:09 2008 +0000
@@ -740,9 +740,9 @@
 	
 	if (hwnet)
 	{
-		connect(ui.pageNetGame->startGame, SIGNAL(triggered(bool)), hwnet, SLOT(startGame()));
-		connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered(bool)), hwnet, SLOT(toggleRestrictJoins()));
-		connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered(bool)), hwnet, SLOT(toggleRestrictTeamAdds()));
+		connect(ui.pageNetGame->startGame, SIGNAL(triggered()), hwnet, SLOT(startGame()));
+		connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins()));
+		connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds()));
 	}
 }
 
--- a/QTfrontend/main.cpp	Sat Oct 25 09:54:53 2008 +0000
+++ b/QTfrontend/main.cpp	Sat Oct 25 09:55:09 2008 +0000
@@ -257,6 +257,32 @@
 				//"background: transparent;"
 				"background-color: #130f2c;"
 				"}"
+
+			"QMenu{"
+				"background-color: #ffcc00;"
+				"margin: 3px;"
+				"}"
+			"QMenu::item{"
+				"background-color: #0d0544;"
+				"border: 1px solid transparent;"
+				"font: bold;"
+				"color: #ffcc00;"
+				"padding: 2px 25px 2px 20px;"
+				"}"
+			"QMenu::item:selected{"
+				"border-color: yellow;"
+				"background-color: #2d2564;"
+				"}"
+			"QMenu::indicator{"
+				"width: 16px;"
+				"height: 16px;"
+				"}"
+			"QMenu::indicator:non-exclusive:checked{"
+				"image: url(\":/res/checked.png\");"
+				"}"
+			"QMenu::indicator:non-exclusive:unchecked{"
+				"image: url(\":/res/unchecked.png\");"
+				"}"
 			)
 		);