Design improvements

This commit is contained in:
Nicolas Mailloux 2022-04-03 23:26:15 -04:00
parent 522f09df63
commit 6874b729c3
18 changed files with 35 additions and 20 deletions

View file

@ -61,7 +61,7 @@ apps::apps(QWidget *parent) :
ui->lightmapsLaunchBtn->deleteLater(); ui->lightmapsLaunchBtn->deleteLater();
} }
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -11,7 +11,7 @@ bookInfoDialog::bookInfoDialog(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -15,7 +15,7 @@ brightnessDialog::brightnessDialog(QWidget *parent) :
brightnessDialog::setFont(QFont("u001")); brightnessDialog::setFont(QFont("u001"));
// Stylesheet, style & misc. // Stylesheet, style & misc.
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -8,9 +8,12 @@ calendarApp::calendarApp(QWidget *parent) :
ui(new Ui::calendarApp) ui(new Ui::calendarApp)
{ {
ui->setupUi(this); ui->setupUi(this);
calendarApp::setFont(QFont("u001"));
ui->backBtn->setFont(QFont("Inter"));
ui->backBtn->setStyleSheet("font-weight: bold");
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -26,7 +26,7 @@ encryptionManager::encryptionManager(QWidget *parent) :
ui->warningDescriptionLabel->setFont(QFont("u001")); ui->warningDescriptionLabel->setFont(QFont("u001"));
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -33,7 +33,7 @@ generalDialog::generalDialog(QWidget *parent) :
stylesheetFile.close(); stylesheetFile.close();
} }
else { else {
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -21,7 +21,7 @@ koboxAppsDialog::koboxAppsDialog(QWidget *parent) :
this->setModal(true); this->setModal(true);
// Stylesheet, style & misc. // Stylesheet, style & misc.
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -22,7 +22,7 @@ koboxSettings::koboxSettings(QWidget *parent) :
ui->okBtn->setStyleSheet("font-weight: bold"); ui->okBtn->setStyleSheet("font-weight: bold");
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -178,7 +178,7 @@ int main(int argc, char *argv[])
MainWindow w; MainWindow w;
QApplication::setStyle("windows"); QApplication::setStyle("windows");
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
w.setStyleSheet(stylesheetFile.readAll()); w.setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -191,7 +191,7 @@ MainWindow::MainWindow(QWidget *parent)
} }
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -22,7 +22,7 @@ quit::quit(QWidget *parent) :
ui->backBtn->setProperty("type", "borderless"); ui->backBtn->setProperty("type", "borderless");
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -41,7 +41,7 @@ reader::reader(QWidget *parent) :
ui->brightnessStatus->setFont(QFont("u001")); ui->brightnessStatus->setFont(QFont("u001"));
ui->fontLabel->setFont(QFont("u001")); ui->fontLabel->setFont(QFont("u001"));
ui->sizeLabel->setFont(QFont("u001")); ui->sizeLabel->setFont(QFont("u001"));
ui->sizeValueLabel->setFont(QFont("u001")); ui->sizeValueLabel->setFont(QFont("Inter"));
ui->alignmentLabel->setFont(QFont("u001")); ui->alignmentLabel->setFont(QFont("u001"));
ui->fontChooser->setFont(QFont("u001")); ui->fontChooser->setFont(QFont("u001"));
ui->definitionStatusLabel->setFont(QFont("u001")); ui->definitionStatusLabel->setFont(QFont("u001"));
@ -124,7 +124,7 @@ reader::reader(QWidget *parent) :
QFont crimson(family); QFont crimson(family);
// Stylesheet + misc. // Stylesheet + misc.
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();
@ -294,7 +294,7 @@ reader::reader(QWidget *parent) :
ui->previousBtn->setStyleSheet("padding: 13.5px"); ui->previousBtn->setStyleSheet("padding: 13.5px");
ui->optionsBtn->setStyleSheet("padding: 13.5px"); ui->optionsBtn->setStyleSheet("padding: 13.5px");
} }
ui->sizeValueLabel->setStyleSheet("font-size: 9pt"); ui->sizeValueLabel->setStyleSheet("font-size: 9pt; font-weight: bold");
ui->homeBtn->setStyleSheet("font-size: 9pt; padding: 5px"); ui->homeBtn->setStyleSheet("font-size: 9pt; padding: 5px");
ui->aboutBtn->setStyleSheet("font-size: 9pt; padding: 5px"); ui->aboutBtn->setStyleSheet("font-size: 9pt; padding: 5px");
ui->fontChooser->setStyleSheet("font-size: 9pt"); ui->fontChooser->setStyleSheet("font-size: 9pt");

View file

@ -10,13 +10,23 @@ savedwords::savedwords(QWidget *parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
savedwords::setFont(QFont("u001")); savedwords::setFont(QFont("u001"));
QFile stylesheetFile("eink.qss"); ui->savedWordsLabel->setFont(QFont("Inter"));
ui->backBtn->setFont(QFont("Inter"));
ui->clearBtn->setFont(QFont("Inter"));
QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();
ui->backBtn->setProperty("type", "borderless"); ui->backBtn->setProperty("type", "borderless");
ui->clearBtn->setProperty("type", "borderless"); ui->clearBtn->setProperty("type", "borderless");
ui->savedWordsLabel->setStyleSheet("font-weight: bold");
ui->wordsList->setStyleSheet("font-size: 10pt");
ui->backBtn->setStyleSheet("font-weight: bold");
ui->clearBtn->setStyleSheet("font-weight: bold");
checkwords(); checkwords();
QStringListModel * model = new QStringListModel(this); QStringListModel * model = new QStringListModel(this);

View file

@ -27,6 +27,7 @@ settings::settings(QWidget *parent) :
ui->comboBox->setFont(QFont("u001")); ui->comboBox->setFont(QFont("u001"));
ui->tzComboBox->setFont(QFont("u001")); ui->tzComboBox->setFont(QFont("u001"));
ui->sleepTimeoutComboBox->setFont(QFont("u001")); ui->sleepTimeoutComboBox->setFont(QFont("u001"));
ui->uiScaleNumberLabel->setFont(QFont("Inter"));
ui->aboutBtn->setFont(QFont("u001")); ui->aboutBtn->setFont(QFont("u001"));
ui->okBtn->setFont(QFont("Inter")); ui->okBtn->setFont(QFont("Inter"));
@ -58,6 +59,7 @@ settings::settings(QWidget *parent) :
ui->sleepTimeoutComboBox->setStyleSheet("font-size: 9pt"); ui->sleepTimeoutComboBox->setStyleSheet("font-size: 9pt");
ui->setPasscodeBtn->setStyleSheet("font-size: 9pt"); ui->setPasscodeBtn->setStyleSheet("font-size: 9pt");
ui->repackBtn->setStyleSheet("font-size: 9pt"); ui->repackBtn->setStyleSheet("font-size: 9pt");
ui->uiScaleNumberLabel->setStyleSheet("font-size: 9pt; font-weight: bold");
ui->previousBtn->setText(""); ui->previousBtn->setText("");
ui->previousBtn->setIcon(QIcon(":/resources/chevron-left.png")); ui->previousBtn->setIcon(QIcon(":/resources/chevron-left.png"));
@ -381,7 +383,7 @@ settings::settings(QWidget *parent) :
ui->checkOtaUpdateGridLayout->deleteLater(); ui->checkOtaUpdateGridLayout->deleteLater();
} }
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -12,7 +12,7 @@ settingsChooser::settingsChooser(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -13,7 +13,7 @@ textwidget::textwidget(QWidget *parent) :
ui->textBrowser->setFont(QFont("u001")); ui->textBrowser->setFont(QFont("u001"));
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -24,7 +24,7 @@ usbms_splash::usbms_splash(QWidget *parent) :
float stdIconHeight = sH / 1.30; float stdIconHeight = sH / 1.30;
// Stylesheet // Stylesheet
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();

View file

@ -17,7 +17,7 @@ wifiDialog::wifiDialog(QWidget *parent) :
wifiListTimer = new QTimer(this); wifiListTimer = new QTimer(this);
// Stylesheet, style & misc. // Stylesheet, style & misc.
QFile stylesheetFile("eink.qss"); QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();