GUI: Replace monospace font with Roboto Mono; Fixes for N873

This commit is contained in:
Nicolas Mailloux 2022-09-05 10:37:57 -04:00
parent d1b3559357
commit 76728b7d4b
6 changed files with 19 additions and 7 deletions

View file

@ -1310,6 +1310,10 @@ void reader::on_fontChooser_currentIndexChanged(const QString &arg1)
ui->text->setFont(notomono);
string_writeconfig(".config/04-book/font", "Noto Mono");
}
if(arg1 == "Roboto Mono") {
ui->text->setFont(QFont("Roboto Mono"));
writeFile(".config/04-boot/font", "Roboto Mono");
}
if(arg1 == "Libertinus Serif") {
QFont libertinus("Libertinus Serif");
ui->text->setFont(libertinus);

View file

@ -672,6 +672,11 @@
<string>Noto Mono</string>
</property>
</item>
<item>
<property name="text">
<string>Roboto Mono</string>
</property>
</item>
<item>
<property name="text">
<string>Roboto</string>

View file

@ -12,7 +12,7 @@ connectiondialog::connectiondialog(QWidget *parent) :
{
ui->setupUi(this);
this->setFont(QFont("u001"));
ui->passphraseTextEdit->setFont(QFont("Noto Mono"));
ui->passphraseTextEdit->setFont(QFont("Roboto Mono"));
ui->label->setFont(QFont("Inter"));
ui->label_2->setFont(QFont("Inter"));
@ -46,6 +46,9 @@ connectiondialog::connectiondialog(QWidget *parent) :
if(global::deviceID == "n705\n") {
finalHeight = screenGeometry.height() - halfOfHalfHeight * 5.9;
}
else if(global::deviceID == "n873\n") {
finalHeight = screenGeometry.height() - halfOfHalfHeight * 6.45;
}
else {
finalHeight = screenGeometry.height() - halfOfHalfHeight * 6.3;
}

View file

@ -405,7 +405,7 @@ void wifiDialog::watcher() {
forceRefresh = true;
QFile recName = QFile("/mnt/onboard/.adds/inkbox/.config/17-wifi_connection_information/essid");
if(recName.exists() == true) {
setStatusText("Reconnecting after suspending to " + readFile(recName.fileName()).replace("\n", ""));
setStatusText("Reconnecting to '" + readFile(recName.fileName()).replace("\n", "") + "'");
}
else {
// Shouldn't be possible

View file

@ -16,12 +16,12 @@ wifilogger::wifilogger(QWidget *parent) :
ui->label_8->setFont(QFont("Inter"));
ui->returnBtn->setFont(QFont("Inter"));
ui->nameLabel->setFont(QFont("Inter"));
ui->allLogsText->setFont(QFont("Noto Mono"));
ui->fancyLogsText->setFont(QFont("Noto Mono"));
ui->allLogsText->setFont(QFont("Roboto Mono"));
ui->fancyLogsText->setFont(QFont("Roboto Mono"));
ui->nameLabel->setStyleSheet("font-weight: bold");
ui->returnBtn->setStyleSheet("font-weight: bold");
ui->allLogsText->setStyleSheet("font-size: 7pt");
ui->fancyLogsText->setStyleSheet("font-size: 7pt");
ui->allLogsText->setStyleSheet("font-size: 7.5pt");
ui->fancyLogsText->setStyleSheet("font-size: 7.5pt");
// Stylesheet, style & misc.
QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");

View file

@ -192,7 +192,7 @@ virtualkeyboard::virtualkeyboard(QWidget *parent) :
ui->lineEdit->setStyleSheet("border: 3px solid black");
if(global::keyboard::vncDialog == true or global::keyboard::wifiPassphraseDialog == true or global::keyboard::encfsDialog == true) {
ui->lineEdit->setFont(QFont("Noto Mono"));
ui->lineEdit->setFont(QFont("Roboto Mono"));
}
else if(global::keyboard::searchDialog == true){
ui->lineEdit->setFont(QFont("u001"));