Mercurial > minori
diff include/gui/dialog/settings.h @ 232:ff0061e75f0f
theme: add OS detection with glib
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 13 Jan 2024 11:06:16 -0500 |
parents | f784b5b1914c |
children | 4d461ef7d424 |
line wrap: on
line diff
--- a/include/gui/dialog/settings.h Sat Jan 13 09:43:41 2024 -0500 +++ b/include/gui/dialog/settings.h Sat Jan 13 11:06:16 2024 -0500 @@ -37,8 +37,8 @@ private: QWidget* CreateMainPage(); QWidget* CreateAniListPage(); - QString username; - Anime::Services service; + + decltype(session.config.service) service; }; class SettingsPageApplication final : public SettingsPage { @@ -51,14 +51,16 @@ private: QWidget* CreateAnimeListWidget(); QWidget* CreateGeneralWidget(); - decltype(session.config.anime_list.score_format) format; + Themes theme; QLocale locale; - Anime::TitleLanguage language; - bool display_aired_episodes; - bool display_available_episodes; - bool highlight_anime_if_available; - bool highlighted_anime_above_others; + + decltype(session.config.anime_list.score_format) format; + decltype(session.config.anime_list.language) language; + decltype(session.config.anime_list.display_aired_episodes) display_aired_episodes; + decltype(session.config.anime_list.display_available_episodes) display_available_episodes; + decltype(session.config.anime_list.highlight_anime_if_available) highlight_anime_if_available; + decltype(session.config.anime_list.highlighted_anime_above_others) highlighted_anime_above_others; }; class SettingsPageTorrents final : public SettingsPage { @@ -70,6 +72,7 @@ private: QWidget* CreateGeneralWidget(); + decltype(session.config.torrents.feed_link) feed_link; }; @@ -82,6 +85,7 @@ private: QWidget* CreatePlayersWidget(); + decltype(session.config.recognition.detect_media_players) detect_media_players; decltype(session.config.recognition.players) players; }; @@ -95,6 +99,7 @@ private: QWidget* CreateFoldersWidget(); + decltype(session.config.library.paths) paths; decltype(session.config.library.real_time_monitor) real_time_monitor; };