diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-20 10:06:25 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-20 10:06:25 -0500 |
commit | a0a359685fac01e867a369f7bc031b1d7f38c48b (patch) | |
tree | 174847a9c897f9c5c63ebfa0d1e9b14536091b7f | |
parent | Add a clock to the main window top-panel when in presentation mode. (diff) | |
download | lumina-a0a359685fac01e867a369f7bc031b1d7f38c48b.tar.gz lumina-a0a359685fac01e867a369f7bc031b1d7f38c48b.tar.bz2 lumina-a0a359685fac01e867a369f7bc031b1d7f38c48b.zip |
Change the styling of the presentation clock.
use the highlight color/text so it gets a bit more attention.
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/mainUI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp b/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp index a240dc46..39402622 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp @@ -36,8 +36,9 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ connect(clockTimer, SIGNAL(timeout()), this, SLOT(updateClock()) ); //frame_presenter = new QFrame(this); label_clock = new QLabel(this); - label_clock->setAlignment(Qt::AlignVCenter | Qt::AlignRight); + label_clock->setAlignment(Qt::AlignCenter ); label_clock->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + label_clock->setStyleSheet("QLabel{color: palette(highlight-text); background-color: palette(highlight); border-radius: 5px; }"); //Now put the widgets into the UI this->setCentralWidget(WIDGET); connect(WIDGET, SIGNAL(paintRequested(QPrinter*)), this, SLOT(paintOnWidget(QPrinter*)) ); |