aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imports/controls/material/ComboBox.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/controls/material/ComboBox.qml b/src/imports/controls/material/ComboBox.qml
index 41ebedac..ad29dd22 100644
--- a/src/imports/controls/material/ComboBox.qml
+++ b/src/imports/controls/material/ComboBox.qml
@@ -56,6 +56,9 @@ T.ComboBox {
spacing: 6
padding: 16
+ // Don't use toolTextColor, as that is often white when we have a white background.
+ Material.foreground: Material.foreground === Material.toolTextColor ? undefined : Material.foreground
+
delegate: MenuItem {
width: control.width
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData