Move chat box stylesheets to CSS files
authorWuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 19:26:13 +0200
changeset 15275 ebb86ed1b785
parent 15274 000d3262244c
child 15276 2dc98f688c65
Move chat box stylesheets to CSS files
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/chatwidget.cpp
--- a/QTfrontend/res/css/april1.css	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/res/css/april1.css	Thu Jul 18 19:26:13 2019 +0200
@@ -551,3 +551,12 @@
 #keyBinderScrollArea {
 background: #130F2A;
 }
+#chatContainer {
+border-width: 0px;
+background-color: #ffcc00;
+border-radius: 10px;
+}
+#chatText {
+background-color: rgb(23, 11, 54);
+border-width: 0px;
+}
--- a/QTfrontend/res/css/birthday.css	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/res/css/birthday.css	Thu Jul 18 19:26:13 2019 +0200
@@ -555,3 +555,12 @@
 #keyBinderScrollArea {
 background: #100308; /* CUSTOM */
 }
+#chatContainer {
+border-width: 0px;
+background-color: #ffcc00;
+border-radius: 10px;
+}
+#chatText {
+background-color: rgb(23, 11, 54);
+border-width: 0px;
+}
--- a/QTfrontend/res/css/christmas.css	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/res/css/christmas.css	Thu Jul 18 19:26:13 2019 +0200
@@ -550,3 +550,12 @@
 #keyBinderScrollArea {
 background: #130F2A;
 }
+#chatContainer {
+border-width: 0px;
+background-color: #ffcc00;
+border-radius: 10px;
+}
+#chatText {
+background-color: rgb(23, 11, 54);
+border-width: 0px;
+}
--- a/QTfrontend/res/css/easter.css	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/res/css/easter.css	Thu Jul 18 19:26:13 2019 +0200
@@ -546,3 +546,12 @@
 #keyBinderScrollArea {
 background: #130F2A;
 }
+#chatContainer {
+border-width: 0px;
+background-color: #ffcc00;
+border-radius: 10px;
+}
+#chatText {
+background-color: rgb(23, 11, 54);
+border-width: 0px;
+}
--- a/QTfrontend/res/css/qt.css	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/res/css/qt.css	Thu Jul 18 19:26:13 2019 +0200
@@ -542,3 +542,12 @@
 #keyBinderScrollArea {
 background: #130F2A;
 }
+#chatContainer {
+border-width: 0px;
+background-color: #ffcc00;
+border-radius: 10px;
+}
+#chatText {
+background-color: rgb(23, 11, 54);
+border-width: 0px;
+}
--- a/QTfrontend/ui/widget/chatwidget.cpp	Thu Jul 18 18:45:30 2019 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Thu Jul 18 19:26:13 2019 +0200
@@ -201,8 +201,7 @@
     mainLayout.setMargin(0);
 
     QWidget * leftSideContainer = new QWidget();
-    leftSideContainer->setObjectName("leftSideContainer");
-    leftSideContainer->setStyleSheet("#leftSideContainer { border-width: 0px; background-color: #ffcc00; border-radius: 10px;} QTextBrowser, SmartLineEdit { background-color: rgb(13, 5, 68); }");
+    leftSideContainer->setObjectName("chatContainer");
     QVBoxLayout * leftSide = new QVBoxLayout(leftSideContainer);
     leftSide->setSpacing(3);
     leftSide->setMargin(3);
@@ -217,7 +216,7 @@
     chatText->setMinimumWidth(10);
     chatText->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
     chatText->setOpenLinks(false);
-    chatText->setStyleSheet("QTextBrowser { background-color: rgb(23, 11, 54); border-width: 0px; }");
+    chatText->setObjectName("chatText");
     connect(chatText, SIGNAL(anchorClicked(const QUrl&)),
             this, SLOT(linkClicked(const QUrl&)));
     leftSide->addWidget(chatText, 1);