Commit 0788338b authored by Chupligin Sergey's avatar Chupligin Sergey

[TextField] fix issue #4

parent 48057b7a
...@@ -65,36 +65,36 @@ Page { ...@@ -65,36 +65,36 @@ Page {
headerTools: HeaderToolsLayout { showBackButton: true; title: "Text input" } headerTools: HeaderToolsLayout { showBackButton: true; title: "Text input" }
Column { Column {
spacing: 40 spacing: size.dp(40)
anchors.centerIn: parent anchors.centerIn: parent
TextField { TextField {
anchors.margins: 20 anchors.margins: size.dp(20)
text: "Text input" text: "Text input"
//style: touchStyle //style: touchStyle
} }
TextField { TextField {
anchors.margins: 20 anchors.margins: size.dp(20)
text: "Readonly Text input" text: "Readonly Text input"
//style: touchStyle //style: touchStyle
readOnly: true readOnly: true
} }
TextField { TextField {
anchors.margins: 20 anchors.margins: size.dp(20)
text: "Disabled textfield" text: "Disabled textfield"
enabled: false enabled: false
} }
TextField { TextField {
anchors.margins: 20 anchors.margins: size.dp(20)
text: "Text input" text: "Text input"
style: touchStyle style: touchStyle
} }
TextField { TextField {
anchors.margins: 20 anchors.margins: size.dp(20)
text: "Readonly Text input" text: "Readonly Text input"
style: touchStyle style: touchStyle
readOnly: true readOnly: true
...@@ -107,14 +107,14 @@ Page { ...@@ -107,14 +107,14 @@ Page {
TextFieldStyle { TextFieldStyle {
textColor: "white" textColor: "white"
font.pixelSize: 28 font.pixelSize: size.dp(28)
background: Item { background: Item {
implicitHeight: 50 implicitHeight: size.dp(50)
implicitWidth: 320 implicitWidth: size.dp(320)
BorderImage { BorderImage {
source: "../images/textinput.png" source: "../images/textinput.png"
border.left: 8 border.left: size.dp(8)
border.right: 8 border.right: size.dp(8)
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
......
...@@ -27,9 +27,12 @@ TextFieldStyle { ...@@ -27,9 +27,12 @@ TextFieldStyle {
textColor: Theme.textField.selectedTextColor textColor: Theme.textField.selectedTextColor
font.pointSize: size.dp(14) font.pointSize: size.dp(14)
font.family: Theme.textField.font font.family: Theme.textField.font
background: Item { background: Item {
anchors.leftMargin: size.dp(16) anchors.leftMargin: size.dp(16)
anchors.rightMargin: size.dp(16) anchors.rightMargin: size.dp(16)
implicitHeight: size.dp(50)
implicitWidth: size.dp(320)
opacity: control.enabled ? 1 : 0.6 opacity: control.enabled ? 1 : 0.6
Image { Image {
anchors.fill: parent anchors.fill: parent
......
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