mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 09:22:35 +00:00
cleanup: Remove unused and/or incorrect code
This commit is contained in:
parent
1badaaace4
commit
eeaa1bcaf3
@ -64,7 +64,6 @@ private:
|
||||
void SetLastUsedTheme();
|
||||
void SetLastIconSizeBullet();
|
||||
void SetUiIcons(bool isWhite);
|
||||
void RepaintWidgets();
|
||||
void InstallPkg();
|
||||
void BootGame();
|
||||
void AddRecentFiles(QString filePath);
|
||||
|
@ -6,12 +6,12 @@
|
||||
void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
||||
QPalette themePalette;
|
||||
|
||||
static QPalette s_unthemed_palette;
|
||||
static bool s_unthemed_style_name_set;
|
||||
static QPalette s_system_palette;
|
||||
static bool s_system_style_name_set;
|
||||
|
||||
if (!s_unthemed_style_name_set) {
|
||||
s_unthemed_style_name_set = true;
|
||||
s_unthemed_palette = QApplication::palette();
|
||||
if (!s_system_style_name_set) {
|
||||
s_system_style_name_set = true;
|
||||
s_system_palette = QApplication::palette();
|
||||
}
|
||||
|
||||
switch (theme) {
|
||||
@ -157,9 +157,8 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
||||
"border-radius: 4px; padding: 5px; }"
|
||||
"QLineEdit:focus {"
|
||||
"border: 1px solid; }");
|
||||
qApp->setPalette(s_unthemed_palette);
|
||||
qApp->setPalette(s_system_palette);
|
||||
qApp->setStyleSheet(QString());
|
||||
qApp->setStyle(QApplication::style()->objectName());
|
||||
break;
|
||||
case Theme::SystemLight:
|
||||
mw_searchbar->setStyleSheet("QLineEdit {"
|
||||
@ -167,9 +166,8 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
||||
"border-radius: 4px; padding: 5px; }"
|
||||
"QLineEdit:focus {"
|
||||
"border: 1px solid; }");
|
||||
qApp->setPalette(s_unthemed_palette);
|
||||
qApp->setPalette(s_system_palette);
|
||||
qApp->setStyleSheet(QString());
|
||||
qApp->setStyle(QApplication::style()->objectName());
|
||||
break;
|
||||
}
|
||||
}
|
@ -165,7 +165,7 @@ public:
|
||||
setThemeGruvbox->setObjectName("setThemeGruvbox");
|
||||
setThemeGruvbox->setCheckable(true);
|
||||
setThemeSystemDark = new QAction(MainWindow);
|
||||
setThemeSystemDark->setObjectName("setThemeSystem");
|
||||
setThemeSystemDark->setObjectName("setThemeSystemDark");
|
||||
setThemeSystemDark->setCheckable(true);
|
||||
setThemeSystemLight = new QAction(MainWindow);
|
||||
setThemeSystemLight->setObjectName("setThemeSystemLight");
|
||||
|
Loading…
Reference in New Issue
Block a user