uisettings.cpp 781 B

123456789101112131415161718192021222324252627
  1. // SPDX-FileCopyrightText: 2016 Citra Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "yuzu/uisettings.h"
  4. namespace UISettings {
  5. const Themes themes{{
  6. {"Default", "default"},
  7. {"Default Colorful", "colorful"},
  8. {"Dark", "qdarkstyle"},
  9. {"Dark Colorful", "colorful_dark"},
  10. {"Midnight Blue", "qdarkstyle_midnight_blue"},
  11. {"Midnight Blue Colorful", "colorful_midnight_blue"},
  12. }};
  13. bool IsDarkTheme() {
  14. const auto& theme = UISettings::values.theme;
  15. return theme == QStringLiteral("qdarkstyle") ||
  16. theme == QStringLiteral("qdarkstyle_midnight_blue") ||
  17. theme == QStringLiteral("colorful_dark") ||
  18. theme == QStringLiteral("colorful_midnight_blue");
  19. }
  20. Values values = {};
  21. } // namespace UISettings