Skip to content

Commit

Permalink
Qt: Change post settings style to sunken
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 13, 2022
1 parent 69efa0f commit 98ef639
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/duckstation-qt/postprocessingchainconfigwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>721</width>
<height>194</height>
<height>210</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down
5 changes: 3 additions & 2 deletions src/duckstation-qt/postprocessingsettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
10 changes: 8 additions & 2 deletions src/duckstation-qt/postprocessingsettingswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::WinPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -101,8 +107,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>681</width>
<height>390</height>
<width>679</width>
<height>438</height>
</rect>
</property>
</widget>
Expand Down

0 comments on commit 98ef639

Please sign in to comment.