summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/StyledTextField.qml
blob: fdb61b7b8e55dcd2dbd1f8b831bf547cc9f7fac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

TextField {
	property bool fixed: false
	readOnly: fixed
	style: TextFieldStyle {
		background: Rectangle {
			color: fixed ? "transparent" : "white"
			radius: 4
			border.width: 0.5
			border.color: fixed ? "transparent" : "#c0c0c0"
		}
	}

}