Frontend: Highlight button when pressed
authorWuzzy <Wuzzy2@mail.ru>
Sat, 18 May 2019 16:05:06 +0200
changeset 15005 d597a851f5d8
parent 15004 6d4a607f2196
child 15006 1a05a1929e2c
Frontend: Highlight button when pressed
QTfrontend/res/css/april1.css
QTfrontend/res/css/birthday.css
QTfrontend/res/css/christmas.css
QTfrontend/res/css/easter.css
QTfrontend/res/css/qt.css
QTfrontend/ui/widget/colorwidget.cpp
--- a/QTfrontend/res/css/april1.css	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/res/css/april1.css	Sat May 18 16:05:06 2019 +0200
@@ -111,10 +111,6 @@
 background-color: #150A61;
 }
 
-QToolButton:pressed {
-background-color: #100744;
-}
-
 QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser,
 QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit {
 border-radius: 10px;
@@ -180,6 +176,11 @@
 
 QPushButton:pressed, QToolButton:pressed {
 border-color: white;
+background-color: #344b1e;
+color: white;
+}
+TeamShowWidget QPushButton:pressed {
+background-color: #362c7a;
 }
 
 QPushButton:focus {
--- a/QTfrontend/res/css/birthday.css	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/res/css/birthday.css	Sat May 18 16:05:06 2019 +0200
@@ -115,10 +115,6 @@
 background-color: #150A61;
 }
 
-QToolButton:pressed {
-background-color: #100744;
-}
-
 QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser,
 QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit {
 border-radius: 10px;
@@ -184,6 +180,11 @@
 
 QPushButton:pressed, QToolButton:pressed {
 border-color: white;
+background-color: #344b1e;
+color: white;
+}
+TeamShowWidget QPushButton:pressed {
+background-color: #362c7a;
 }
 
 QPushButton:focus {
--- a/QTfrontend/res/css/christmas.css	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/res/css/christmas.css	Sat May 18 16:05:06 2019 +0200
@@ -110,10 +110,6 @@
 background-color: #150A61;
 }
 
-QToolButton:pressed {
-background-color: #100744;
-}
-
 QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser,
 QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit {
 border-radius: 10px;
@@ -179,6 +175,11 @@
 
 QPushButton:pressed, QToolButton:pressed {
 border-color: white;
+background-color: #344b1e;
+color: white;
+}
+TeamShowWidget QPushButton:pressed {
+background-color: #362c7a;
 }
 
 QPushButton:focus {
--- a/QTfrontend/res/css/easter.css	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/res/css/easter.css	Sat May 18 16:05:06 2019 +0200
@@ -107,10 +107,6 @@
 background-color: #150A61;
 }
 
-QToolButton:pressed {
-background-color: #100744;
-}
-
 QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser,
 QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit {
 border-radius: 10px;
@@ -176,6 +172,11 @@
 
 QPushButton:pressed, QToolButton:pressed {
 border-color: white;
+background-color: #344b1e;
+color: white;
+}
+TeamShowWidget QPushButton:pressed {
+background-color: #362c7a;
 }
 
 QPushButton:focus {
--- a/QTfrontend/res/css/qt.css	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/res/css/qt.css	Sat May 18 16:05:06 2019 +0200
@@ -93,6 +93,9 @@
 TeamShowWidget QPushButton:disabled {
 color: #a0a0a0;
 }
+TeamShowWidget QPushButton:pressed {
+background-color: #362c7a;
+}
 
 QToolButton {
 background-color: #11084A;
@@ -102,10 +105,6 @@
 background-color: #150A61;
 }
 
-QToolButton:pressed {
-background-color: #100744;
-}
-
 QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser,
 QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit {
 border-radius: 10px;
@@ -171,6 +170,8 @@
 
 QPushButton:pressed, QToolButton:pressed {
 border-color: white;
+background-color: #344b1e;
+color: white;
 }
 
 QPushButton:focus {
--- a/QTfrontend/ui/widget/colorwidget.cpp	Sat May 18 03:07:21 2019 +0200
+++ b/QTfrontend/ui/widget/colorwidget.cpp	Sat May 18 16:05:06 2019 +0200
@@ -30,7 +30,7 @@
 
     QStandardItem * item = m_colorsModel->item(m_color);
 
-    setStyleSheet(QString("* { border: 2px solid #ffcc00; border-radius: 8px; background: %1 } :disabled { border-color: #a0a0a0; }").arg(item->data().value<QColor>().name()));
+    setStyleSheet(QString("* { border: 2px solid #ffcc00; border-radius: 8px; background: %1 } :disabled { border-color: #a0a0a0; } :hover { border-color: #ffff00; }").arg(item->data().value<QColor>().name()));
     /*
     QPalette p = palette();
     p.setColor(QPalette::Window, item->data().value<QColor>());