Skip to content

FIX(client, macos): Add missing theme changes - #6925

Merged
Hartmnt merged 1 commit into
mumble-voip:masterfrom
Hartmnt:fix_osxtheme
Sep 25, 2025
Merged

Hartmnt merged 1 commit into
mumble-voip:masterfrom
Hartmnt:fix_osxtheme

Conversation

@Hartmnt

@Hartmnt Hartmnt commented Sep 17, 2025

Copy link
Copy Markdown
Member

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

This commit adds the missing changes to the macOS theme files
that were introduced in the following commits:

a93a405
67be07b
bef61ab
@coderabbitai

coderabbitai Bot commented Sep 17, 2025 •

Copy link
Copy Markdown

Walkthrough

Updates 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)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description does not include the required “### Checks” section with the commit guideline checklist as specified by the repository template, and it omits the template structure entirely. Please add the “### Checks” section from the repository template and include at least the checkbox item for following the commit guidelines to ensure compliance with the required description format.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title follows the conventional commit format with a clear scope and succinctly describes the primary change of adding the missing theme updates for the macOS client, accurately reflecting the modifications made to the theme files.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between cc6e0ad and 3fed054.

📒 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/Lite

Auto-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.

@Krzmbrzl

Copy link
Copy Markdown
Member

💚 All backports created successfully

Status Branch Result
✅ 1.5.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Hartmnt added a commit that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants