Fix broken stylesheet in keybinder widget
authorWuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 00:45:39 +0200
changeset 15254 441bdf1e6026
parent 15253 7d957886170f
child 15255 8dd3602a4500
Fix broken stylesheet in keybinder widget
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/keybinder.cpp
--- a/QTfrontend/res/css/april1.css	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/res/css/april1.css	Thu Jul 18 00:45:39 2019 +0200
@@ -548,3 +548,6 @@
 background-color: #FF9B00;
 margin: 2px;
 }
+#keyBinderScrollArea {
+background: #130F2A;
+}
--- a/QTfrontend/res/css/birthday.css	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/res/css/birthday.css	Thu Jul 18 00:45:39 2019 +0200
@@ -552,3 +552,6 @@
 background-color: #FF9B00;
 margin: 2px;
 }
+#keyBinderScrollArea {
+background: #100308; /* CUSTOM */
+}
--- a/QTfrontend/res/css/christmas.css	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/res/css/christmas.css	Thu Jul 18 00:45:39 2019 +0200
@@ -547,3 +547,6 @@
 background-color: #FF9B00;
 margin: 2px;
 }
+#keyBinderScrollArea {
+background: #130F2A;
+}
--- a/QTfrontend/res/css/easter.css	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/res/css/easter.css	Thu Jul 18 00:45:39 2019 +0200
@@ -543,3 +543,6 @@
 background-color: #FF9B00;
 margin: 2px;
 }
+#keyBinderScrollArea {
+background: #130F2A;
+}
--- a/QTfrontend/res/css/qt.css	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/res/css/qt.css	Thu Jul 18 00:45:39 2019 +0200
@@ -539,3 +539,6 @@
 background-color: #FF9B00;
 margin: 2px;
 }
+#keyBinderScrollArea {
+background: #130F2A;
+}
--- a/QTfrontend/ui/widget/keybinder.cpp	Thu Jul 18 00:20:50 2019 +0200
+++ b/QTfrontend/ui/widget/keybinder.cpp	Thu Jul 18 00:45:39 2019 +0200
@@ -79,7 +79,7 @@
     scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
     scrollArea->setWidgetResizable(true);
     scrollArea->setFrameShape(QFrame::NoFrame);
-    scrollArea->setStyleSheet("background: #130F2A;");
+    scrollArea->setObjectName("keyBinderScrollArea");
 
     // Add key binding pages to bindings tab
     pageKeysLayout->addWidget(scrollArea);
@@ -179,7 +179,7 @@
             curTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
             curTable->verticalHeader()->setDefaultSectionSize(rowHeight);
             curTable->setShowGrid(false);
-            curTable->setStyleSheet("QTableWidget { border: none; } ");
+            curTable->setStyleSheet("QTableWidget { border: none; background-color: transparent; } ");
             curTable->setSelectionBehavior(QAbstractItemView::SelectRows);
             curTable->setSelectionMode(QAbstractItemView::SingleSelection);
             curTable->setFocusPolicy(Qt::NoFocus);