Use rgba color with 0.5 alpha channel for placeholder text

Changelog: Fix placeholder text in textfields being too strong when using a light theme

REVIEW: 121724
This commit is contained in:
Kai Uwe Broulik 2014-12-28 21:32:42 +01:00
parent 8a68da469c
commit cf6cd3297c

View File

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