mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
more styles
This commit is contained in:
parent
41327910a4
commit
df03a0df5a
|
@ -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()
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="autoFillBackground">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
|
@ -27,8 +30,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>830</width>
|
||||
<height>495</height>
|
||||
<width>824</width>
|
||||
<height>489</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
|
|
|
@ -13,6 +13,21 @@ QTextEdit
|
|||
border: 1px solid #c4c1bd;
|
||||
}
|
||||
|
||||
QListWidget
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
||||
QScrollArea
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
||||
QGroupBox
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
||||
QMessageBox
|
||||
{
|
||||
background: white;
|
||||
|
|
Loading…
Reference in New Issue
Block a user