[4.7.0] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows#33337
Conversation
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
📝 WalkthroughWalkthroughThis PR modifies the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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: 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
📒 Files selected for processing (1)
src/notationscene/qml/MuseScore/NotationScene/styledialog/ComboBoxDropdown.qml
3beafd6 to
60d4b4b
Compare
|
Tested on MacOS Tahoe 26.2, Windows 11, Ubuntu 22.04.3. Approved |
Resolves: #32000