1
0
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:
agilob 2014-10-07 11:50:36 +02:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent f962391757
commit afc77f63db
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
4 changed files with 45 additions and 0 deletions

View File

@ -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>

View 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
View File

@ -0,0 +1,5 @@
QWidget
{
color: black;
background: white;
}

View File

@ -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);