diff --git a/README.md b/README.md index 591190d504647b819f29ebfb451de4e80251c905..c6104cf171f782313d48c106f87979e34b80f791 100644 --- a/README.md +++ b/README.md @@ -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. - + ### Third party diff --git a/src/main.cc b/src/main.cc index bf165cab9331a2887ee939cf6787622f5d5c68ff..28523858cd5a1bb479924538895240c31bae27f7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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();