mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 10:55:03 +00:00
Workflows cleanup + misc fixes (#371)
* Workflows cleanup * clang-format * SDL3: Disabling unnecessary options * Revert CMakeLists.txt changes
This commit is contained in:
parent
3fd2abdd5b
commit
254b9ffb50
9 changed files with 27 additions and 39 deletions
|
@ -51,8 +51,8 @@ bool MainWindow::Init() {
|
|||
this->setStatusBar(statusBar.data());
|
||||
// Update status bar
|
||||
int numGames = m_game_info->m_games.size();
|
||||
QString statusMessage = "Games: " + QString::number(numGames) + " (" +
|
||||
QString::number(duration.count()) + "ms). Ready.";
|
||||
QString statusMessage =
|
||||
"Games: " + QString::number(numGames) + " (" + QString::number(duration.count()) + "ms)";
|
||||
statusBar->showMessage(statusMessage);
|
||||
return true;
|
||||
}
|
||||
|
@ -72,8 +72,8 @@ void MainWindow::CreateActions() {
|
|||
|
||||
// create action group for themes
|
||||
m_theme_act_group = new QActionGroup(this);
|
||||
m_theme_act_group->addAction(ui->setThemeLight);
|
||||
m_theme_act_group->addAction(ui->setThemeDark);
|
||||
m_theme_act_group->addAction(ui->setThemeLight);
|
||||
m_theme_act_group->addAction(ui->setThemeGreen);
|
||||
m_theme_act_group->addAction(ui->setThemeBlue);
|
||||
m_theme_act_group->addAction(ui->setThemeViolet);
|
||||
|
@ -344,14 +344,6 @@ void MainWindow::CreateConnects() {
|
|||
});
|
||||
|
||||
// Themes
|
||||
connect(ui->setThemeLight, &QAction::triggered, &m_window_themes, [this]() {
|
||||
m_window_themes.SetWindowTheme(Theme::Light, ui->mw_searchbar);
|
||||
Config::setMainWindowTheme(static_cast<int>(Theme::Light));
|
||||
if (!isIconBlack) {
|
||||
SetUiIcons(true);
|
||||
isIconBlack = true;
|
||||
}
|
||||
});
|
||||
connect(ui->setThemeDark, &QAction::triggered, &m_window_themes, [this]() {
|
||||
m_window_themes.SetWindowTheme(Theme::Dark, ui->mw_searchbar);
|
||||
Config::setMainWindowTheme(static_cast<int>(Theme::Dark));
|
||||
|
@ -360,6 +352,14 @@ void MainWindow::CreateConnects() {
|
|||
isIconBlack = false;
|
||||
}
|
||||
});
|
||||
connect(ui->setThemeLight, &QAction::triggered, &m_window_themes, [this]() {
|
||||
m_window_themes.SetWindowTheme(Theme::Light, ui->mw_searchbar);
|
||||
Config::setMainWindowTheme(static_cast<int>(Theme::Light));
|
||||
if (!isIconBlack) {
|
||||
SetUiIcons(true);
|
||||
isIconBlack = true;
|
||||
}
|
||||
});
|
||||
connect(ui->setThemeGreen, &QAction::triggered, &m_window_themes, [this]() {
|
||||
m_window_themes.SetWindowTheme(Theme::Green, ui->mw_searchbar);
|
||||
Config::setMainWindowTheme(static_cast<int>(Theme::Green));
|
||||
|
@ -415,7 +415,7 @@ void MainWindow::RefreshGameTable() {
|
|||
m_game_grid_frame->PopulateGameGrid(m_game_info->m_games, false);
|
||||
statusBar->clearMessage();
|
||||
int numGames = m_game_info->m_games.size();
|
||||
QString statusMessage = "Games: " + QString::number(numGames) + ". Ready.";
|
||||
QString statusMessage = "Games: " + QString::number(numGames);
|
||||
statusBar->showMessage(statusMessage);
|
||||
}
|
||||
|
||||
|
|
|
@ -297,7 +297,7 @@ public:
|
|||
menuRecent->setTitle(QCoreApplication::translate("MainWindow", "Recent Games", nullptr));
|
||||
exitAct->setText(QCoreApplication::translate("MainWindow", "Exit", nullptr));
|
||||
#if QT_CONFIG(tooltip)
|
||||
exitAct->setToolTip(QCoreApplication::translate("MainWindow", "Exit Shadps4", nullptr));
|
||||
exitAct->setToolTip(QCoreApplication::translate("MainWindow", "Exit shadPS4", nullptr));
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
#if QT_CONFIG(statustip)
|
||||
exitAct->setStatusTip(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue