From 446f7e121e7eded72cf7eb4ed0103d124e0bee86 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Sun, 25 May 2025 23:35:56 -0400 Subject: [PATCH] Qt: Further polish the layout of some widgets --- src/duckstation-qt/advancedsettingswidget.ui | 37 +- src/duckstation-qt/audiosettingswidget.ui | 410 +++++++++--------- .../audiostretchsettingsdialog.ui | 197 ++++----- src/duckstation-qt/biossettingswidget.ui | 57 ++- src/duckstation-qt/coverdownloaddialog.ui | 22 +- 5 files changed, 373 insertions(+), 350 deletions(-) diff --git a/src/duckstation-qt/advancedsettingswidget.ui b/src/duckstation-qt/advancedsettingswidget.ui index a460ac327..340a32a02 100644 --- a/src/duckstation-qt/advancedsettingswidget.ui +++ b/src/duckstation-qt/advancedsettingswidget.ui @@ -28,7 +28,7 @@ Logging - + @@ -37,23 +37,26 @@ - - - - - - - - Log Channels - - - - - - - + + + + 0 + 0 + + + - + + + + Log Channels + + + + + + + diff --git a/src/duckstation-qt/audiosettingswidget.ui b/src/duckstation-qt/audiosettingswidget.ui index d8cb41e72..86625f547 100644 --- a/src/duckstation-qt/audiosettingswidget.ui +++ b/src/duckstation-qt/audiosettingswidget.ui @@ -7,7 +7,7 @@ 0 0 523 - 504 + 480 @@ -29,6 +29,124 @@ Configuration + + + + Backend: + + + + + + + + 0 + 0 + + + + + + + + Driver: + + + + + + + + 0 + 0 + + + + + + + + Output Device: + + + + + + + + 0 + 0 + + + + + + + + Stretch Mode: + + + + + + + + 0 + 0 + + + + + + + + Stretch Settings + + + + + + + + + + Buffer Size: + + + + + + + + + 15 + + + 500 + + + 50 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBothSides + + + 20 + + + + + + + 0 ms + + + + + @@ -36,10 +154,7 @@ - - - - + @@ -76,97 +191,7 @@ - - - - - - - Stretch Mode: - - - - - - - Buffer Size: - - - - - - - - - 15 - - - 500 - - - 1 - - - 5 - - - 50 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBothSides - - - 20 - - - - - - - 0 ms - - - - - - - - - - - - - - Stretch Settings - - - - - - - - - - - - Output Device: - - - - - - - - - - Driver: - - - - + Maximum latency: 0 frames (0.00ms) @@ -176,13 +201,6 @@ - - - - Backend: - - - @@ -200,53 +218,49 @@ - - - - - 200 - - - 100 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBothSides - - - 10 - - - - - - - - 0 - 0 - - - - 100% - - - Qt::AlignmentFlag::AlignCenter - - - - - - - Reset Volume - - - - - - - + + + 200 + + + 100 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBothSides + + + 10 + + + + + + + + 0 + 0 + + + + 100% + + + Qt::AlignmentFlag::AlignCenter + + + + + + + Reset Volume + + + + + @@ -256,55 +270,51 @@ - - - - - 200 - - - 100 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBothSides - - - 10 - - - - - - - - 0 - 0 - - - - 100% - - - Qt::AlignmentFlag::AlignCenter - - - - - - - Reset Fast Forward Volume - - - - - - - + + + 200 + + + 100 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBothSides + + + 10 + + - + + + + + 0 + 0 + + + + 100% + + + Qt::AlignmentFlag::AlignCenter + + + + + + + Reset Fast Forward Volume + + + + + + + @@ -332,8 +342,8 @@ - 20 - 40 + 0 + 0 diff --git a/src/duckstation-qt/audiostretchsettingsdialog.ui b/src/duckstation-qt/audiostretchsettingsdialog.ui index 3058e3c44..f169f57f0 100644 --- a/src/duckstation-qt/audiostretchsettingsdialog.ui +++ b/src/duckstation-qt/audiostretchsettingsdialog.ui @@ -7,14 +7,14 @@ 0 0 500 - 255 + 287 Audio Stretch Settings - + 10 @@ -40,6 +40,12 @@ + + + 0 + 0 + + <html><head/><body><p><span style=" font-weight:700;">Audio Stretch Settings</span><br/>These settings fine-tune the behavior of the SoundTouch audio time stretcher when running outside of 100% speed.</p></body></html> @@ -64,37 +70,33 @@ - - - - - 20 - - - 100 - - - 30 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBelow - - - 10 - - - - - - - 30 - - - - + + + 20 + + + 100 + + + 30 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBelow + + + 10 + + + + + + + 30 + + @@ -104,37 +106,33 @@ - - - - - 10 - - - 30 - - - 20 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBelow - - - 2 - - - - - - - 20 - - - - + + + 10 + + + 30 + + + 20 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBelow + + + 2 + + + + + + + 20 + + @@ -144,53 +142,56 @@ - - - - - 5 - - - 15 - - - 10 - - - Qt::Orientation::Horizontal - - - QSlider::TickPosition::TicksBelow - - - 1 - - - - - - - 10 - - - - + + + 5 + + + 15 + + + 10 + + + Qt::Orientation::Horizontal + + + QSlider::TickPosition::TicksBelow + + + 1 + + - + + + + 10 + + + + Use Quickseek - + Use Anti-Aliasing Filter - + + + + Qt::Orientation::Vertical + + + + QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::RestoreDefaults diff --git a/src/duckstation-qt/biossettingswidget.ui b/src/duckstation-qt/biossettingswidget.ui index 68578679d..4e0c04434 100644 --- a/src/duckstation-qt/biossettingswidget.ui +++ b/src/duckstation-qt/biossettingswidget.ui @@ -145,7 +145,7 @@ Parallel Port - + @@ -153,31 +153,34 @@ - - + + + + + 0 + 0 + + + - - - - - - Image Path: - - - - - - - - - - Browse... - - - - + + + + Image Path: + + - + + + + + + + Browse... + + + + @@ -219,12 +222,6 @@ Qt::Orientation::Vertical - - - 20 - 1 - - diff --git a/src/duckstation-qt/coverdownloaddialog.ui b/src/duckstation-qt/coverdownloaddialog.ui index 577a3366e..1882c2a89 100644 --- a/src/duckstation-qt/coverdownloaddialog.ui +++ b/src/duckstation-qt/coverdownloaddialog.ui @@ -7,7 +7,7 @@ 0 0 720 - 380 + 480 @@ -25,10 +25,10 @@ - :/icons/black/svg/artboard-2-line.svg + :/icons/black/svg/artboard-2-line.svg - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop @@ -46,6 +46,12 @@ + + + 0 + 0 + + <html><head/><body><p>In the box below, specify the URLs to download covers from, with one template URL per line. The following variables are available:</p><p><span style=" font-style:italic;">${title}:</span> Title of the game.<br/><span style=" font-style:italic;">${filetitle}:</span> Name component of the game's filename.<br/><span style=" font-style:italic;">${serial}:</span> Serial of the game.</p><p><span style=" font-weight:700;">Example:</span> https://www.example-not-a-real-domain.com/covers/${serial}.jpg</p></body></html> @@ -59,6 +65,12 @@ + + + 0 + 0 + + By default, the downloaded covers will be saved with the game's title. If this is not desired, you can check the "Use Serial File Names" box below. Using serials instead of game titles will prevent conflicts when multiple regions of the same game are used. @@ -111,7 +123,7 @@ - + - \ No newline at end of file +