fix(theme): prevent panel element headings from being clipped #334
Reference in New Issue
Block a user
Delete Branch "fix/theme-panel-heading-clipping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Panel element headings (QGroupBox titles, QSint::ActionGroup headers, QDockWidget title bars) were clipped — only the top ~60% of heading text was visible.
Root Cause
Three QSS issues in KindredCreate.qss:
margin-top: 12pxwas insufficient for the title rendered viasubcontrol-origin: margin. The title text didn't have enough vertical space in the margin area.min-height: 18pxconflicted withpadding: 8px 6px, constraining the content area so text was clipped.min-height: 18pxforced a minimum height that was then clipped by the C++setFixedHeight(headerSize)calculation inactionpanelscheme.cpp.Changes
margin-topfrom12pxto16px2pxvertical padding (padding: 0 4px->padding: 2px 4px)min-height: 18px— let Qt auto-size from padding + font metricsmin-heightto0pxso the C++ layout controls sizingCloses #325