Minor design improvements

This commit is contained in:
Nicolas Mailloux 2022-04-07 22:18:06 -04:00
parent 8589ee36eb
commit 8b6a1ed5c1
2 changed files with 11 additions and 2 deletions

View file

@ -81,11 +81,17 @@ alert::alert(QWidget *parent) :
ui->warningLabel->setText("Please charge your eReader."); ui->warningLabel->setText("Please charge your eReader.");
ui->securityLabel->setText("The battery's charge level is critical."); 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."); 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); poweroff(false);
QTimer::singleShot(1000, this, SLOT(quit())); 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->messageLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 10pt }");
ui->securityLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 11pt }"); ui->securityLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 11pt }");
ui->continueBtn->setProperty("type", "borderless"); ui->continueBtn->setProperty("type", "borderless");

View file

@ -1137,7 +1137,10 @@ void reader::on_optionsBtn_clicked()
else { else {
ui->optionsBtn->setStyleSheet("background: white; color: black"); 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; menubar_shown = false;
} }
else { else {