Proper color for placeholder text in TextFieldStyle

Fixes unreadable placeholder text in TextField with dark themes.

Reviewed-by:Kai Uwe Broulik
This commit is contained in:
Sebastian Kügler 2014-10-01 18:02:28 +02:00
parent 43e3359c68
commit cccfdf5a9e

View File

@ -31,6 +31,7 @@ QtQuickControlStyle.TextFieldStyle {
textColor: theme.viewTextColor textColor: theme.viewTextColor
selectionColor: theme.viewFocusColor selectionColor: theme.viewFocusColor
selectedTextColor: theme.viewBackgroundColor selectedTextColor: theme.viewBackgroundColor
placeholderTextColor: Qt.tint(theme.viewTextColor, "#80000000")
background: Item { background: Item {
implicitHeight: theme.mSize(theme.defaultFont).height * 1.6 implicitHeight: theme.mSize(theme.defaultFont).height * 1.6