ui_settings.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <array>
  6. #include <vector>
  7. #include <QByteArray>
  8. #include <QString>
  9. #include <QStringList>
  10. namespace UISettings {
  11. using ContextualShortcut = std::pair<QString, int>;
  12. using Shortcut = std::pair<QString, ContextualShortcut>;
  13. static const std::array<std::pair<QString, QString>, 2> themes = {
  14. {std::make_pair(QString("Default"), QString("default")),
  15. std::make_pair(QString("Dark"), QString("qdarkstyle"))}};
  16. struct Values {
  17. QByteArray geometry;
  18. QByteArray state;
  19. QByteArray renderwindow_geometry;
  20. QByteArray gamelist_header_state;
  21. QByteArray microprofile_geometry;
  22. bool microprofile_visible;
  23. bool single_window_mode;
  24. bool fullscreen;
  25. bool display_titlebar;
  26. bool show_filter_bar;
  27. bool show_status_bar;
  28. bool confirm_before_closing;
  29. bool first_start;
  30. QString roms_path;
  31. QString symbols_path;
  32. QString gamedir;
  33. bool gamedir_deepscan;
  34. QStringList recent_files;
  35. QString theme;
  36. // Shortcut name <Shortcut, context>
  37. std::vector<Shortcut> shortcuts;
  38. uint32_t callout_flags;
  39. // logging
  40. bool show_console;
  41. // Game List
  42. bool show_unknown;
  43. uint32_t icon_size;
  44. uint8_t row_1_text_id;
  45. uint8_t row_2_text_id;
  46. };
  47. extern Values values;
  48. } // namespace UISettings