diff --git a/src/qt_gui/game_grid_frame.cpp b/src/qt_gui/game_grid_frame.cpp index e06fea090..843bc7b6a 100644 --- a/src/qt_gui/game_grid_frame.cpp +++ b/src/qt_gui/game_grid_frame.cpp @@ -1,10 +1,10 @@ // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later - #include "common/path_util.h" #include "game_grid_frame.h" #include "qt_gui/compatibility_info.h" + GameGridFrame::GameGridFrame(std::shared_ptr game_info_get, std::shared_ptr compat_info_get, QWidget* parent) diff --git a/src/qt_gui/game_list_frame.cpp b/src/qt_gui/game_list_frame.cpp index 4c0607571..5e7b22e9d 100644 --- a/src/qt_gui/game_list_frame.cpp +++ b/src/qt_gui/game_list_frame.cpp @@ -1,6 +1,5 @@ // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later - #include #include "common/config.h" #include "common/logging/log.h" @@ -9,6 +8,7 @@ #include "game_list_frame.h" #include "game_list_utils.h" + GameListFrame::GameListFrame(std::shared_ptr game_info_get, std::shared_ptr compat_info_get, QWidget* parent) @@ -418,4 +418,4 @@ QString GameListFrame::GetPlayTime(const std::string& serial) { QTableWidgetItem* GameListFrame::GetCurrentItem() { return m_current_item; -} \ No newline at end of file +} diff --git a/src/qt_gui/main_window_themes.cpp b/src/qt_gui/main_window_themes.cpp index c5574fca9..a08584830 100644 --- a/src/qt_gui/main_window_themes.cpp +++ b/src/qt_gui/main_window_themes.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "main_window_themes.h" +#include "common/config.h" void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) { QPalette themePalette; @@ -189,6 +190,15 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) { "QCheckBox::indicator:unchecked {" "border: 1px solid #808080; border-radius: 4px; }"); + if (Config::getShowBackgroundImage()) { + qApp->setStyleSheet(qApp->styleSheet() + + "QWidget {" + "background-image: url(:/images/background.jpg);" + "background-repeat: no-repeat;" + "background-position: center;" + "background-attachment: fixed;" + "opacity: " + QString::number(Config::getBackgroundImageOpacity() / 100.0) + "; }"); + } break; } -} \ No newline at end of file +}