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;