From ba689faf16ba6dcb13e6fd1d9dc252040a2aa69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 5 Jun 2012 03:31:04 +0200 Subject: [PATCH] Fix warnings in color assignments --- .../plasmacomponents/platformcomponents/touch/TextArea.qml | 4 ++-- .../plasmacomponents/platformcomponents/touch/TextField.qml | 4 ++-- declarativeimports/plasmacomponents/qml/TextArea.qml | 2 +- declarativeimports/plasmacomponents/qml/TextField.qml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/TextArea.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/TextArea.qml index 244e8c394..b57f23e53 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/TextArea.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/TextArea.qml @@ -168,7 +168,7 @@ Item { font.weight: theme.defaultFont.weight font.wordSpacing: theme.defaultFont.wordSpacing //color: theme.viewTextColor - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) selectByMouse: verticalScroll.interactive onCursorPositionChanged: { @@ -245,4 +245,4 @@ Item { //print("Hiding..."); } } -} \ No newline at end of file +} diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml index 76aff68e7..3b4949e94 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml @@ -131,7 +131,7 @@ Item { visible: textInput.text == "" && !textField.activeFocus // XXX: using textColor and low opacity for theming placeholderText // color: theme.viewTextColor - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) opacity: 0.5 elide: Text.ElideRight clip: true @@ -163,7 +163,7 @@ Item { } selectByMouse: true passwordCharacter: "•" - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) //color: theme.textColor enabled: textField.enabled clip: true diff --git a/declarativeimports/plasmacomponents/qml/TextArea.qml b/declarativeimports/plasmacomponents/qml/TextArea.qml index f82842e27..f1df795ef 100644 --- a/declarativeimports/plasmacomponents/qml/TextArea.qml +++ b/declarativeimports/plasmacomponents/qml/TextArea.qml @@ -298,7 +298,7 @@ Item { font.underline: theme.defaultFont.underline font.weight: theme.defaultFont.weight font.wordSpacing: theme.defaultFont.wordSpacing - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) //color: theme.viewTextColor selectByMouse: verticalScroll.interactive diff --git a/declarativeimports/plasmacomponents/qml/TextField.qml b/declarativeimports/plasmacomponents/qml/TextField.qml index 1230d33a1..55449ed5d 100644 --- a/declarativeimports/plasmacomponents/qml/TextField.qml +++ b/declarativeimports/plasmacomponents/qml/TextField.qml @@ -273,7 +273,7 @@ FocusScope { visible: textInput.text == "" && !textField.activeFocus // XXX: using textColor and low opacity for theming placeholderText //color: theme.viewTextColor - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) opacity: 0.5 elide: Text.ElideRight clip: true @@ -301,7 +301,7 @@ FocusScope { } passwordCharacter: "•" selectByMouse: true - color: Qt.color("black") + color: Qt.rgba(0,0,0,1) // color: theme.textColor enabled: textField.enabled clip: true