aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-11-20 10:06:25 -0500
committerKen Moore <ken@ixsystems.com>2017-11-20 10:06:25 -0500
commita0a359685fac01e867a369f7bc031b1d7f38c48b (patch)
tree174847a9c897f9c5c63ebfa0d1e9b14536091b7f /src-qt5/desktop-utils/lumina-pdf/mainUI.cpp
parentAdd a clock to the main window top-panel when in presentation mode. (diff)
downloadlumina-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.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/mainUI.cpp3
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*)) );
bgstack15