1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-30 01:02:29 +00:00

Add style command && applied new style format to existing code && setup tests plugins

This commit is contained in:
2019-03-21 11:22:12 +01:00
parent aa4018c680
commit 7dc320f8ce
30 changed files with 355 additions and 267 deletions

View File

@ -8,23 +8,25 @@ PageHeader {
title: i18n.tr("UTPass")
contents: Item {
height : parent.height
height: parent.height
width: parent.width
Label {
id : labelTitle
id: labelTitle
text: mainHeader.title
anchors.verticalCenter: parent.verticalCenter
visible: true
}
TextField {
id: searchBar
anchors.right : parent.right
anchors.left : parent.left
anchors.right: parent.right
anchors.left: parent.left
placeholderText: i18n.tr("Search")
height: units.gu(4)
visible: false
anchors.verticalCenter: parent.verticalCenter
onFocusChanged: {}
onFocusChanged: {
}
}
}
@ -35,8 +37,8 @@ PageHeader {
iconName: "search"
text: i18n.tr("Search")
onTriggered: {
searchBar.visible = !searchBar.visible;
labelTitle.visible = !searchBar.visible;
searchBar.visible = !searchBar.visible
labelTitle.visible = !searchBar.visible
if (searchBar.visible === true) {
searchBar.focus = true
}
@ -57,4 +59,4 @@ PageHeader {
}
}
]
}
}

View File

@ -8,10 +8,10 @@ PageHeader {
title: i18n.tr("UTPass")
contents: Item {
height : parent.height
height: parent.height
width: parent.width
Label {
id : labelTitle
id: labelTitle
text: stackHeader.title
anchors.verticalCenter: parent.verticalCenter
}