- Customize spinbox arrows
authorunc0rr
Sun, 28 Sep 2008 09:18:24 +0000
changeset 1289 789db262d90d
parent 1288 cea4a8f52f5a
child 1290 3cb7f6b5000e
- Customize spinbox arrows - Optimize frontend's images
QTfrontend/hedgewars.qrc
QTfrontend/main.cpp
QTfrontend/res/About.png
QTfrontend/res/Background.png
QTfrontend/res/Exit.png
QTfrontend/res/HedgewarsTitle.png
QTfrontend/res/LocalPlay.png
QTfrontend/res/NetworkPlay.png
QTfrontend/res/Save.png
QTfrontend/res/Settings.png
QTfrontend/res/ammopic.png
QTfrontend/res/bonus.png
QTfrontend/res/botlevels/0.png
QTfrontend/res/botlevels/1.png
QTfrontend/res/botlevels/2.png
QTfrontend/res/botlevels/3.png
QTfrontend/res/botlevels/4.png
QTfrontend/res/botlevels/5.png
QTfrontend/res/botlevels/net0.png
QTfrontend/res/botlevels/net1.png
QTfrontend/res/botlevels/net2.png
QTfrontend/res/botlevels/net3.png
QTfrontend/res/botlevels/net4.png
QTfrontend/res/botlevels/net5.png
QTfrontend/res/checked.png
QTfrontend/res/dropdown.png
QTfrontend/res/hh25x25.png
QTfrontend/res/infinity.png
QTfrontend/res/net.png
QTfrontend/res/panelbg.png
QTfrontend/res/spin_down.png
QTfrontend/res/spin_up.png
QTfrontend/res/teamicon.png
QTfrontend/res/unchecked.png
QTfrontend/res/weaponsicon.png
--- a/QTfrontend/hedgewars.qrc	Sun Sep 28 08:28:32 2008 +0000
+++ b/QTfrontend/hedgewars.qrc	Sun Sep 28 09:18:24 2008 +0000
@@ -34,5 +34,7 @@
     <file>res/weaponsicon.png</file>
     <file>res/teamicon.png</file>
     <file>res/panelbg.png</file>
+    <file>res/spin_up.png</file>
+    <file>res/spin_down.png</file>
 </qresource>
 </RCC>
--- a/QTfrontend/main.cpp	Sun Sep 28 08:28:32 2008 +0000
+++ b/QTfrontend/main.cpp	Sun Sep 28 09:18:24 2008 +0000
@@ -127,6 +127,24 @@
 			"QSpinBox:hover{"
 				"border-color: yellow;"
 				"}"
+			"QSpinBox::up-button{"
+				"background: transparent;"
+				"width: 16px;"
+				"height: 10px;"
+				"}"
+			"QSpinBox::up-arrow{"
+				"image: url(\":/res/spin_up.png\");"
+				//"width: 5px;"
+				//"height: 5px;"
+				"}"
+			"QSpinBox::down-button{"
+				"background: transparent;"
+				"width: 16px;"
+				"height: 10px;"
+				"}"
+			"QSpinBox::down-arrow{"
+				"image: url(\":/res/spin_down.png\");"
+				"}"
 
 			"QToolBox{"
 				"border: solid;"
Binary file QTfrontend/res/About.png has changed
Binary file QTfrontend/res/Background.png has changed
Binary file QTfrontend/res/Exit.png has changed
Binary file QTfrontend/res/HedgewarsTitle.png has changed
Binary file QTfrontend/res/LocalPlay.png has changed
Binary file QTfrontend/res/NetworkPlay.png has changed
Binary file QTfrontend/res/Save.png has changed
Binary file QTfrontend/res/Settings.png has changed
Binary file QTfrontend/res/ammopic.png has changed
Binary file QTfrontend/res/bonus.png has changed
Binary file QTfrontend/res/botlevels/0.png has changed
Binary file QTfrontend/res/botlevels/1.png has changed
Binary file QTfrontend/res/botlevels/2.png has changed
Binary file QTfrontend/res/botlevels/3.png has changed
Binary file QTfrontend/res/botlevels/4.png has changed
Binary file QTfrontend/res/botlevels/5.png has changed
Binary file QTfrontend/res/botlevels/net0.png has changed
Binary file QTfrontend/res/botlevels/net1.png has changed
Binary file QTfrontend/res/botlevels/net2.png has changed
Binary file QTfrontend/res/botlevels/net3.png has changed
Binary file QTfrontend/res/botlevels/net4.png has changed
Binary file QTfrontend/res/botlevels/net5.png has changed
Binary file QTfrontend/res/checked.png has changed
Binary file QTfrontend/res/dropdown.png has changed
Binary file QTfrontend/res/hh25x25.png has changed
Binary file QTfrontend/res/infinity.png has changed
Binary file QTfrontend/res/net.png has changed
Binary file QTfrontend/res/panelbg.png has changed
Binary file QTfrontend/res/spin_down.png has changed
Binary file QTfrontend/res/spin_up.png has changed
Binary file QTfrontend/res/teamicon.png has changed
Binary file QTfrontend/res/unchecked.png has changed
Binary file QTfrontend/res/weaponsicon.png has changed