mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
Minor design improvements
This commit is contained in:
parent
8589ee36eb
commit
8b6a1ed5c1
2 changed files with 11 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue