Mercurial > minori
annotate src/main.cc @ 101:c537996cf67b
*: multitude of config changes
1. theme is now configurable from the settings menu
(but you have to restart for it to apply)
2. config is now stored in an INI file, with no method of
conversion from json (this repo is private-ish anyway)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 14:06:02 -0400 |
parents | 582b2fca1561 |
children | 2004b41d4a59 |
rev | line source |
---|---|
10 | 1 #include "core/session.h" |
2 #include "gui/window.h" | |
3 #include <QApplication> | |
46 | 4 #include <QStyleFactory> |
98
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
5 #include <QLocale> |
10 | 6 |
7 Session session; | |
8 | |
9 int main(int argc, char** argv) { | |
10 QApplication app(argc, argv); | |
98
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
11 /* this is a reasonable default, I presume */ |
582b2fca1561
strings: parse HTML entities when reading synopsis, make the
Paper <mrpapersonic@gmail.com>
parents:
81
diff
changeset
|
12 QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates)); |
10 | 13 |
14 session.config.Load(); | |
15 | |
16 MainWindow window; | |
17 | |
18 window.resize(941, 750); | |
11 | 19 window.setWindowTitle("Minori"); |
10 | 20 window.show(); |
21 | |
22 return app.exec(); | |
46 | 23 } |