From 98ef639c0ae3262c778e98a07f0c3d6030891ec8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 13 Oct 2022 17:43:09 +1000 Subject: [PATCH] Qt: Change post settings style to sunken --- src/duckstation-qt/postprocessingchainconfigwidget.ui | 2 +- src/duckstation-qt/postprocessingsettingswidget.cpp | 5 +++-- src/duckstation-qt/postprocessingsettingswidget.ui | 10 ++++++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/duckstation-qt/postprocessingchainconfigwidget.ui b/src/duckstation-qt/postprocessingchainconfigwidget.ui index 3d3028a9b..b2d30d544 100644 --- a/src/duckstation-qt/postprocessingchainconfigwidget.ui +++ b/src/duckstation-qt/postprocessingchainconfigwidget.ui @@ -7,7 +7,7 @@ 0 0 721 - 194 + 210 diff --git a/src/duckstation-qt/postprocessingsettingswidget.cpp b/src/duckstation-qt/postprocessingsettingswidget.cpp index c77fa083d..41f40cbd3 100644 --- a/src/duckstation-qt/postprocessingsettingswidget.cpp +++ b/src/duckstation-qt/postprocessingsettingswidget.cpp @@ -56,10 +56,11 @@ void PostProcessingSettingsWidget::onChainSelectedShaderChanged(qint32 index) void PostProcessingSettingsWidget::updateShaderConfigPanel(s32 index) { + m_ui.scrollArea->setWidget(nullptr); + m_ui.scrollArea->setVisible(false); + if (m_shader_config) { - m_ui.scrollArea->setWidget(nullptr); - m_ui.scrollArea->setVisible(false); delete m_shader_config; m_shader_config = nullptr; } diff --git a/src/duckstation-qt/postprocessingsettingswidget.ui b/src/duckstation-qt/postprocessingsettingswidget.ui index 34bf92394..14ca8a79b 100644 --- a/src/duckstation-qt/postprocessingsettingswidget.ui +++ b/src/duckstation-qt/postprocessingsettingswidget.ui @@ -93,6 +93,12 @@ 1 + + QFrame::WinPanel + + + QFrame::Sunken + true @@ -101,8 +107,8 @@ 0 0 - 681 - 390 + 679 + 438