mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-07 01:42:30 +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 SetLastUsedTheme();
|
||||||
void SetLastIconSizeBullet();
|
void SetLastIconSizeBullet();
|
||||||
void SetUiIcons(bool isWhite);
|
void SetUiIcons(bool isWhite);
|
||||||
void RepaintWidgets();
|
|
||||||
void InstallPkg();
|
void InstallPkg();
|
||||||
void BootGame();
|
void BootGame();
|
||||||
void AddRecentFiles(QString filePath);
|
void AddRecentFiles(QString filePath);
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
||||||
QPalette themePalette;
|
QPalette themePalette;
|
||||||
|
|
||||||
static QPalette s_unthemed_palette;
|
static QPalette s_system_palette;
|
||||||
static bool s_unthemed_style_name_set;
|
static bool s_system_style_name_set;
|
||||||
|
|
||||||
if (!s_unthemed_style_name_set) {
|
if (!s_system_style_name_set) {
|
||||||
s_unthemed_style_name_set = true;
|
s_system_style_name_set = true;
|
||||||
s_unthemed_palette = QApplication::palette();
|
s_system_palette = QApplication::palette();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (theme) {
|
switch (theme) {
|
||||||
@ -157,9 +157,8 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
|||||||
"border-radius: 4px; padding: 5px; }"
|
"border-radius: 4px; padding: 5px; }"
|
||||||
"QLineEdit:focus {"
|
"QLineEdit:focus {"
|
||||||
"border: 1px solid; }");
|
"border: 1px solid; }");
|
||||||
qApp->setPalette(s_unthemed_palette);
|
qApp->setPalette(s_system_palette);
|
||||||
qApp->setStyleSheet(QString());
|
qApp->setStyleSheet(QString());
|
||||||
qApp->setStyle(QApplication::style()->objectName());
|
|
||||||
break;
|
break;
|
||||||
case Theme::SystemLight:
|
case Theme::SystemLight:
|
||||||
mw_searchbar->setStyleSheet("QLineEdit {"
|
mw_searchbar->setStyleSheet("QLineEdit {"
|
||||||
@ -167,9 +166,8 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
|||||||
"border-radius: 4px; padding: 5px; }"
|
"border-radius: 4px; padding: 5px; }"
|
||||||
"QLineEdit:focus {"
|
"QLineEdit:focus {"
|
||||||
"border: 1px solid; }");
|
"border: 1px solid; }");
|
||||||
qApp->setPalette(s_unthemed_palette);
|
qApp->setPalette(s_system_palette);
|
||||||
qApp->setStyleSheet(QString());
|
qApp->setStyleSheet(QString());
|
||||||
qApp->setStyle(QApplication::style()->objectName());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -165,7 +165,7 @@ public:
|
|||||||
setThemeGruvbox->setObjectName("setThemeGruvbox");
|
setThemeGruvbox->setObjectName("setThemeGruvbox");
|
||||||
setThemeGruvbox->setCheckable(true);
|
setThemeGruvbox->setCheckable(true);
|
||||||
setThemeSystemDark = new QAction(MainWindow);
|
setThemeSystemDark = new QAction(MainWindow);
|
||||||
setThemeSystemDark->setObjectName("setThemeSystem");
|
setThemeSystemDark->setObjectName("setThemeSystemDark");
|
||||||
setThemeSystemDark->setCheckable(true);
|
setThemeSystemDark->setCheckable(true);
|
||||||
setThemeSystemLight = new QAction(MainWindow);
|
setThemeSystemLight = new QAction(MainWindow);
|
||||||
setThemeSystemLight->setObjectName("setThemeSystemLight");
|
setThemeSystemLight->setObjectName("setThemeSystemLight");
|
||||||
|
Loading…
Reference in New Issue
Block a user