Mercurial > minori
comparison src/gui/window.cc @ 102:b315f3759c56
*: big patch
1. use a wrapper for mINI that enables case sensitivity
(personal preference)
2. rename dark_theme.cc to theme.cc and change it to be
a class
3. include the "dep" folder so we don't have stupidity in
json.h or ini.h
4. I think the graph was also tweaked a lot in this, nothing
is constexpr and size is found at runtime...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Fri, 03 Nov 2023 21:32:52 -0400 |
| parents | d02fdf1d6708 |
| children | 621084cc542c |
comparison
equal
deleted
inserted
replaced
| 101:c537996cf67b | 102:b315f3759c56 |
|---|---|
| 1 #include "gui/window.h" | 1 #include "gui/window.h" |
| 2 #include "core/anime_db.h" | 2 #include "core/anime_db.h" |
| 3 #include "core/config.h" | 3 #include "core/config.h" |
| 4 #include "core/session.h" | 4 #include "core/session.h" |
| 5 #include "core/strings.h" | 5 #include "core/strings.h" |
| 6 #include "gui/dark_theme.h" | 6 #include "gui/theme.h" |
| 7 #include "gui/dialog/about.h" | 7 #include "gui/dialog/about.h" |
| 8 #include "gui/dialog/settings.h" | 8 #include "gui/dialog/settings.h" |
| 9 #include "gui/pages/anime_list.h" | 9 #include "gui/pages/anime_list.h" |
| 10 #include "gui/pages/history.h" | 10 #include "gui/pages/history.h" |
| 11 #include "gui/pages/now_playing.h" | 11 #include "gui/pages/now_playing.h" |
| 104 } | 104 } |
| 105 | 105 |
| 106 page->SetPlaying(Anime::db.items[id], elements); | 106 page->SetPlaying(Anime::db.items[id], elements); |
| 107 }); | 107 }); |
| 108 timer->start(5000); | 108 timer->start(5000); |
| 109 | |
| 110 DarkTheme::SetTheme(session.config.theme); | |
| 111 } | 109 } |
| 112 | 110 |
| 113 void MainWindow::CreateBars() { | 111 void MainWindow::CreateBars() { |
| 114 /* Menu Bar */ | 112 /* Menu Bar */ |
| 115 QAction* action; | 113 QAction* action; |
