Skip to content
Snippets Groups Projects
Commit 22d0f50e authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Add option for the default font size

parent 0ed23506
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ encouraged to open feature request issues.
Here is a screen shot to get a feel for the UI, but things will probably change.
![nheko](https://dl.dropboxusercontent.com/s/cs2891enrf2lqo9/nheko.jpg)
![nheko](https://dl.dropboxusercontent.com/s/5iydk5r3b9zyycd/nheko-ui.png)
### Third party
......
......@@ -41,7 +41,13 @@ int main(int argc, char *argv[])
app.setWindowIcon(QIcon(":/logos/nheko.png"));
QFont font("Open Sans");
QSettings settings;
// Set the default if a value has not been set.
if (settings.value("font/size").toInt() == 0)
settings.setValue("font/size", 12);
QFont font("Open Sans", settings.value("font/size").toInt());
app.setFont(font);
QString lang = QLocale::system().name();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment