ui_settings.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. using Themes = std::array<std::pair<const char*, const char*>, 2>;
  14. extern const Themes themes;
  15. struct Values {
  16. QByteArray geometry;
  17. QByteArray state;
  18. QByteArray renderwindow_geometry;
  19. QByteArray gamelist_header_state;
  20. QByteArray microprofile_geometry;
  21. bool microprofile_visible;
  22. bool single_window_mode;
  23. bool fullscreen;
  24. bool display_titlebar;
  25. bool show_filter_bar;
  26. bool show_status_bar;
  27. bool confirm_before_closing;
  28. bool first_start;
  29. // Discord RPC
  30. bool enable_discord_presence;
  31. QString roms_path;
  32. QString symbols_path;
  33. QString gamedir;
  34. bool gamedir_deepscan;
  35. QStringList recent_files;
  36. QString theme;
  37. // Shortcut name <Shortcut, context>
  38. std::vector<Shortcut> shortcuts;
  39. uint32_t callout_flags;
  40. // logging
  41. bool show_console;
  42. // Game List
  43. bool show_unknown;
  44. uint32_t icon_size;
  45. uint8_t row_1_text_id;
  46. uint8_t row_2_text_id;
  47. };
  48. extern Values values;
  49. } // namespace UISettings