Tweak UI.

This commit is contained in:
Black Hat
2018-02-27 19:37:53 +08:00
parent 5b1047ed98
commit fd5afa267c
4 changed files with 59 additions and 70 deletions

View File

@@ -80,53 +80,35 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter
}
RowLayout {
TextField {
id: serverField
width: parent.width
height: 48
spacing: 0
placeholderText: "Server"
leftPadding: 16
topPadding: 0
bottomPadding: 0
Text {
text: "@"
horizontalAlignment: Text.AlignHCenter
Layout.preferredWidth: parent.width * 0.05
background: Rectangle {
color: "#eaeaea"
border.color: parent.activeFocus ? Material.accent : "transparent"
border.width: 2
}
}
TextField {
id: usernameField
Layout.preferredWidth: parent.width * 0.45
Layout.fillHeight: true
placeholderText: "Username"
leftPadding: 16
topPadding: 0
bottomPadding: 0
TextField {
id: usernameField
width: parent.width
height: 48
placeholderText: "Username"
leftPadding: 16
topPadding: 0
bottomPadding: 0
background: Rectangle {
color: "#eaeaea"
border.color: parent.activeFocus ? Material.accent : "transparent"
border.width: 2
}
}
Text {
text: ":"
horizontalAlignment: Text.AlignHCenter
Layout.preferredWidth: parent.width * 0.05
}
TextField {
id: serverField
Layout.preferredWidth: parent.width * 0.45
Layout.fillHeight: true
placeholderText: "Server"
leftPadding: 16
topPadding: 0
bottomPadding: 0
background: Rectangle {
color: "#eaeaea"
border.color: parent.activeFocus ? Material.accent : "transparent"
border.width: 2
}
background: Rectangle {
color: "#eaeaea"
border.color: parent.activeFocus ? Material.accent : "transparent"
border.width: 2
}
}

View File

@@ -19,6 +19,8 @@ ApplicationWindow {
Controller {
id: controller
onIsLoginChanged: console.log("Status:", isLogin)
}
Settings {
@@ -136,8 +138,4 @@ ApplicationWindow {
}
}
Component.onCompleted: {
controller.init()
}
}