From 8b6a1ed5c10e25a9c95c4a5b1cf467d5a38a27b6 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Thu, 7 Apr 2022 22:18:06 -0400 Subject: [PATCH] Minor design improvements --- alert.cpp | 8 +++++++- reader.cpp | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/alert.cpp b/alert.cpp index 02eb5c9..7a8ff38 100644 --- a/alert.cpp +++ b/alert.cpp @@ -81,11 +81,17 @@ alert::alert(QWidget *parent) : ui->warningLabel->setText("Please charge your eReader."); ui->securityLabel->setText("The battery's charge level is critical."); ui->messageLabel->setText("To prevent damage, your device has been turned off.\nPlease consider charging it."); + // The Mini (N705) has a higher DPI and otherwise the text doesn't fit + if(global::deviceID == "n705\n") { + ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 14pt }"); + } + else { + ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt }"); + } poweroff(false); QTimer::singleShot(1000, this, SLOT(quit())); } - ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt }"); ui->messageLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 10pt }"); ui->securityLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 11pt }"); ui->continueBtn->setProperty("type", "borderless"); diff --git a/reader.cpp b/reader.cpp index 33bcb04..eee03ce 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1137,7 +1137,10 @@ void reader::on_optionsBtn_clicked() else { ui->optionsBtn->setStyleSheet("background: white; color: black"); } - this->repaint(); + // The Glo HD (N437) has a newer platform plugin that doesn't need this + if(global::deviceID != "n437\n") { + QTimer::singleShot(500, this, SLOT(repaint())); + } menubar_shown = false; } else {