diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-08-12 10:05:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 10:05:06 -0400 |
commit | e8a59a6931250131fd5cbd1d531cf4912a04f7a7 (patch) | |
tree | 07fd2ab47501efad4f6a97447338a6c62ebaabe5 /src/yuzu/main.h | |
parent | 536626fdd65cbf1f937f48f11f289b8adecf1d6b (diff) | |
parent | d4b1095173cf32dbd9a890b066d991ca795abd80 (diff) |
Merge pull request #8647 from Docteh/default_dark
Linux: handle dark system themes nicely
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r-- | src/yuzu/main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index e13b38b24..1ae2b93d9 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -251,6 +251,7 @@ private: bool ConfirmForceLockedExit(); void RequestGameExit(); void RequestGameResume(); + void changeEvent(QEvent* event) override; void closeEvent(QCloseEvent* event) override; #ifdef __linux__ @@ -347,6 +348,7 @@ private: void OpenURL(const QUrl& url); void LoadTranslation(); void OpenPerGameConfiguration(u64 title_id, const std::string& file_name); + bool CheckDarkMode(); QString GetTasStateDescription() const; @@ -392,6 +394,9 @@ private: QTimer mouse_hide_timer; QTimer mouse_center_timer; + QString startup_icon_theme; + bool os_dark_mode = false; + // FS std::shared_ptr<FileSys::VfsFilesystem> vfs; std::unique_ptr<FileSys::ManualContentProvider> provider; |