From bbdf0732ad26eb24b3acf19b441a00d27702755d Mon Sep 17 00:00:00 2001 From: Nayla Hanegan Date: Thu, 23 May 2024 17:36:21 -0400 Subject: [PATCH] Revert "qt ui update" This reverts commit 813ab2389570adb5e1911096027ea6b778bd3c03. --- Source/Core/DolphinLib.vcxproj | 5 ----- Source/Core/DolphinQt/CMakeLists.txt | 6 ++++++ Source/Core/DolphinQt/DolphinQt.vcxproj | 4 ---- Source/Core/DolphinQt/Settings/InterfacePane.cpp | 6 ++++++ Source/VSProps/QtCompile.props | 3 +-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Source/Core/DolphinLib.vcxproj b/Source/Core/DolphinLib.vcxproj index 5bcd4b1e89..e8cf2f4c7b 100644 --- a/Source/Core/DolphinLib.vcxproj +++ b/Source/Core/DolphinLib.vcxproj @@ -77,11 +77,6 @@ Common\build_info.txt.in $(BinaryOutputDir)build_info.txt - - - false - - diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 3dfc00e5be..5767c6c28a 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -388,6 +388,12 @@ add_executable(dolphin-mpn WiiUpdate.h ) +if (WIN32) + target_sources(dolphin-mpn PRIVATE + Styles/Dark/dark.qrc + ) +endif() + if (NOT WIN32) target_sources(dolphin-mpn PRIVATE QtUtils/SignalDaemon.cpp diff --git a/Source/Core/DolphinQt/DolphinQt.vcxproj b/Source/Core/DolphinQt/DolphinQt.vcxproj index 18107c6c4a..022db86cd2 100644 --- a/Source/Core/DolphinQt/DolphinQt.vcxproj +++ b/Source/Core/DolphinQt/DolphinQt.vcxproj @@ -45,14 +45,10 @@ Use pch_qt.h pch_qt.h - false DolphinQt.manifest;%(AdditionalManifestFiles) - - false - diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp index 08137f68b2..06aac545da 100644 --- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp +++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp @@ -140,6 +140,12 @@ void InterfacePane::CreateUI() m_combobox_userstyle->addItem(tr("System"), static_cast(Settings::StyleType::System)); + // TODO: Support forcing light/dark on other OSes too. +#ifdef _WIN32 + m_combobox_userstyle->addItem(tr("Light"), static_cast(Settings::StyleType::Light)); + m_combobox_userstyle->addItem(tr("Dark"), static_cast(Settings::StyleType::Dark)); +#endif + for (const std::string& path : userstyle_search_results) { const QFileInfo file_info(QString::fromStdString(path)); diff --git a/Source/VSProps/QtCompile.props b/Source/VSProps/QtCompile.props index b36b8e072b..fb89cf5d05 100644 --- a/Source/VSProps/QtCompile.props +++ b/Source/VSProps/QtCompile.props @@ -113,8 +113,7 @@ - - +