mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-25 07:07:21 -08:00
reader: Switch to icons for Previous/Options/Next buttons
This commit is contained in:
parent
13b3bda215
commit
bced19c8e5
4 changed files with 21 additions and 0 deletions
2
eink.qrc
2
eink.qrc
|
@ -77,5 +77,7 @@
|
|||
<file>resources/edit.png</file>
|
||||
<file>resources/save.png</file>
|
||||
<file>resources/book_inverted.png</file>
|
||||
<file>resources/arrow-left.png</file>
|
||||
<file>resources/arrow-right.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
19
reader.cpp
19
reader.cpp
|
@ -104,6 +104,12 @@ reader::reader(QWidget *parent) :
|
|||
ui->decreaseScaleBtn->setIcon(QIcon(":/resources/zoom-out.png"));
|
||||
ui->quitBtn->setText("");
|
||||
ui->quitBtn->setIcon(QIcon(":/resources/power.png"));
|
||||
ui->previousBtn->setText("");
|
||||
ui->previousBtn->setIcon(QIcon(":/resources/arrow-left.png"));
|
||||
ui->optionsBtn->setText("");
|
||||
ui->optionsBtn->setIcon(QIcon(":/resources/settings.png"));
|
||||
ui->nextBtn->setText("");
|
||||
ui->nextBtn->setIcon(QIcon(":/resources/arrow-right.png"));
|
||||
|
||||
// On the Mini with QT_FONT_DPI set to 187 (default for this device), quitBtn makes the UI go beyond the limits of the screen when the menu bar is shown
|
||||
if(global::deviceID == "n705\n") {
|
||||
|
@ -292,6 +298,11 @@ reader::reader(QWidget *parent) :
|
|||
ui->previousBtn->setStyleSheet("padding: 13.5px");
|
||||
ui->optionsBtn->setStyleSheet("padding: 13.5px");
|
||||
}
|
||||
else if(global::deviceID == "n437\n") {
|
||||
ui->nextBtn->setStyleSheet("padding: 12.5px");
|
||||
ui->previousBtn->setStyleSheet("padding: 12.5px");
|
||||
ui->optionsBtn->setStyleSheet("padding: 12.5px");
|
||||
}
|
||||
ui->sizeValueLabel->setStyleSheet("font-size: 9pt; font-weight: bold");
|
||||
ui->homeBtn->setStyleSheet("font-size: 9pt; padding: 5px");
|
||||
ui->aboutBtn->setStyleSheet("font-size: 9pt; padding: 5px");
|
||||
|
@ -1151,9 +1162,13 @@ void reader::on_optionsBtn_clicked()
|
|||
if(global::deviceID == "n873\n") {
|
||||
ui->optionsBtn->setStyleSheet("background: white; color: black; padding: 13.5px");
|
||||
}
|
||||
else if(global::deviceID == "n437\n") {
|
||||
ui->optionsBtn->setStyleSheet("background: white; color: black; padding: 12.5px");
|
||||
}
|
||||
else {
|
||||
ui->optionsBtn->setStyleSheet("background: white; color: black");
|
||||
}
|
||||
ui->optionsBtn->setIcon(QIcon(":/resources/settings.png"));
|
||||
// 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()));
|
||||
|
@ -1165,9 +1180,13 @@ void reader::on_optionsBtn_clicked()
|
|||
if(global::deviceID == "n873\n") {
|
||||
ui->optionsBtn->setStyleSheet("background: black; color: white; padding: 13.5px");
|
||||
}
|
||||
else if(global::deviceID == "n437\n") {
|
||||
ui->optionsBtn->setStyleSheet("background: black; color: white; padding: 12.5px");
|
||||
}
|
||||
else {
|
||||
ui->optionsBtn->setStyleSheet("background: black; color: white");
|
||||
}
|
||||
ui->optionsBtn->setIcon(QIcon(":/resources/settings-inverted.png"));
|
||||
this->repaint();
|
||||
menubar_shown = true;
|
||||
}
|
||||
|
|
BIN
resources/arrow-left.png
Normal file
BIN
resources/arrow-left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
resources/arrow-right.png
Normal file
BIN
resources/arrow-right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Loading…
Reference in a new issue