Browse Source

refactor: edit default theme

reviewable/pr5457/r1
TriKriSta 7 years ago
parent
commit
61720c1591
  1. 1
      res.qrc
  2. 3
      src/main.cpp
  3. 4
      themes/default/friendList/friendList.css
  4. 24
      themes/default/global.css
  5. 10
      themes/default/loginScreen/loginScreen.css
  6. 5
      themes/default/settings/mainContent.css

1
res.qrc

@ -102,6 +102,7 @@ @@ -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>

3
src/main.cpp

@ -26,6 +26,7 @@ @@ -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[]) @@ -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();

4
themes/default/friendList/friendList.css

@ -78,3 +78,7 @@ QWidget#circleWidgetContainer > QLabel#name @@ -78,3 +78,7 @@ QWidget#circleWidgetContainer > QLabel#name
font: @big;
color: @white;
}
QLabel {
color: white
}

24
themes/default/global.css

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
QLabel
{
color: black
}
QLineEdit
{
color: black
}
QTextEdit
{
color: black
}
QSpinBox
{
color: black
}
QListView
{
color: black
}

10
themes/default/loginScreen/loginScreen.css

@ -62,6 +62,16 @@ QLabel, QCheckBox, QProgressBar @@ -62,6 +62,16 @@ QLabel, QCheckBox, QProgressBar
color: black;
}
QLineEdit
{
color: #f1f1f1
}
QListView
{
color: #f1f1f1
}
QCheckBox:disabled
{
color: gray;

5
themes/default/settings/mainContent.css

@ -69,6 +69,11 @@ QTabWidget @@ -69,6 +69,11 @@ QTabWidget
background-color: white;
}
QTabBar::tab:!selected
{
color: #5e5e5e;
}
QScrollArea
{
background-color: white;

Loading…
Cancel
Save