Skip to content

Commit 3be2d80

Browse files
Merge pull request #33337 from RomanPudashkin/fix_style_dialog_combobox_470
[4.7.0] Fix #32000: Some Style Dropdown menus colors a bit dark on Windows
2 parents c806619 + 60d4b4b commit 3be2d80

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/notationscene/qml/MuseScore/NotationScene/styledialog/ComboBoxDropdown.qml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,24 @@ ComboBox {
138138
}
139139
}
140140

141+
popup: Popup {
142+
width: comboDropdown.width
143+
height: Math.min(contentItem.implicitHeight, comboDropdown.Window.height)
144+
145+
padding: 0
146+
147+
background: Rectangle {
148+
color: ui.theme.popupBackgroundColor
149+
}
150+
151+
contentItem: StyledListView {
152+
implicitHeight: contentHeight
153+
154+
model: comboDropdown.delegateModel
155+
currentIndex: comboDropdown.highlightedIndex
156+
}
157+
}
158+
141159
Component.onCompleted: function() {
142160
if (!styleItem) {
143161
return;

0 commit comments

Comments
 (0)