diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-07-25 14:33:29 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-08-09 14:45:41 +0000 |
commit | 6e8533b741f4fd527f17d17e7730489661ae91a5 (patch) | |
tree | a79c2db8fdebef5a383cf9bb356167b3ce5e3af0 | |
parent | b172b30368bafc839b92f767324496a509267fc7 (diff) |
Material ComboBox: fix white text on white background
Task-number: QTBUG-54935
Change-Id: I3be56bb67a7decf11434de64343f25af3a59bd1f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r-- | src/imports/controls/material/ComboBox.qml | 3 |
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 |