ui: Origin dropdown height should match workbench dropdown height #231

Closed
opened 2026-02-15 00:35:28 +00:00 by forbes · 0 comments
Owner

Summary

The Origin selector dropdown (OriginSelectorWidget, a QToolButton) renders at a different visual height than the Workbench selector dropdown (WorkbenchComboBox, a QComboBox) in the toolbar. They should have the same height for visual consistency.

Current State

Both widgets are styled in src/Gui/Stylesheets/KindredCreate.qss with padding: 4px 8px but no explicit height constraint. Because QToolButton and QComboBox have different intrinsic size hints, they render at different heights.

WorkbenchComboBox (lines 1183-1199):

Gui--WorkbenchComboBox {
    background-color: #313244;
    color: #cdd6f4;
    border: 1px solid #45475a;
    border-radius: 4px;
    padding: 4px 8px;
}

OriginSelectorWidget (lines 1202-1210):

Gui--OriginSelectorWidget {
    background-color: #313244;
    color: #cdd6f4;
    border: 1px solid #45475a;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 70px;
    max-width: 120px;
}

Additionally, OriginSelectorWidget::setupUi() in src/Gui/OriginSelectorWidget.cpp sets setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed) but no explicit height.

Proposed Fix

Add matching min-height / max-height to both widgets in KindredCreate.qss, or set a fixed height in the OriginSelectorWidget::setupUi() to match the WorkbenchComboBox rendered height. The origin widget should follow the workbench dropdown's height.

Affected Files

  • src/Gui/Stylesheets/KindredCreate.qss — widget styling (lines 1183-1221)
  • src/Gui/OriginSelectorWidget.cppsetupUi() size configuration
## Summary The Origin selector dropdown (`OriginSelectorWidget`, a `QToolButton`) renders at a different visual height than the Workbench selector dropdown (`WorkbenchComboBox`, a `QComboBox`) in the toolbar. They should have the same height for visual consistency. ## Current State Both widgets are styled in `src/Gui/Stylesheets/KindredCreate.qss` with `padding: 4px 8px` but no explicit height constraint. Because `QToolButton` and `QComboBox` have different intrinsic size hints, they render at different heights. **WorkbenchComboBox** (lines 1183-1199): ```qss Gui--WorkbenchComboBox { background-color: #313244; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; padding: 4px 8px; } ``` **OriginSelectorWidget** (lines 1202-1210): ```qss Gui--OriginSelectorWidget { background-color: #313244; color: #cdd6f4; border: 1px solid #45475a; border-radius: 4px; padding: 4px 8px; min-width: 70px; max-width: 120px; } ``` Additionally, `OriginSelectorWidget::setupUi()` in `src/Gui/OriginSelectorWidget.cpp` sets `setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)` but no explicit height. ## Proposed Fix Add matching `min-height` / `max-height` to both widgets in `KindredCreate.qss`, or set a fixed height in the `OriginSelectorWidget::setupUi()` to match the `WorkbenchComboBox` rendered height. The origin widget should follow the workbench dropdown's height. ## Affected Files - `src/Gui/Stylesheets/KindredCreate.qss` — widget styling (lines 1183-1221) - `src/Gui/OriginSelectorWidget.cpp` — `setupUi()` size configuration
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#231