mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: edit default theme
This commit is contained in:
parent
e80dbe2d83
commit
61720c1591
1
res.qrc
1
res.qrc
|
@ -102,6 +102,7 @@
|
|||
<file>themes/default/fileTransferInstance/filetransferWidget.css</file>
|
||||
<file>themes/default/acceptCall/acceptCall.svg</file>
|
||||
<file>themes/default/rejectCall/rejectCall.svg</file>
|
||||
<file>themes/default/global.css</file>
|
||||
<file>img/login_logo.svg</file>
|
||||
<file>themes/default/notificationEdge/notificationEdge.css</file>
|
||||
<file>themes/default/loginScreen/loginScreen.css</file>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "src/persistence/toxsave.h"
|
||||
#include "src/video/camerasource.h"
|
||||
#include "src/widget/loginscreen.h"
|
||||
#include "src/widget/style.h"
|
||||
#include "src/widget/translator.h"
|
||||
#include "widget/widget.h"
|
||||
#include <QApplication>
|
||||
|
@ -371,6 +372,8 @@ int main(int argc, char* argv[])
|
|||
|
||||
QObject::connect(a.get(), &QApplication::aboutToQuit, cleanup);
|
||||
|
||||
a->setStyleSheet(Style::getStylesheet(QStringLiteral("global.css")));
|
||||
|
||||
// Run
|
||||
int errorcode = a->exec();
|
||||
|
||||
|
|
|
@ -78,3 +78,7 @@ QWidget#circleWidgetContainer > QLabel#name
|
|||
font: @big;
|
||||
color: @white;
|
||||
}
|
||||
|
||||
QLabel {
|
||||
color: white
|
||||
}
|
||||
|
|
24
themes/default/global.css
Normal file
24
themes/default/global.css
Normal file
|
@ -0,0 +1,24 @@
|
|||
QLabel
|
||||
{
|
||||
color: black
|
||||
}
|
||||
|
||||
QLineEdit
|
||||
{
|
||||
color: black
|
||||
}
|
||||
|
||||
QTextEdit
|
||||
{
|
||||
color: black
|
||||
}
|
||||
|
||||
QSpinBox
|
||||
{
|
||||
color: black
|
||||
}
|
||||
|
||||
QListView
|
||||
{
|
||||
color: black
|
||||
}
|
|
@ -62,6 +62,16 @@ QLabel, QCheckBox, QProgressBar
|
|||
color: black;
|
||||
}
|
||||
|
||||
QLineEdit
|
||||
{
|
||||
color: #f1f1f1
|
||||
}
|
||||
|
||||
QListView
|
||||
{
|
||||
color: #f1f1f1
|
||||
}
|
||||
|
||||
QCheckBox:disabled
|
||||
{
|
||||
color: gray;
|
||||
|
|
|
@ -69,6 +69,11 @@ QTabWidget
|
|||
background-color: white;
|
||||
}
|
||||
|
||||
QTabBar::tab:!selected
|
||||
{
|
||||
color: #5e5e5e;
|
||||
}
|
||||
|
||||
QScrollArea
|
||||
{
|
||||
background-color: white;
|
||||
|
|
Loading…
Reference in New Issue
Block a user