Commit 29548be5 authored by Leander Schulten's avatar Leander Schulten

UI: Replace 'lightgreen' in TextInputFields with the current accent color

parent d72ff91c
Pipeline #199371 passed with stage
in 6 minutes and 14 seconds
......@@ -7,11 +7,11 @@ TextInput{
color: Material.foreground
selectByMouse: true
font.pixelSize: 15
selectionColor: "lightgreen"
selectionColor: Material.textSelectionColor
property alias underlineColor : underline.color
property alias underline: underline
cursorDelegate: Rectangle{
color: "lightgreen"
color: Material.accentColor
x:parent.cursorRectangle.x
y:parent.cursorRectangle.y
width:parent.cursorRectangle.width+1
......
import QtQuick 2.2
import QtQuick 2.12
import QtQuick.Controls.Material 2.12
Rectangle{
id:underline
......@@ -9,7 +10,7 @@ Rectangle{
width: parent.contentWidth+extendetWidth
height: 2
radius: 1
color: parent.enabled?"lightgreen":"lightgrey"
color: parent.enabled ? Material.accentColor : Material.hintTextColor
//property bool hasFocus
Behavior on width {
NumberAnimation { easing.type: Easing.OutExpo; easing.amplitude: 5.0; easing.period: 2.0; duration: 800 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment