|
|
@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <QString>
|
|
|
|
#include <QString>
|
|
|
@ -14,6 +15,10 @@ namespace UISettings {
|
|
|
|
using ContextualShortcut = std::pair<QString, int>;
|
|
|
|
using ContextualShortcut = std::pair<QString, int>;
|
|
|
|
using Shortcut = std::pair<QString, ContextualShortcut>;
|
|
|
|
using Shortcut = std::pair<QString, ContextualShortcut>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const std::array<std::pair<QString, QString>, 2> themes = {
|
|
|
|
|
|
|
|
{std::make_pair(QString("Default"), QString("default")),
|
|
|
|
|
|
|
|
std::make_pair(QString("Dark"), QString("qdarkstyle"))}};
|
|
|
|
|
|
|
|
|
|
|
|
struct Values {
|
|
|
|
struct Values {
|
|
|
|
QByteArray geometry;
|
|
|
|
QByteArray geometry;
|
|
|
|
QByteArray state;
|
|
|
|
QByteArray state;
|
|
|
@ -39,6 +44,8 @@ struct Values {
|
|
|
|
bool gamedir_deepscan;
|
|
|
|
bool gamedir_deepscan;
|
|
|
|
QStringList recent_files;
|
|
|
|
QStringList recent_files;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString theme;
|
|
|
|
|
|
|
|
|
|
|
|
// Shortcut name <Shortcut, context>
|
|
|
|
// Shortcut name <Shortcut, context>
|
|
|
|
std::vector<Shortcut> shortcuts;
|
|
|
|
std::vector<Shortcut> shortcuts;
|
|
|
|
};
|
|
|
|
};
|
|
|
|