Hardcode the color/style for combobox popup.

This commit is contained in:
Adam Treat 2023-04-23 08:04:27 -04:00
parent 2f48faf9d7
commit 652e00ea15

View File

@ -67,6 +67,39 @@ Window {
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
}
delegate: ItemDelegate {
width: comboBox.width
contentItem: Text {
text: modelData
color: "#d1d5db"
font: control.font
elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
}
background: Rectangle {
color: highlighted ? "#343541" : "#242528"
}
highlighted: comboBox.highlightedIndex === index
}
popup: Popup {
y: comboBox.height - 1
width: comboBox.width
implicitHeight: contentItem.implicitHeight
padding: 0
contentItem: ListView {
clip: true
implicitHeight: contentHeight
model: comboBox.popup.visible ? comboBox.delegateModel : null
currentIndex: comboBox.highlightedIndex
ScrollIndicator.vertical: ScrollIndicator { }
}
background: Rectangle {
color: "#242528"
}
}
background: Rectangle {
color: "#242528"
}