Add proper translation UI

This commit is contained in:
wheremyfoodat 2024-12-04 20:20:52 +02:00
parent b4d212c510
commit 59016c2ffd
9 changed files with 319 additions and 197 deletions

View file

@ -24,6 +24,7 @@ struct FrontendSettings {
Theme theme = Theme::Dark;
WindowIcon icon = WindowIcon::Rpog;
std::string language = "en";
static Theme themeFromString(std::string inString);
static const char* themeToString(Theme theme);

View file

@ -45,6 +45,8 @@ class ConfigWindow : public QDialog {
void setTheme(FrontendSettings::Theme theme);
void setIcon(FrontendSettings::WindowIcon icon);
QComboBox* createLanguageSelect();
public:
ConfigWindow(ConfigCallback configCallback, MainWindowCallback windowCallback, const EmulatorConfig& config, QWidget* parent = nullptr);
~ConfigWindow();