mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-24 19:36:17 +00:00
style: add Gruvbox theme (#1796)
This commit is contained in:
parent
0fd1ab674b
commit
d2ac92481b
4 changed files with 40 additions and 9 deletions
|
@ -111,6 +111,7 @@ void MainWindow::CreateActions() {
|
|||
m_theme_act_group->addAction(ui->setThemeGreen);
|
||||
m_theme_act_group->addAction(ui->setThemeBlue);
|
||||
m_theme_act_group->addAction(ui->setThemeViolet);
|
||||
m_theme_act_group->addAction(ui->setThemeGruvbox);
|
||||
}
|
||||
|
||||
void MainWindow::AddUiWidgets() {
|
||||
|
@ -540,6 +541,14 @@ void MainWindow::CreateConnects() {
|
|||
isIconBlack = false;
|
||||
}
|
||||
});
|
||||
connect(ui->setThemeGruvbox, &QAction::triggered, &m_window_themes, [this]() {
|
||||
m_window_themes.SetWindowTheme(Theme::Gruvbox, ui->mw_searchbar);
|
||||
Config::setMainWindowTheme(static_cast<int>(Theme::Gruvbox));
|
||||
if (isIconBlack) {
|
||||
SetUiIcons(false);
|
||||
isIconBlack = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::StartGame() {
|
||||
|
@ -912,6 +921,10 @@ void MainWindow::SetLastUsedTheme() {
|
|||
ui->setThemeViolet->setChecked(true);
|
||||
isIconBlack = false;
|
||||
SetUiIcons(false);
|
||||
case Theme::Gruvbox:
|
||||
ui->setThemeGruvbox->setChecked(true);
|
||||
isIconBlack = false;
|
||||
SetUiIcons(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue