Skip to content

[4.7.0] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows#33337

Merged
RomanPudashkin merged 1 commit into
musescore:4.7from
RomanPudashkin:fix_style_dialog_combobox_470
May 13, 2026
Merged

[4.7.0] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows#33337
RomanPudashkin merged 1 commit into
musescore:4.7from
RomanPudashkin:fix_style_dialog_combobox_470

Conversation

@RomanPudashkin
Copy link
Copy Markdown
Contributor

Resolves: #32000

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@RomanPudashkin
Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR modifies the ComboBoxDropdown QML component to implement a custom popup instead of relying on default behavior. The popup constrains its width to match the combo box width and its height to the smaller of the content height or available window space. The popup removes default padding, applies the theme's accent color as the background, and renders dropdown items through a StyledListView component wired to the combo box's delegate model with selection driven by the highlighted index.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description is minimal but complies with the template by including the resolved issue link; however, it lacks detail about the change and only partially fills the PR template.
Linked Issues check ✅ Passed The code change implements a custom ComboBox popup with theme-aware background color to fix the dark dropdown appearance on Windows light mode, directly addressing issue #32000.
Out of Scope Changes check ✅ Passed The change is narrowly scoped to ComboBoxDropdown.qml with only 18 lines added to customize the popup styling, directly relevant to fixing the reported dropdown color issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately describes the main change: fixing dropdown menu colors on Windows. It directly references the issue (#32000) and specifies the UI problem being resolved.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@src/notationscene/qml/MuseScore/NotationScene/styledialog/ComboBoxDropdown.qml`:
- Around line 147-149: Change the popup background color to use the neutral
button color instead of the accent/brand color: in the ComboBoxDropdown QML
component replace the background Rectangle's color reference from
ui.theme.accentColor to ui.theme.buttonColor so the popup background matches the
combobox button and delegate items (ensure the same token used at the combobox
button and delegate is applied to the background Rectangle).
- Line 143: The popup height cap currently uses comboDropdown.Window.height
which ignores the combobox Y offset; fix by computing available space above and
below the combobox in window coordinates and cap to the larger of those spaces.
In ComboBoxDropdown.qml replace use of comboDropdown.Window.height with a
calculation using comboDropdown.mapToItem(null, 0, 0).y (or
comboDropdown.mapToGlobal if you need screen coords) to get the combobox top in
window/screen space, then compute availableBottom = comboDropdown.Window.height
- comboboxY and availableTop = comboboxY, and set height:
Math.min(contentItem.implicitHeight, Math.max(availableTop, availableBottom)) so
the popup never exceeds visible area.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e168b687-fb46-459b-bd85-f28e45b67ff7

📥 Commits

Reviewing files that changed from the base of the PR and between 98ab667 and 3beafd6.

📒 Files selected for processing (1)
  • src/notationscene/qml/MuseScore/NotationScene/styledialog/ComboBoxDropdown.qml

@RomanPudashkin RomanPudashkin force-pushed the fix_style_dialog_combobox_470 branch from 3beafd6 to 60d4b4b Compare May 8, 2026 14:53
@RomanPudashkin RomanPudashkin requested a review from miiizen May 8, 2026 14:54
@zacjansheski
Copy link
Copy Markdown
Contributor

Tested on MacOS Tahoe 26.2, Windows 11, Ubuntu 22.04.3. Approved
#32000 FIXED

@RomanPudashkin RomanPudashkin changed the title [4.7.1] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows [4.7.0] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows May 13, 2026
@RomanPudashkin RomanPudashkin merged commit 3be2d80 into musescore:4.7 May 13, 2026
13 checks passed
@RomanPudashkin RomanPudashkin deleted the fix_style_dialog_combobox_470 branch May 13, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some Style Dropdown menus colors a bit dark on Windows: Light Mode

3 participants