From 41327910a4a797881e31f59821e35648621d3f08 Mon Sep 17 00:00:00 2001 From: agilob Date: Sat, 18 Oct 2014 19:56:09 +0100 Subject: [PATCH] fix #457, styles in mainContent for qtextedit, qspinbox and more --- src/mainwindow.ui | 18 ++++++------- ui/chatArea/chatArea.css | 8 +++++- ui/msgEdit/msgEdit.css | 3 ++- ui/settings/mainContent.css | 54 ++++++++++++++++++++++++++++++++----- 4 files changed, 66 insertions(+), 17 deletions(-) diff --git a/src/mainwindow.ui b/src/mainwindow.ui index c143521da..d8d0e4a18 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -20,7 +20,7 @@ qTox - + :/img/icon.png:/img/icon.png @@ -1033,8 +1033,8 @@ QSplitter:handle{ 0 0 - 288 - 400 + 260 + 399 @@ -1092,7 +1092,7 @@ QSplitter:handle{ - + :/img/add.png:/img/add.png @@ -1118,7 +1118,7 @@ QSplitter:handle{ - + :/img/group_2x.png:/img/group_2x.png @@ -1150,7 +1150,7 @@ QSplitter:handle{ - + :/img/transfer.png:/img/transfer.png @@ -1182,7 +1182,7 @@ QSplitter:handle{ - + :/img/settings.png:/img/settings.png @@ -1751,7 +1751,7 @@ QSplitter:handle{ 0 0 710 - 25 + 21 @@ -1779,7 +1779,7 @@ QSplitter:handle{ - + diff --git a/ui/chatArea/chatArea.css b/ui/chatArea/chatArea.css index 9589c06aa..6e30a2a4e 100644 --- a/ui/chatArea/chatArea.css +++ b/ui/chatArea/chatArea.css @@ -1,3 +1,9 @@ +QTextEdit +{ + background: white; + color: back; +} + QScrollArea { background: white; border: 0 0 0 0 ; @@ -108,4 +114,4 @@ QScrollBar:QScrollBar::up-arrow:horizontal { QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { background: none; -} \ No newline at end of file +} diff --git a/ui/msgEdit/msgEdit.css b/ui/msgEdit/msgEdit.css index bbc967ccc..e9845285d 100644 --- a/ui/msgEdit/msgEdit.css +++ b/ui/msgEdit/msgEdit.css @@ -2,6 +2,7 @@ QTextEdit { border-color: @lightGrey; border-style: solid; border-width: 1px 0 1px 1px; + background: white; } QTextEdit:hover { @@ -23,4 +24,4 @@ QTextEdit#group:hover { QTextEdit#group:pressed { border-color: #4ea6ea; -} \ No newline at end of file +} diff --git a/ui/settings/mainContent.css b/ui/settings/mainContent.css index 763956f04..b40a0771b 100644 --- a/ui/settings/mainContent.css +++ b/ui/settings/mainContent.css @@ -4,14 +4,51 @@ QWidget font: @big; } -QCheckBox +QTextEdit { - color: black; + border-color: @lightGrey; + border-style: solid; + border-width: 1px 0 1px 1px; + background: white; + border: 1px solid #c4c1bd; } -QGroupBox +QMessageBox { - background-color: white; + background: white; +} + +QCheckBox +{ + background: white; + color: black; +} + +QSpinBox +{ + background: white; +} + +QSlider::groove:horizontal +{ + border: 1px solid #999999; + height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ + background: white; + margin: 2px 0; +} + +QSlider::handle:horizontal +{ + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f); + border: 1px solid #5c5c5c; + width: 18px; + margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ + border-radius: 3px; +} + +QPushButton +{ + background: white; } QGroupBox @@ -23,7 +60,12 @@ QGroupBox QComboBox { - background-color: white; + color: black; + background: white; +} + +QComboBox QAbstractItemView { + background: white; } QLineEdit @@ -44,4 +86,4 @@ QTabBar QScrollArea { background-color: white; -} \ No newline at end of file +}