Problem
Several buttons, spinboxes, and combo boxes are too small or have cropped text on macOS. Likely also affects some Linux desktop environments. Root cause: missing minimum size constraints and very tight padding in .ui files.
Affected widgets
Workbench (workbench.ui)
| Widget |
Name |
Issue |
| Vmin/Vmax spinboxes |
sbVmin, sbVmax |
No minimumSize, too thin on macOS |
| Color map dropdown |
cbColorMapSelect_2d |
No minimumSize |
| Frame prev/next buttons |
btn_prev_frame, btn_next_frame |
maxWidth: 30px, no min-height, arrow text "◀▶" gets clipped |
PVA Workflow Setup config tab (workflow.ui)
| Widget |
Name |
Issue |
| Refresh button |
buttonRefreshDb |
padding: 1px 6px — too tight |
| Expand All / Collapse All |
buttonExpandAll, buttonCollapseAll |
maxWidth: 32px, padding: 1px 6px |
| Add Top Level Key |
buttonAddTopLevel |
maxWidth: 60px, padding: 1px 8px, font-size: 8pt |
Global theme (theme.qss)
- No generic
QComboBox or QPushButton min-height rules
Proposed fix
- Add
min-height: 28px to generic QComboBox and small QPushButton in theme.qss
- Increase padding on tight buttons from
1px 6px → 4px 8px
- Bump
maxWidth on frame nav buttons from 30px → 36px
- Add explicit
minimumHeight to spinboxes and combo boxes in workbench.ui
- Test on macOS and Linux
Context
Reported during dev-peco branch testing. Separate from the color centralization work.
Problem
Several buttons, spinboxes, and combo boxes are too small or have cropped text on macOS. Likely also affects some Linux desktop environments. Root cause: missing minimum size constraints and very tight padding in
.uifiles.Affected widgets
Workbench (
workbench.ui)sbVmin,sbVmaxcbColorMapSelect_2dbtn_prev_frame,btn_next_framemaxWidth: 30px, no min-height, arrow text "◀▶" gets clippedPVA Workflow Setup config tab (
workflow.ui)buttonRefreshDbpadding: 1px 6px— too tightbuttonExpandAll,buttonCollapseAllmaxWidth: 32px,padding: 1px 6pxbuttonAddTopLevelmaxWidth: 60px,padding: 1px 8px,font-size: 8ptGlobal theme (
theme.qss)QComboBoxorQPushButtonmin-height rulesProposed fix
min-height: 28pxto genericQComboBoxand smallQPushButtonintheme.qss1px 6px→4px 8pxmaxWidthon frame nav buttons from30px→36pxminimumHeightto spinboxes and combo boxes in workbench.uiContext
Reported during
dev-pecobranch testing. Separate from the color centralization work.