# HG changeset patch
# User unc0rr
# Date 1217974532 0
# Node ID 03cc0ab9c013bd38c93ef9587cae40e12cd71bee
# Parent 825931b81ad46135678e4a7f01ec27389bd27fe9
Customize comboboxes look
diff -r 825931b81ad4 -r 03cc0ab9c013 QTfrontend/hedgewars.qrc
--- a/QTfrontend/hedgewars.qrc Tue Aug 05 21:12:26 2008 +0000
+++ b/QTfrontend/hedgewars.qrc Tue Aug 05 22:15:32 2008 +0000
@@ -26,5 +26,6 @@
res/LocalPlay.png
res/NetworkPlay.png
res/Settings.png
+ res/dropdown.png
diff -r 825931b81ad4 -r 03cc0ab9c013 QTfrontend/main.cpp
--- a/QTfrontend/main.cpp Tue Aug 05 21:12:26 2008 +0000
+++ b/QTfrontend/main.cpp Tue Aug 05 22:15:32 2008 +0000
@@ -55,28 +55,62 @@
qApp->setStyleSheet
(QString(
- ".HWForm{"
+ ".HWForm{"
"background-image: url(\":/res/Background.png\");"
"background-position: bottom center;"
"background-repeat: repeat-x;"
"background-color: #870c8f;"
"}"
-// "PageMain > QPushButton{"
- "QPushButton{"
+
+ "QPushButton{"
"border: solid;"
"border-width: 4px;"
"border-radius: 8px;"
"border-color: orange;"
"background-origin: content;"
"}"
-// "PageMain > QPushButton:hover{"
"QPushButton:hover{"
"border-color: yellow;"
"}"
-// "PageMain > QPushButton:pressed{"
"QPushButton:pressed{"
"border-color: white;"
"}"
+
+ "QComboBox{"
+ "border: solid;"
+ "border-width: 4px;"
+ "border-radius: 16px;"
+ "border-color: orange;"
+ "background-color: #0d0544;"
+ "color: orange;"
+ "font: bold 14px;"
+ "padding: 3px;"
+// "text-align: center;"
+ "}"
+ "QComboBox:hover{"
+ "border-color: yellow;"
+ "}"
+ "QComboBox:pressed{"
+ "border-color: white;"
+ "}"
+ "QComboBox::drop-down{"
+ "border: transparent;"
+ "width: 25px;"
+ "}"
+ "QComboBox::down-arrow {"
+ "background-image: url(\":/res/dropdown.png\");"
+ "height: 16px;"
+ "width: 16px;"
+ "}"
+ "QComboBox QAbstractItemView{"
+ "border: solid transparent;"
+ "border-width: 4px;"
+ //"border-radius: 12px;"
+ "border-color: orange;"
+ "background-color: #0d0544;"
+ "color: orange;"
+ "font: bold 14px;"
+ "}"
)
);
diff -r 825931b81ad4 -r 03cc0ab9c013 QTfrontend/res/dropdown.png
Binary file QTfrontend/res/dropdown.png has changed