diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/saverwidget.cpp | 8 | ||||
-rw-r--r-- | src/ui/saver.ui | 18 |
2 files changed, 4 insertions, 22 deletions
diff --git a/src/saverwidget.cpp b/src/saverwidget.cpp index d7f3a74..88cf5a3 100644 --- a/src/saverwidget.cpp +++ b/src/saverwidget.cpp @@ -9,6 +9,7 @@ #include <QDateTime> #include <QSettings> #include <QFile> +#include <QDebug> #include <X11/Xlib.h> static const QChar C_ZERO('0'); @@ -36,11 +37,10 @@ SaverWidget::SaverWidget(WId parentWinId, QWidget *parent) : _standbyDisabled(false), _isLocked(false) { - ui->setupUi(this); QString qss = Config::getMainQss(); - if (!qss.isEmpty()) { - this->setStyleSheet(qss); - } + qDebug() << "Applying QSS: " << qss; + this->setStyleSheet(qss); + ui->setupUi(this); QTimer *t = new QTimer(this); t->setInterval(1000); connect(t, &QTimer::timeout, [=]() { diff --git a/src/ui/saver.ui b/src/ui/saver.ui index 6bf7067..aabd4e6 100644 --- a/src/ui/saver.ui +++ b/src/ui/saver.ui @@ -18,24 +18,6 @@ <property name="windowTitle"> <string>Form</string> </property> - <property name="styleSheet"> - <string notr="true">#Saver { - background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #443, stop:1 #000) -} - -QLabel { - color: #f64; -} - -#lblClock { - color: #999; - font-size: 20pt; -} - -#lblHeader { - font-size: 20pt; -}</string> - </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <widget class="QLabel" name="lblHeader"> |