Repository navigation
FIX(client, macos): Add missing theme changes - #6925
Conversation
WalkthroughUpdates in both OSX Dark and Lite QSS themes adjust QMenu item padding/indents, add scoped styles for QMenu QLabel and QSlider, and set QMenu::icon left offsets. QMenu::indicator is standardized to a smaller 12×12 size with padding-top and right margin, with specific left offsets per theme. QTreeView::branch receives explicit background colors and switches from margins to padding for spacing. Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (6)
themes/Default/OSX Dark.qss (3)
206-211: Make right padding consistent with QMenu::item.QMenu QLabel uses padding-right: 8px while items use 16px; align for consistent edge spacing.
Apply:
QMenu QLabel { margin: 0px; padding: 5px; - padding-right: 8px; + padding-right: 16px; padding-left: 25px; }
218-220: Align icon vs. indicator left offsets.Icon is left: 4px; indicator is left: 6px. That 2px mismatch can cause visual misalignment between checked items and iconed items.
Pick one:
QMenu::icon { - left: 4px; + left: 6px; }or
QMenu::indicator { - left: 6px; + left: 4px; }
741-745: Add disabled-checked state for QMenu indicators.Currently only QCheckBox and QTreeView handle :checked:disabled. Add QMenu for parity.
-QCheckBox::indicator:checked:disabled, -QTreeView::indicator:checked:disabled { +QCheckBox::indicator:checked:disabled, +QMenu::indicator:checked:disabled, +QTreeView::indicator:checked:disabled { border: 1px solid transparent; image: url(skin:controls/checkbox_check_disabled.svg); }themes/Default/OSX Lite.qss (3)
206-211: Match right padding with QMenu::item.Use 16px on QLabel for consistent right edge spacing.
QMenu QLabel { margin: 0px; padding: 5px; - padding-right: 8px; + padding-right: 16px; padding-left: 25px; }
218-220: Normalize icon vs. indicator left offsets.Icon left: 4px vs indicator left: 6px — recommend matching for visual alignment.
QMenu::icon { - left: 4px; + left: 6px; }or
QMenu::indicator { - left: 6px; + left: 4px; }
741-745: Add QMenu to disabled-checked selector.Parity with checkbox/tree desired.
-QCheckBox::indicator:checked:disabled, -QTreeView::indicator:checked:disabled { +QCheckBox::indicator:checked:disabled, +QMenu::indicator:checked:disabled, +QTreeView::indicator:checked:disabled { border: 1px solid transparent; image: url(skin:controls/checkbox_check_disabled.svg); }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
themes/Default/OSX Dark.qss(3 hunks)themes/Default/OSX Lite.qss(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: build (ubuntu-24.04, shared, 64bit)
- GitHub Check: build (ubuntu-22.04, shared, 64bit)
- GitHub Check: PR (macOS)
- GitHub Check: PR (Linux)
- GitHub Check: PR (Docs)
- GitHub Check: PR (Windows_x64)
- GitHub Check: PR (Translations)
- GitHub Check: CodeQL-Build (ubuntu-latest)
- GitHub Check: freebsd
- GitHub Check: pr-checks (ubuntu-latest)
🔇 Additional comments (9)
themes/Default/OSX Dark.qss (5)
200-202: Menu item padding change looks good; please sanity-check overlap with checkmarks/icons.Reducing left padding to 8px aligns with the new 12px indicator; just verify that checkable items and items with icons don’t have text overlap on macOS.
213-216: Scoped slider padding in menus — LGTM.Matches intent and avoids crowding.
389-395: Branch spacing switch to padding — LGTM.Padding-top: 1px and background-color update are reasonable; confirm there’s no first-row clipping.
721-727: Indicator size reduction — LGTM; check text layout with reduced left padding.12×12 plus margin-right: 8px is fine; just verify long labels don’t collide with submenu arrows.
206-211: Confirm QMenu icon/indicator/item paddings match between OSX Dark/LiteAuto-inspection hit awk parsing errors; grep shows the QMenu QLabel block with padding-right: 8px and padding-left: 25px around lines ~200–211 in both themes — verify that QMenu::icon, QMenu::indicator, and QMenu::item numeric paddings/positions are identical in themes/Default/OSX Dark.qss and themes/Default/OSX Lite.qss (also check lines 218–220 and 721–727).
themes/Default/OSX Lite.qss (4)
200-202: Menu item padding change — LGTM; verify no overlap.Same concern as Dark: confirm text doesn’t clash with indicators/icons on macOS.
213-216: Menu-scoped slider padding — LGTM.
389-395: Branch spacing change — LGTM.Switch to padding mirrors Dark; verify no top-row artifacts.
721-727: Indicator resize — LGTM; check long labels/submenu arrows.
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
This commit adds the missing changes to the macOS theme files that were introduced in the following commits:
a93a405 #5771
67be07b #5776
bef61ab #6774
Sorry to all macOS users 😅
ping @maxer137