mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Update styling of qt launcher
This commit is contained in:
parent
9abc9f5f70
commit
22c96e7822
5 changed files with 24 additions and 14 deletions
|
@ -53,16 +53,15 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
HFTextRegular {
|
||||
HFTextError {
|
||||
id: error
|
||||
|
||||
width: 425
|
||||
height: 22
|
||||
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
color: "#FF9999"
|
||||
|
||||
visible: LauncherState.lastSignupErrorMessage.length > 0
|
||||
text: LauncherState.lastSignupErrorMessage
|
||||
anchors {
|
||||
|
@ -167,9 +166,6 @@ Item {
|
|||
|
||||
|
||||
Text {
|
||||
width: 214
|
||||
height: 12
|
||||
|
||||
text: "Already have an account?"
|
||||
font.family: "Graphik"
|
||||
font.pixelSize: 14
|
||||
|
@ -177,13 +173,15 @@ Item {
|
|||
|
||||
anchors {
|
||||
top: button.bottom
|
||||
topMargin: 19
|
||||
topMargin: 16
|
||||
left: button.left
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
||||
onClicked: {
|
||||
console.log("clicked");
|
||||
LauncherState.gotoLogin();
|
||||
|
|
|
@ -48,7 +48,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
HFTextRegular {
|
||||
HFTextError {
|
||||
id: error
|
||||
width: 425
|
||||
height: 22
|
||||
|
@ -56,8 +56,6 @@ Item {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
color: "#FF9999"
|
||||
|
||||
visible: LauncherState.lastLoginErrorMessage.length > 0
|
||||
text: LauncherState.lastLoginErrorMessage
|
||||
anchors {
|
||||
|
@ -141,9 +139,6 @@ Item {
|
|||
}
|
||||
|
||||
Text {
|
||||
width: 214
|
||||
height: 12
|
||||
|
||||
text: "Create New Account"
|
||||
font.family: "Graphik"
|
||||
font.pixelSize: 14
|
||||
|
@ -151,13 +146,15 @@ Item {
|
|||
|
||||
anchors {
|
||||
top: button.bottom
|
||||
topMargin: 19
|
||||
topMargin: 16
|
||||
left: button.left
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
||||
onClicked: {
|
||||
console.log("clicked");
|
||||
LauncherState.gotoSignup();
|
||||
|
|
|
@ -31,4 +31,11 @@ Button {
|
|||
verticalAlignment: Text.AlignVCenter
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
anchors.fill: parent
|
||||
onPressed: mouse.accepted = false
|
||||
}
|
||||
}
|
||||
|
|
7
launchers/qt/resources/qml/HFControls/HFTextError.qml
Normal file
7
launchers/qt/resources/qml/HFControls/HFTextError.qml
Normal file
|
@ -0,0 +1,7 @@
|
|||
import QtQuick 2.3
|
||||
import QtQuick 2.1
|
||||
|
||||
HFTextRegular {
|
||||
color: "#FF9999"
|
||||
}
|
||||
|
|
@ -41,6 +41,7 @@ TextField {
|
|||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
if (control.echoMode === TextInput.Password) {
|
||||
control.echoMode = TextInput.Normal;
|
||||
|
|
Loading…
Reference in a new issue