From cf6cd3297cc90e653356549d707a7bed0c39d16b Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sun, 28 Dec 2014 21:32:42 +0100 Subject: [PATCH] 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 --- src/declarativeimports/plasmastyle/TextFieldStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmastyle/TextFieldStyle.qml b/src/declarativeimports/plasmastyle/TextFieldStyle.qml index 2e5b71860..e80b95cc3 100644 --- a/src/declarativeimports/plasmastyle/TextFieldStyle.qml +++ b/src/declarativeimports/plasmastyle/TextFieldStyle.qml @@ -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