Add option to configure the font size

fixes #161
This commit is contained in:
Konstantinos Sideris 2018-10-01 17:56:46 +03:00
parent 4b1b062388
commit 3a57d1018e
6 changed files with 68 additions and 56 deletions

View file

@ -150,7 +150,12 @@ main(int argc, char *argv[])
std::exit(1);
}
app.setFont(QFont("Open Sans"));
QSettings settings;
QFont font("Open Sans");
font.setPointSizeF(settings.value("user/font_size", font.pointSizeF()).toDouble());
app.setFont(font);
QString lang = QLocale::system().name();
@ -167,8 +172,6 @@ main(int argc, char *argv[])
// Move the MainWindow to the center
w.move(screenCenter(w.width(), w.height()));
QSettings settings;
if (!settings.value("user/window/start_in_tray", false).toBool() ||
!settings.value("user/window/tray", true).toBool())
w.show();