[desktop] Fix misaligned output device (#2786)

Builder::BuildWidget previously relied on Qt to handle layout stretching
by implicitly setting each widget to have a stretch of 0. This is very
bad behavior, so to fix this we must set a stretch of 1 on each widget
that's added by the builder

furthermore, default and default_dark did not properly define a min-width or min-height for QComboBox. This caused the platform theme to take over sizing which is NOT GOOD and should basically be avoided always

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2786
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
crueter 2025-10-20 04:08:38 +02:00
parent 2e9dbe3f1d
commit 54d6283ac3
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
4 changed files with 17 additions and 4 deletions

View file

@ -2,6 +2,12 @@ QAbstractSpinBox {
min-height: 19px;
}
QComboBox {
padding: 0px 4px 0px 4px;
min-width: 60px;
min-height: 19px;
}
QPushButton#TogglableStatusBarButton {
color: #959595;
border: 1px solid transparent;

View file

@ -6,6 +6,12 @@ QAbstractSpinBox {
min-height: 19px;
}
QComboBox {
padding: 0px 4px 0px 4px;
min-width: 60px;
min-height: 19px;
}
QPushButton#TogglableStatusBarButton {
color: #959595;
border: 1px solid transparent;