summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2012-07-05 14:33:31 +0200
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2012-07-05 15:00:17 +0200
commit2596636d84192c26964e7fc6e833f962165c4c9f (patch)
treef806f98ddb409682906cd41f8b3e632827b4940e
parent8bc01ccf20b094880592b6c0e969afad74cc93ad (diff)
downloadqtquickcontrols-2596636d84192c26964e7fc6e833f962165c4c9f.tar.gz
Fix text highlight color
Change-Id: Icfcf99561129a09820c2d5ddf1972f11491adf0b Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
-rw-r--r--components/SpinBox.qml2
-rw-r--r--components/TextArea.qml2
-rw-r--r--components/TextField.qml2
3 files changed, 6 insertions, 0 deletions
diff --git a/components/SpinBox.qml b/components/SpinBox.qml
index 662a515a..8c07f596 100644
--- a/components/SpinBox.qml
+++ b/components/SpinBox.qml
@@ -199,6 +199,8 @@ FocusScope {
width: loader.inputRect.width
height: loader.inputRect.height
selectByMouse: true
+ selectionColor: syspal.highlight
+ selectedTextColor: syspal.highlightedText
// validator: DoubleValidator { bottom: minimumValue; top: maximumValue; }
onAccepted: {setValue(input.text)}
diff --git a/components/TextArea.qml b/components/TextArea.qml
index 05a2b77b..b5deaa9d 100644
--- a/components/TextArea.qml
+++ b/components/TextArea.qml
@@ -71,6 +71,8 @@ ScrollArea {
TextEdit {
id: edit
+ selectionColor: syspal.highlight
+ selectedTextColor: syspal.highlightedText
wrapMode: TextEdit.WordWrap;
width: area.viewportWidth - (2 * documentMargins)
x: documentMargins
diff --git a/components/TextField.qml b/components/TextField.qml
index da028a90..c0d7bf8f 100644
--- a/components/TextField.qml
+++ b/components/TextField.qml
@@ -166,6 +166,8 @@ FocusScope {
TextInput { // see QTBUG-14936
id: textInput
selectByMouse:true
+ selectionColor: syspal.highlight
+ selectedTextColor: syspal.highlightedText
// Todo move these margins to StyleItem
anchors.leftMargin: 4