mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Add option for the default font size
This commit is contained in:
parent
0ed2350664
commit
22d0f50e36
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
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
|
### Third party
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,13 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
app.setWindowIcon(QIcon(":/logos/nheko.png"));
|
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);
|
app.setFont(font);
|
||||||
|
|
||||||
QString lang = QLocale::system().name();
|
QString lang = QLocale::system().name();
|
||||||
|
|
Loading…
Reference in a new issue