mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 17:32:40 +00:00
clang-format: Update qt_gui/main_window.cpp and qt_gui/main_window.h
This commit is contained in:
parent
b6f5751b23
commit
88ee5c678c
@ -978,7 +978,7 @@ void MainWindow::SetLastUsedTheme() {
|
|||||||
case Theme::System:
|
case Theme::System:
|
||||||
ui->setThemeSystem->setChecked(true);
|
ui->setThemeSystem->setChecked(true);
|
||||||
bool isSystemDarkMode;
|
bool isSystemDarkMode;
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
const QPalette defaultPalette;
|
const QPalette defaultPalette;
|
||||||
const auto text = defaultPalette.color(QPalette::WindowText);
|
const auto text = defaultPalette.color(QPalette::WindowText);
|
||||||
const auto window = defaultPalette.color(QPalette::Window);
|
const auto window = defaultPalette.color(QPalette::Window);
|
||||||
@ -987,13 +987,13 @@ void MainWindow::SetLastUsedTheme() {
|
|||||||
} else {
|
} else {
|
||||||
isSystemDarkMode = false;
|
isSystemDarkMode = false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (QGuiApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
|
if (QGuiApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
|
||||||
isSystemDarkMode = true;
|
isSystemDarkMode = true;
|
||||||
} else {
|
} else {
|
||||||
isSystemDarkMode = false;
|
isSystemDarkMode = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (isSystemDarkMode = true) {
|
if (isSystemDarkMode = true) {
|
||||||
isIconBlack = false;
|
isIconBlack = false;
|
||||||
SetUiIcons(false);
|
SetUiIcons(false);
|
||||||
|
@ -379,8 +379,7 @@ public:
|
|||||||
setThemeBlue->setText(QCoreApplication::translate("MainWindow", "Blue", nullptr));
|
setThemeBlue->setText(QCoreApplication::translate("MainWindow", "Blue", nullptr));
|
||||||
setThemeViolet->setText(QCoreApplication::translate("MainWindow", "Violet", nullptr));
|
setThemeViolet->setText(QCoreApplication::translate("MainWindow", "Violet", nullptr));
|
||||||
setThemeGruvbox->setText("Gruvbox");
|
setThemeGruvbox->setText("Gruvbox");
|
||||||
setThemeSystem->setText(
|
setThemeSystem->setText(QCoreApplication::translate("MainWindow", "System", nullptr));
|
||||||
QCoreApplication::translate("MainWindow", "System", nullptr));
|
|
||||||
toolBar->setWindowTitle(QCoreApplication::translate("MainWindow", "toolBar", nullptr));
|
toolBar->setWindowTitle(QCoreApplication::translate("MainWindow", "toolBar", nullptr));
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user