Mercurial > minori
annotate include/core/config.h @ 105:6d8da6e64d61
theme: add dark stylesheet, make it actually usable
win32: make the titlebar black where available
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 05 Nov 2023 03:54:26 -0500 |
| parents | b315f3759c56 |
| children | 2004b41d4a59 |
| rev | line source |
|---|---|
| 9 | 1 #ifndef __core__config_h |
| 2 #define __core__config_h | |
| 85 | 3 |
| 9 | 4 #include "core/anime.h" |
| 102 | 5 #include "gui/theme.h" |
| 9 | 6 |
| 7 class Config { | |
| 8 public: | |
| 9 int Load(); | |
| 10 int Save(); | |
| 11 | |
| 12 Anime::Services service; | |
| 102 | 13 Theme::Theme theme; |
| 9 | 14 |
| 15 struct { | |
| 16 public: | |
| 17 Anime::TitleLanguage language; | |
| 18 bool display_aired_episodes; | |
| 19 bool display_available_episodes; | |
| 20 bool highlight_anime_if_available; | |
| 21 bool highlighted_anime_above_others; | |
| 22 } anime_list; | |
| 23 | |
| 24 struct { | |
| 25 public: | |
| 26 std::string auth_token; | |
| 27 std::string username; | |
| 28 int user_id; | |
| 29 } anilist; | |
| 30 }; | |
| 11 | 31 |
| 102 | 32 #define WIDEIFY_EX(x) L##x |
| 33 #define WIDEIFY(x) WIDEIFY_EX(x) | |
| 63 | 34 #define CONFIG_DIR "minori" |
| 102 | 35 #define CONFIG_WDIR WIDEIFY(CONFIG_DIR) |
|
101
c537996cf67b
*: multitude of config changes
Paper <mrpapersonic@gmail.com>
parents:
85
diff
changeset
|
36 #define CONFIG_NAME "config.ini" |
| 102 | 37 #define CONFIG_WNAME WIDEIFY(CONFIG_NAME) |
| 62 | 38 |
| 9 | 39 #define MAX_LINE_LENGTH 256 |
| 85 | 40 |
| 9 | 41 #endif // __core__config_h |
