From df03a0df5a26d259f4f3a85fe9fa5f6b4b08af58 Mon Sep 17 00:00:00 2001 From: agilob Date: Mon, 20 Oct 2014 13:26:49 +0100 Subject: [PATCH] more styles --- src/widget/form/settings/avform.cpp | 9 +++++++++ src/widget/form/settings/avsettings.ui | 7 +++++-- ui/settings/mainContent.css | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/widget/form/settings/avform.cpp b/src/widget/form/settings/avform.cpp index 552d25894..1105b69a8 100644 --- a/src/widget/form/settings/avform.cpp +++ b/src/widget/form/settings/avform.cpp @@ -23,6 +23,15 @@ AVForm::AVForm() : { bodyUI = new Ui::AVSettings; bodyUI->setupUi(this); + // this QWidget style definition is a walk-around for bug in Qt 5.x + // the bug causes "Win-98 style" rendering if background color is defined for QWidget, + // so I avoided global definition for QWidget. + // but if this style is not defined you got: https://github.com/tux3/qTox/pull/475#issuecomment-59627952 + // this single line can be remove if bug in Qt is fixed. some day. + // more reference: + // https://github.com/tux3/qTox/issues/406 + // https://bugreports.qt-project.org/browse/QTBUG-33537?attachmentOrder=desc + this->setStyleSheet("QWidget { background: white; }"); } AVForm::~AVForm() diff --git a/src/widget/form/settings/avsettings.ui b/src/widget/form/settings/avsettings.ui index f1823d0b3..74de38e38 100644 --- a/src/widget/form/settings/avsettings.ui +++ b/src/widget/form/settings/avsettings.ui @@ -16,6 +16,9 @@ + + true + QFrame::NoFrame @@ -27,8 +30,8 @@ 0 0 - 830 - 495 + 824 + 489 diff --git a/ui/settings/mainContent.css b/ui/settings/mainContent.css index b40a0771b..cde633b71 100644 --- a/ui/settings/mainContent.css +++ b/ui/settings/mainContent.css @@ -13,6 +13,21 @@ QTextEdit border: 1px solid #c4c1bd; } +QListWidget +{ + background: white; +} + +QScrollArea +{ + background: white; +} + +QGroupBox +{ + background: white; +} + QMessageBox { background: white;