mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 01:12:33 +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:
|
||||
ui->setThemeSystem->setChecked(true);
|
||||
bool isSystemDarkMode;
|
||||
#ifdef __linux__
|
||||
#ifdef __linux__
|
||||
const QPalette defaultPalette;
|
||||
const auto text = defaultPalette.color(QPalette::WindowText);
|
||||
const auto window = defaultPalette.color(QPalette::Window);
|
||||
@ -987,13 +987,13 @@ void MainWindow::SetLastUsedTheme() {
|
||||
} else {
|
||||
isSystemDarkMode = false;
|
||||
}
|
||||
#else
|
||||
#else
|
||||
if (QGuiApplication::styleHints()->colorScheme() == Qt::ColorScheme::Dark) {
|
||||
isSystemDarkMode = true;
|
||||
} else {
|
||||
isSystemDarkMode = false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
if (isSystemDarkMode = true) {
|
||||
isIconBlack = false;
|
||||
SetUiIcons(false);
|
||||
|
@ -379,8 +379,7 @@ public:
|
||||
setThemeBlue->setText(QCoreApplication::translate("MainWindow", "Blue", nullptr));
|
||||
setThemeViolet->setText(QCoreApplication::translate("MainWindow", "Violet", nullptr));
|
||||
setThemeGruvbox->setText("Gruvbox");
|
||||
setThemeSystem->setText(
|
||||
QCoreApplication::translate("MainWindow", "System", nullptr));
|
||||
setThemeSystem->setText(QCoreApplication::translate("MainWindow", "System", nullptr));
|
||||
toolBar->setWindowTitle(QCoreApplication::translate("MainWindow", "toolBar", nullptr));
|
||||
} // retranslateUi
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user