mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
css styles for mainHead and mainContent in widget.cpp
fixes problems with ugly UI on non-standard system theme. before: https://i.imgur.com/XJ0mbpi.png after: https://imgur.com/a/UbgNz
This commit is contained in:
parent
f962391757
commit
afc77f63db
2
res.qrc
2
res.qrc
|
@ -136,5 +136,7 @@
|
||||||
<file>ui/chatroomWidgets/genericChatroomWidget.css</file>
|
<file>ui/chatroomWidgets/genericChatroomWidget.css</file>
|
||||||
<file>ui/fileTransferInstance/sliverRTEdge.png</file>
|
<file>ui/fileTransferInstance/sliverRTEdge.png</file>
|
||||||
<file>ui/window/statusPanel.css</file>
|
<file>ui/window/statusPanel.css</file>
|
||||||
|
<file>ui/settings/mainContent.css</file>
|
||||||
|
<file>ui/settings/mainHead.css</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
36
ui/settings/mainContent.css
Normal file
36
ui/settings/mainContent.css
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
QCheckBox
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
QLabel
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
QGroupBox::title
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox
|
||||||
|
{
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox:on QComboBox:off QComboBox:drop-down
|
||||||
|
{
|
||||||
|
background: rgba(18, 18, 18, 204);
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox:active
|
||||||
|
{
|
||||||
|
background: white;
|
||||||
|
}
|
5
ui/settings/mainHead.css
Normal file
5
ui/settings/mainHead.css
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
QWidget
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
background: white;
|
||||||
|
}
|
|
@ -74,6 +74,8 @@ Widget::Widget(QWidget *parent)
|
||||||
ui->mainHead->setLayout(new QVBoxLayout());
|
ui->mainHead->setLayout(new QVBoxLayout());
|
||||||
ui->mainHead->layout()->setMargin(0);
|
ui->mainHead->layout()->setMargin(0);
|
||||||
ui->mainHead->layout()->setSpacing(0);
|
ui->mainHead->layout()->setSpacing(0);
|
||||||
|
ui->mainHead->setStyleSheet(Style::getStylesheet(":ui/settings/mainHead.css"));
|
||||||
|
ui->mainContent->setStyleSheet(Style::getStylesheet(":ui/settings/mainContent.css"));
|
||||||
|
|
||||||
contactListWidget = new FriendListWidget();
|
contactListWidget = new FriendListWidget();
|
||||||
ui->friendList->setWidget(contactListWidget);
|
ui->friendList->setWidget(contactListWidget);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user