1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 04:57:44 +00:00

Fix icons on configure menu items

This commit is contained in:
Joshua Goins 2022-04-09 17:57:03 -04:00
parent 17b5130eb7
commit e4df844c44

View file

@ -53,7 +53,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
QMenu* fileMenu = menuBar()->addMenu("Settings"); QMenu* fileMenu = menuBar()->addMenu("Settings");
QAction* settingsAction = fileMenu->addAction("Configure Astra..."); QAction* settingsAction = fileMenu->addAction("Configure Astra...");
settingsAction->setIcon(QIcon::fromTheme("settings")); settingsAction->setIcon(QIcon::fromTheme("configure"));
connect(settingsAction, &QAction::triggered, [=] { connect(settingsAction, &QAction::triggered, [=] {
auto window = new SettingsWindow(0, *this, this->core, this); auto window = new SettingsWindow(0, *this, this->core, this);
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls); connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
@ -61,7 +61,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
}); });
QAction* profilesAction = fileMenu->addAction("Configure Profiles..."); QAction* profilesAction = fileMenu->addAction("Configure Profiles...");
profilesAction->setIcon(QIcon::fromTheme("settings")); profilesAction->setIcon(QIcon::fromTheme("configure"));
connect(profilesAction, &QAction::triggered, [=] { connect(profilesAction, &QAction::triggered, [=] {
auto window = new SettingsWindow(1, *this, this->core, this); auto window = new SettingsWindow(1, *this, this->core, this);
connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls); connect(&this->core, &LauncherCore::settingsChanged, window, &SettingsWindow::reloadControls);
@ -72,7 +72,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
fileMenu->addSeparator(); fileMenu->addSeparator();
wineCfg = fileMenu->addAction("Configure Wine..."); wineCfg = fileMenu->addAction("Configure Wine...");
wineCfg->setIcon(QIcon::fromTheme("settings")); wineCfg->setIcon(QIcon::fromTheme("configure"));
connect(wineCfg, &QAction::triggered, [=] { connect(wineCfg, &QAction::triggered, [=] {
this->core.launchExternalTool(currentProfile(), {"winecfg.exe"}); this->core.launchExternalTool(currentProfile(), {"winecfg.exe"});
}); });