fix(theme): prevent panel element headings from being clipped
All checks were successful
Build and Test / build (pull_request) Successful in 29m23s

Three QSS issues caused headings to render with only the top ~60%
visible:

- QGroupBox: margin-top 12px was insufficient for the title rendered
  in subcontrol-origin: margin. Increased to 16px and added 2px
  vertical padding to the title.
- QDockWidget::title: min-height 18px conflicted with padding 8px 6px,
  constraining the content area. Removed min-height to let Qt auto-size
  from padding + font metrics.
- QSint--ActionGroup QToolButton: min-height 18px forced a height that
  was then clipped by the C++ setFixedHeight(headerSize) calculation.
  Set min-height to 0px so the C++ layout controls sizing.

Closes #325
This commit is contained in:
2026-02-26 08:48:01 -06:00
parent 82f2422285
commit 311d911cfa

View File

@@ -251,7 +251,6 @@ QDockWidget::title {
text-align: left; text-align: left;
padding: 8px 6px; padding: 8px 6px;
border-bottom: 1px solid #313244; border-bottom: 1px solid #313244;
min-height: 18px;
} }
QDockWidget::close-button, QDockWidget::close-button,
@@ -733,7 +732,7 @@ QGroupBox {
background-color: #1e1e2e; background-color: #1e1e2e;
border: 1px solid #45475a; border: 1px solid #45475a;
border-radius: 6px; border-radius: 6px;
margin-top: 12px; margin-top: 16px;
padding-top: 8px; padding-top: 8px;
} }
@@ -741,7 +740,7 @@ QGroupBox::title {
subcontrol-origin: margin; subcontrol-origin: margin;
subcontrol-position: top left; subcontrol-position: top left;
left: 12px; left: 12px;
padding: 0 4px; padding: 2px 4px;
color: #bac2de; color: #bac2de;
background-color: #1e1e2e; background-color: #1e1e2e;
} }
@@ -1234,7 +1233,7 @@ QSint--ActionGroup QToolButton {
border: none; border: none;
border-radius: 4px; border-radius: 4px;
padding: 8px 6px; padding: 8px 6px;
min-height: 18px; min-height: 0px;
} }
QSint--ActionGroup QToolButton:hover { QSint--ActionGroup QToolButton:hover {