New UI/UX font: U001/Univers

Inter is still there in a lot of areas and blends quite well with this new font.
This commit is contained in:
Nicolas Mailloux 2022-03-03 00:40:11 -05:00
parent 493d217ebe
commit 0756004db6
19 changed files with 563 additions and 510 deletions

View file

@ -12,6 +12,7 @@ alert::alert(QWidget *parent) :
ui(new Ui::alert) ui(new Ui::alert)
{ {
ui->setupUi(this); ui->setupUi(this);
alert::setFont(QFont("u001"));
// Getting the screen's size // Getting the screen's size
float sW = QGuiApplication::screens()[0]->size().width(); float sW = QGuiApplication::screens()[0]->size().width();
@ -80,9 +81,9 @@ alert::alert(QWidget *parent) :
poweroff(false); poweroff(false);
} }
ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 16pt}"); ui->warningLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 18pt }");
ui->messageLabel->setStyleSheet("QLabel { background-color : black; color : white; font-size: 9pt}"); 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: 12pt }");
ui->continueBtn->setProperty("type", "borderless"); ui->continueBtn->setProperty("type", "borderless");
ui->resetBtn->setProperty("type", "borderless"); ui->resetBtn->setProperty("type", "borderless");
ui->continueBtn->setStyleSheet("padding: 20px"); ui->continueBtn->setStyleSheet("padding: 20px");

View file

@ -9,6 +9,7 @@ bookInfoDialog::bookInfoDialog(QWidget *parent) :
ui(new Ui::bookInfoDialog) ui(new Ui::bookInfoDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
bookInfoDialog::setFont(QFont("u001"));
// Stylesheet // Stylesheet
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");

View file

@ -12,6 +12,7 @@ brightnessDialog::brightnessDialog(QWidget *parent) :
ui(new Ui::brightnessDialog) ui(new Ui::brightnessDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
brightnessDialog::setFont(QFont("u001"));
// Stylesheet, style & misc. // Stylesheet, style & misc.
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");

View file

@ -14,6 +14,10 @@ dictionaryWidget::dictionaryWidget(QWidget *parent) :
ui(new Ui::dictionaryWidget) ui(new Ui::dictionaryWidget)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->wordLabel->setFont(QFont("u001"));
ui->wordLabel->setStyleSheet("font-weight: bold");
ui->definitionStatusLabel->setFont(QFont("u001"));
ui->backBtn->setProperty("type", "borderless"); ui->backBtn->setProperty("type", "borderless");
ui->backBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); ui->backBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px");
ui->nextDefinitionBtn->setProperty("type", "borderless"); ui->nextDefinitionBtn->setProperty("type", "borderless");

View file

@ -16,6 +16,14 @@ encryptionManager::encryptionManager(QWidget *parent) :
ui(new Ui::encryptionManager) ui(new Ui::encryptionManager)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->encryptionSetupLabel->setFont(QFont("u001"));
ui->successLabel->setFont(QFont("u001"));
ui->failureLabel->setFont(QFont("u001"));
ui->descriptionLabel->setFont(QFont("u001"));
ui->successDescriptionLabel->setFont(QFont("u001"));
ui->failureDescriptionLabel->setFont(QFont("u001"));
ui->warningLabel->setFont(QFont("u001"));
ui->warningDescriptionLabel->setFont(QFont("u001"));
// Stylesheet // Stylesheet
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");
@ -23,20 +31,20 @@ encryptionManager::encryptionManager(QWidget *parent) :
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close(); stylesheetFile.close();
ui->encryptionSetupLabel->setStyleSheet("font-size: 15pt"); ui->encryptionSetupLabel->setStyleSheet("font-size: 18pt; font-weight: bold");
ui->descriptionLabel->setStyleSheet("font-size: 9pt"); ui->descriptionLabel->setStyleSheet("font-size: 10pt");
ui->successLabel->setStyleSheet("font-size: 15pt"); ui->successLabel->setStyleSheet("font-size: 18pt; font-weight: bold");
ui->successDescriptionLabel->setStyleSheet("font-size: 9pt"); ui->successDescriptionLabel->setStyleSheet("font-size: 10pt");
ui->failureLabel->setStyleSheet("font-size: 15pt"); ui->failureLabel->setStyleSheet("font-size: 18pt; font-weight: bold");
ui->failureDescriptionLabel->setStyleSheet("font-size: 9pt"); ui->failureDescriptionLabel->setStyleSheet("font-size: 10pt");
ui->setupContinueBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->setupContinueBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->setupAbortBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->setupAbortBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->exitSuccessBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->exitSuccessBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->failureContinueBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->failureContinueBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->acceptBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->acceptBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->usbmsBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px"); ui->usbmsBtn->setStyleSheet("background: lightGrey; border: 3px solid black; color: black; padding: 10px; outline: none; font-size: 10pt; font-weight: bold; border-radius: 10px");
ui->warningLabel->setStyleSheet("font-size: 15pt"); ui->warningLabel->setStyleSheet("font-size: 18pt; font-weight: bold");
ui->warningDescriptionLabel->setStyleSheet("font-size: 9pt"); ui->warningDescriptionLabel->setStyleSheet("font-size: 10pt");
// Getting the screen's size // Getting the screen's size
float sW = QGuiApplication::screens()[0]->size().width(); float sW = QGuiApplication::screens()[0]->size().width();

View file

@ -20,6 +20,9 @@ generalDialog::generalDialog(QWidget *parent) :
ui(new Ui::generalDialog) ui(new Ui::generalDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->bodyLabel->setFont(QFont("u001"));
ui->searchComboBox->setFont(QFont("u001"));
ui->label_2->setFont(QFont("u001"));
// Preventing outside interaction // Preventing outside interaction
this->setModal(true); this->setModal(true);
@ -45,7 +48,8 @@ generalDialog::generalDialog(QWidget *parent) :
ui->okBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->okBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");
ui->cancelBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->cancelBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");
ui->acceptBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->acceptBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");
ui->bodyLabel->setStyleSheet("font-size: 9pt"); ui->headerLabel->setStyleSheet("font-weight: bold");
ui->bodyLabel->setStyleSheet("font-size: 9.5pt");
ui->searchComboBox->setStyleSheet("font-size: 9pt"); ui->searchComboBox->setStyleSheet("font-size: 9pt");
// Disabling "Online library" search if device doesn't have Wi-Fi // Disabling "Online library" search if device doesn't have Wi-Fi
@ -93,7 +97,7 @@ generalDialog::generalDialog(QWidget *parent) :
updateDialog = true; updateDialog = true;
ui->okBtn->setText("Update"); ui->okBtn->setText("Update");
ui->cancelBtn->setText("Not now"); ui->cancelBtn->setText("Not now");
ui->bodyLabel->setText("Do you want to update InkBox now?"); ui->bodyLabel->setText("<font face='u001'>Do you want to update InkBox now</font><font face='Inter'>?</font>"); // Because I hate Univers/U001's question mark ...
ui->headerLabel->setText("Update available"); ui->headerLabel->setText("Update available");
this->adjustSize(); this->adjustSize();
string_writeconfig("/inkbox/updateDialog", "false"); string_writeconfig("/inkbox/updateDialog", "false");
@ -126,7 +130,7 @@ generalDialog::generalDialog(QWidget *parent) :
usbmsDialog = true; usbmsDialog = true;
ui->okBtn->setText("Connect"); ui->okBtn->setText("Connect");
ui->cancelBtn->setText("Cancel"); ui->cancelBtn->setText("Cancel");
ui->bodyLabel->setText("Do you want to connect your device to a computer to manage books?"); ui->bodyLabel->setText("<font face='u001'>Do you want to connect your device to a computer to manage books</font><font face='Inter'>?</font>");
ui->headerLabel->setText("USB cable connected"); ui->headerLabel->setText("USB cable connected");
this->adjustSize(); this->adjustSize();
} }
@ -164,7 +168,7 @@ generalDialog::generalDialog(QWidget *parent) :
ui->headerLabel->setText("Warning"); ui->headerLabel->setText("Warning");
ui->okBtn->setText("Proceed"); ui->okBtn->setText("Proceed");
ui->cancelBtn->setText("Go back"); ui->cancelBtn->setText("Go back");
ui->bodyLabel->setText("This will delete all the files you have encrypted. Are you sure you want to continue?"); ui->bodyLabel->setText("<font face='u001'>This will delete all the files you have encrypted. Are you sure you want to continue</font><font face='Inter'>?</font>");
this->adjustSize(); this->adjustSize();
} }
else if(global::encfs::errorNoBooksInDropboxDialog == true) { else if(global::encfs::errorNoBooksInDropboxDialog == true) {
@ -177,7 +181,7 @@ generalDialog::generalDialog(QWidget *parent) :
ui->headerLabel->setText("Information"); ui->headerLabel->setText("Information");
ui->okBtn->setText("Proceed"); ui->okBtn->setText("Proceed");
ui->cancelBtn->setText("Not now"); ui->cancelBtn->setText("Not now");
ui->bodyLabel->setText("New files have been found in 'encfs-dropbox'. Would you want to repack your encrypted storage?"); ui->bodyLabel->setText("<font face='u001'>New files have been found in 'encfs-dropbox'. Would you want to repack your encrypted storage</font><font face='Inter'>?</font>");
this->adjustSize(); this->adjustSize();
} }
else { else {

View file

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>400</width>
<height>300</height> <height>218</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -259,21 +259,14 @@
</property> </property>
<item> <item>
<layout class="QGridLayout" name="gridLayout_5"> <layout class="QGridLayout" name="gridLayout_5">
<item row="2" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="bodyLabel"> <widget class="QLabel" name="bodyLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font"> <property name="font">
<font> <font>
<family>Inter</family> <family>Inter</family>
@ -292,6 +285,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0"> <item row="0" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">

View file

@ -15,6 +15,7 @@ koboxAppsDialog::koboxAppsDialog(QWidget *parent) :
ui(new Ui::koboxAppsDialog) ui(new Ui::koboxAppsDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->appsList->setFont(QFont("u001"));
// Preventing outside interaction // Preventing outside interaction
this->setModal(true); this->setModal(true);

View file

@ -10,11 +10,14 @@ koboxSettings::koboxSettings(QWidget *parent) :
ui(new Ui::koboxSettings) ui(new Ui::koboxSettings)
{ {
ui->setupUi(this); ui->setupUi(this);
koboxSettings::setFont(QFont("u001"));
ui->okBtn->setFont(QFont("Inter"));
// UI tweaks // UI tweaks
ui->okBtn->setProperty("type", "borderless"); ui->okBtn->setProperty("type", "borderless");
ui->pushButton->setProperty("type", "borderless"); ui->pushButton->setProperty("type", "borderless");
ui->resetKoboxBtn->setProperty("type", "borderless"); ui->resetKoboxBtn->setProperty("type", "borderless");
ui->okBtn->setStyleSheet("font-weight: bold");
// Stylesheet // Stylesheet
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");

View file

@ -28,6 +28,7 @@ MainWindow::MainWindow(QWidget *parent)
, ui(new Ui::MainWindow) , ui(new Ui::MainWindow)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->inkboxLabel->setFont(QFont("u001"));
ui->settingsBtn->setProperty("type", "borderless"); ui->settingsBtn->setProperty("type", "borderless");
ui->appsBtn->setProperty("type", "borderless"); ui->appsBtn->setProperty("type", "borderless");
@ -53,6 +54,7 @@ MainWindow::MainWindow(QWidget *parent)
ui->quotePictureLabel->setText(""); ui->quotePictureLabel->setText("");
ui->quoteHeadingLabel->setStyleSheet("padding: 30px"); ui->quoteHeadingLabel->setStyleSheet("padding: 30px");
ui->inkboxLabel->setStyleSheet("font-size: 10.5pt");
ui->homeBtn->setStyleSheet("padding: 5px"); ui->homeBtn->setStyleSheet("padding: 5px");
// Initializing some variables // Initializing some variables
@ -801,7 +803,7 @@ void MainWindow::setBatteryIcon() {
QPixmap emptyPixmap(":/resources/battery_empty.png"); QPixmap emptyPixmap(":/resources/battery_empty.png");
QPixmap scaledEmptyPixmap = emptyPixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio); QPixmap scaledEmptyPixmap = emptyPixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio);
// Checking battery level and status, then displaying the relevant icon on batteryIconLabel // Checking battery level and status, then displaying the relevant icon on batteryIcon
if(isUsbPluggedIn() == true) { if(isUsbPluggedIn() == true) {
ui->batteryIcon->setPixmap(scaledChargingPixmap); ui->batteryIcon->setPixmap(scaledChargingPixmap);
} }
@ -831,7 +833,7 @@ void MainWindow::setBatteryIcon() {
QPixmap emptyPixmap(":/resources/battery_empty.png"); QPixmap emptyPixmap(":/resources/battery_empty.png");
QPixmap scaledEmptyPixmap = emptyPixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio); QPixmap scaledEmptyPixmap = emptyPixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio);
// Checking battery level and status, then displaying the relevant icon on batteryIconLabel // Checking battery level and status, then displaying the relevant icon on batteryIcon
if(isUsbPluggedIn() == true) { if(isUsbPluggedIn() == true) {
ui->batteryIcon->setPixmap(scaledChargingPixmap); ui->batteryIcon->setPixmap(scaledChargingPixmap);
} }

View file

@ -13,6 +13,7 @@ quit::quit(QWidget *parent) :
ui(new Ui::quit) ui(new Ui::quit)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->backBtn->setFont(QFont("u001"));
ui->pushButton->setProperty("type", "borderless"); ui->pushButton->setProperty("type", "borderless");
ui->pushButton_2->setProperty("type", "borderless"); ui->pushButton_2->setProperty("type", "borderless");

View file

@ -37,6 +37,14 @@ reader::reader(QWidget *parent) :
wordwidgetLock = false; wordwidgetLock = false;
ui->setupUi(this); ui->setupUi(this);
ui->brightnessStatus->setFont(QFont("u001"));
ui->fontLabel->setFont(QFont("u001"));
ui->sizeLabel->setFont(QFont("u001"));
ui->sizeValueLabel->setFont(QFont("u001"));
ui->alignmentLabel->setFont(QFont("u001"));
ui->fontChooser->setFont(QFont("u001"));
ui->pageProgressBar->setFont(QFont("u001"));
ui->previousBtn->setProperty("type", "borderless"); ui->previousBtn->setProperty("type", "borderless");
ui->nextBtn->setProperty("type", "borderless"); ui->nextBtn->setProperty("type", "borderless");
ui->optionsBtn->setProperty("type", "borderless"); ui->optionsBtn->setProperty("type", "borderless");
@ -1162,9 +1170,11 @@ void reader::on_aboutBtn_clicked()
{ {
if(checkconfig("/opt/inkbox_genuine") == true) { if(checkconfig("/opt/inkbox_genuine") == true) {
QString aboutmsg = "InkBox is an open-source, Qt-based eBook reader. It aims to bring you the latest Qt features while being also fast and responsive."; QString aboutmsg = "InkBox is an open-source, Qt-based eBook reader. It aims to bring you the latest Qt features while being also fast and responsive.";
aboutmsg.prepend("<font face='u001'>");
string_checkconfig_ro("/external_root/opt/isa/version"); string_checkconfig_ro("/external_root/opt/isa/version");
aboutmsg.append("\n\nInkBox "); aboutmsg.append("<br><br>InkBox ");
aboutmsg.append(checkconfig_str_val); aboutmsg.append(checkconfig_str_val);
aboutmsg.append("</font>");
QMessageBox::information(this, tr("Information"), aboutmsg); QMessageBox::information(this, tr("Information"), aboutmsg);
} }
else { else {

View file

@ -9,6 +9,7 @@ savedwords::savedwords(QWidget *parent) :
ui(new Ui::savedwords) ui(new Ui::savedwords)
{ {
ui->setupUi(this); ui->setupUi(this);
savedwords::setFont(QFont("u001"));
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");
stylesheetFile.open(QFile::ReadOnly); stylesheetFile.open(QFile::ReadOnly);
this->setStyleSheet(stylesheetFile.readAll()); this->setStyleSheet(stylesheetFile.readAll());

View file

@ -13,6 +13,7 @@ searchResultsWidget::searchResultsWidget(QWidget *parent) :
// Variables // Variables
libraryResults = false; libraryResults = false;
ui->listView->setFont(QFont("u001"));
ui->listView->setStyleSheet("font-size: 10pt"); ui->listView->setStyleSheet("font-size: 10pt");
ui->backBtn->setProperty("type", "borderless"); ui->backBtn->setProperty("type", "borderless");
ui->backBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->backBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");

View file

@ -23,6 +23,12 @@ settings::settings(QWidget *parent) :
ui(new Ui::settings) ui(new Ui::settings)
{ {
ui->setupUi(this); ui->setupUi(this);
settings::setFont(QFont("u001"));
ui->label->setFont(QFont("u001"));
ui->comboBox->setFont(QFont("u001"));
ui->sleepTimeoutComboBox->setFont(QFont("u001"));
ui->okBtn->setFont(QFont("Inter"));
ui->setPasscodeBtn->setProperty("type", "borderless"); ui->setPasscodeBtn->setProperty("type", "borderless");
ui->okBtn->setProperty("type", "borderless"); ui->okBtn->setProperty("type", "borderless");
ui->aboutBtn->setProperty("type", "borderless"); ui->aboutBtn->setProperty("type", "borderless");
@ -36,6 +42,8 @@ settings::settings(QWidget *parent) :
ui->previousBtn->setProperty("type", "borderless"); ui->previousBtn->setProperty("type", "borderless");
ui->nextBtn->setProperty("type", "borderless"); ui->nextBtn->setProperty("type", "borderless");
ui->repackBtn->setProperty("type", "borderless"); ui->repackBtn->setProperty("type", "borderless");
ui->label->setStyleSheet("font-size: 10.5pt; font-weight: bold");
ui->okBtn->setStyleSheet("font-weight: bold");
ui->aboutBtn->setStyleSheet("font-size: 9pt"); ui->aboutBtn->setStyleSheet("font-size: 9pt");
ui->requestLeaseBtn->setStyleSheet("font-size: 9pt"); ui->requestLeaseBtn->setStyleSheet("font-size: 9pt");
ui->usbmsBtn->setStyleSheet("font-size: 9pt"); ui->usbmsBtn->setStyleSheet("font-size: 9pt");
@ -401,9 +409,11 @@ void settings::on_aboutBtn_clicked()
{ {
if(checkconfig("/opt/inkbox_genuine") == true) { if(checkconfig("/opt/inkbox_genuine") == true) {
QString aboutmsg = "InkBox is an open-source, Qt-based eBook reader. It aims to bring you the latest Qt features while being also fast and responsive."; QString aboutmsg = "InkBox is an open-source, Qt-based eBook reader. It aims to bring you the latest Qt features while being also fast and responsive.";
aboutmsg.prepend("<font face='u001'>");
string_checkconfig_ro("/external_root/opt/isa/version"); string_checkconfig_ro("/external_root/opt/isa/version");
aboutmsg.append("\n\nInkBox "); aboutmsg.append("<br><br>InkBox ");
aboutmsg.append(checkconfig_str_val); aboutmsg.append(checkconfig_str_val);
aboutmsg.append("</font>");
QMessageBox::information(this, tr("Information"), aboutmsg); QMessageBox::information(this, tr("Information"), aboutmsg);
} }
else { else {

File diff suppressed because it is too large Load diff

View file

@ -10,6 +10,7 @@ textwidget::textwidget(QWidget *parent) :
ui(new Ui::textwidget) ui(new Ui::textwidget)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->textBrowser->setFont(QFont("u001"));
// Stylesheet // Stylesheet
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");

View file

@ -12,6 +12,7 @@ usbms_splash::usbms_splash(QWidget *parent) :
ui(new Ui::usbms_splash) ui(new Ui::usbms_splash)
{ {
ui->setupUi(this); ui->setupUi(this);
usbms_splash::setFont(QFont("u001"));
// Getting the screen's size // Getting the screen's size
sW = QGuiApplication::screens()[0]->size().width(); sW = QGuiApplication::screens()[0]->size().width();
@ -48,8 +49,8 @@ usbms_splash::usbms_splash(QWidget *parent) :
float stdIconHeight = sH / 1.15; float stdIconHeight = sH / 1.15;
this->setStyleSheet("background-color:black;"); this->setStyleSheet("background-color:black;");
ui->label->setStyleSheet("QLabel { background-color : black; color : white; }"); ui->label->setStyleSheet("QLabel { background-color : black; color : white; font-size: 15pt }");
ui->label_3->setStyleSheet("QLabel { background-color : black; color : white; font-size: 9pt}"); ui->label_3->setStyleSheet("QLabel { background-color : black; color : white; font-size: 10pt }");
QPixmap pixmap(":/resources/usbms.png"); QPixmap pixmap(":/resources/usbms.png");
QPixmap scaledPixmap = pixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio); QPixmap scaledPixmap = pixmap.scaled(stdIconWidth, stdIconHeight, Qt::KeepAspectRatio);

View file

@ -28,6 +28,7 @@ wifiDialog::wifiDialog(QWidget *parent) :
ui->cancelBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->cancelBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");
ui->connectBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey"); ui->connectBtn->setStyleSheet("font-size: 9pt; padding: 10px; font-weight: bold; background: lightGrey");
ui->mainLabel->setStyleSheet("padding-left: 125px; padding-right: 125px"); ui->mainLabel->setStyleSheet("padding-left: 125px; padding-right: 125px");
ui->networksListWidget->setFont(QFont("u001"));
ui->networksListWidget->setStyleSheet("font-size: 9pt"); ui->networksListWidget->setStyleSheet("font-size: 9pt");
checkWifiNetworks(); checkWifiNetworks();