Add images for radio buttons, add hover and pressed images for checkboxes
authorWuzzy <Wuzzy2@mail.ru>
Wed, 14 Mar 2018 21:46:07 +0100
changeset 13207 d948d39e5da8
parent 13206 c66ae01ca5a4
child 13208 fcffacc6ee8f
child 13209 f5d36be88c61
Add images for radio buttons, add hover and pressed images for checkboxes
QTfrontend/hedgewars.qrc
QTfrontend/res/checked.png
QTfrontend/res/checkedHover.png
QTfrontend/res/checkedPressed.png
QTfrontend/res/css/qt.css
QTfrontend/res/radioButtonChecked.png
QTfrontend/res/radioButtonCheckedHover.png
QTfrontend/res/radioButtonCheckedPressed.png
QTfrontend/res/radioButtonUnchecked.png
QTfrontend/res/radioButtonUncheckedHover.png
QTfrontend/res/radioButtonUncheckedPressed.png
QTfrontend/res/radioChecked.png
QTfrontend/res/uncheckedHover.png
QTfrontend/res/uncheckedPressed.png
--- a/QTfrontend/hedgewars.qrc	Wed Mar 14 20:58:24 2018 +0100
+++ b/QTfrontend/hedgewars.qrc	Wed Mar 14 21:46:07 2018 +0100
@@ -84,7 +84,17 @@
         <file>res/edit.png</file>
         <file>res/delete.png</file>
         <file>res/checked.png</file>
+        <file>res/checkedHover.png</file>
+        <file>res/checkedPressed.png</file>
         <file>res/unchecked.png</file>
+        <file>res/uncheckedHover.png</file>
+        <file>res/uncheckedPressed.png</file>
+        <file>res/radioButtonChecked.png</file>
+        <file>res/radioButtonCheckedHover.png</file>
+        <file>res/radioButtonCheckedPressed.png</file>
+        <file>res/radioButtonUnchecked.png</file>
+        <file>res/radioButtonUncheckedHover.png</file>
+        <file>res/radioButtonUncheckedPressed.png</file>
         <file>res/missionFinished.png</file>
         <file>res/missionFinishedSelected.png</file>
         <file>res/dlcMarker.png</file>
Binary file QTfrontend/res/checked.png has changed
Binary file QTfrontend/res/checkedHover.png has changed
Binary file QTfrontend/res/checkedPressed.png has changed
--- a/QTfrontend/res/css/qt.css	Wed Mar 14 20:58:24 2018 +0100
+++ b/QTfrontend/res/css/qt.css	Wed Mar 14 21:46:07 2018 +0100
@@ -213,9 +213,40 @@
 QCheckBox::indicator:checked{
 image: url(":/res/checked.png");
 }
+QCheckBox::indicator:checked:hover{
+image: url(":/res/checkedHover.png");
+}
+QCheckBox::indicator:checked:pressed{
+image: url(":/res/checkedPressed.png");
+}
 QCheckBox::indicator:unchecked{
 image: url(":/res/unchecked.png");
 }
+QCheckBox::indicator:unchecked:hover{
+image: url(":/res/uncheckedHover.png");
+}
+QCheckBox::indicator:unchecked:pressed{
+image: url(":/res/uncheckedPressed.png");
+}
+
+QRadioButton::indicator:checked{
+image: url(":/res/radioButtonChecked.png");
+}
+QRadioButton::indicator:checked:hover{
+image: url(":/res/radioButtonCheckedHover.png");
+}
+QRadioButton::indicator:checked:pressed{
+image: url(":/res/radioButtonCheckedPressed.png");
+}
+QRadioButton::indicator:unchecked{
+image: url(":/res/radioButtonUnchecked.png");
+}
+QRadioButton::indicator:unchecked:hover{
+image: url(":/res/radioButtonUncheckedHover.png");
+}
+QRadioButton::indicator:unchecked:pressed{
+image: url(":/res/radioButtonUncheckedPressed.png");
+}
 
 .QWidget{
 background: transparent;
Binary file QTfrontend/res/radioButtonChecked.png has changed
Binary file QTfrontend/res/radioButtonCheckedHover.png has changed
Binary file QTfrontend/res/radioButtonCheckedPressed.png has changed
Binary file QTfrontend/res/radioButtonUnchecked.png has changed
Binary file QTfrontend/res/radioButtonUncheckedHover.png has changed
Binary file QTfrontend/res/radioButtonUncheckedPressed.png has changed
Binary file QTfrontend/res/radioChecked.png has changed
Binary file QTfrontend/res/uncheckedHover.png has changed
Binary file QTfrontend/res/uncheckedPressed.png has changed