Mercurial > minori
annotate src/main.cc @ 107:49c8d1976869
themes/dark: make QMenuBar and QMenu look better
this is what Sublime Text does, and I prefer it to having that ugly
blue color
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 05 Nov 2023 17:44:49 -0500 |
| 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 } |
