summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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