diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-12 20:04:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-12 20:04:03 +0200 |
| commit | dfbc0e33d70a94124cd4a9176d9f544365a66bd2 (patch) | |
| tree | 7e8958b888a10785a44cff2972b27e7fc5e62622 /Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp | |
| parent | 44c90aa3fc7e9fe12a87b01a8dcde8e96dac9617 (diff) | |
| parent | 24012cfc7f396177732e9a8b7d849045a65a5512 (diff) | |
Merge pull request #12080 from AdmiralCurtiss/windark
Add custom dark theme for Windows.
Diffstat (limited to 'Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp index 38ea1e4e7f..7fb37866ac 100644 --- a/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp +++ b/Source/Core/DolphinQt/Config/GamecubeControllersWidget.cpp @@ -24,6 +24,7 @@ #include "DolphinQt/Config/Mapping/GCPadWiiUConfigDialog.h" #include "DolphinQt/Config/Mapping/MappingWindow.h" #include "DolphinQt/QtUtils/NonDefaultQPushButton.h" +#include "DolphinQt/QtUtils/SetWindowDecorations.h" #include "DolphinQt/QtUtils/SignalBlocking.h" #include "DolphinQt/Settings.h" @@ -137,8 +138,12 @@ void GamecubeControllersWidget::OnGCPadConfigure(size_t index) type = MappingWindow::Type::MAPPING_GCPAD; break; case SerialInterface::SIDEVICE_WIIU_ADAPTER: - GCPadWiiUConfigDialog(static_cast<int>(index), this).exec(); + { + GCPadWiiUConfigDialog dialog(static_cast<int>(index), this); + SetQWidgetWindowDecorations(&dialog); + dialog.exec(); return; + } case SerialInterface::SIDEVICE_GC_STEERING: type = MappingWindow::Type::MAPPING_GC_STEERINGWHEEL; break; @@ -161,6 +166,7 @@ void GamecubeControllersWidget::OnGCPadConfigure(size_t index) MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index)); window->setAttribute(Qt::WA_DeleteOnClose, true); window->setWindowModality(Qt::WindowModality::WindowModal); + SetQWidgetWindowDecorations(window); window->show(); } |
