Update qt launcher style and fix display name being set to anon

This commit is contained in:
Ryan Huffman 2019-10-03 12:16:18 -07:00
parent d1ca75dcc7
commit 9abc9f5f70
8 changed files with 49 additions and 104 deletions

View file

@ -1,5 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 2.1
import "HFControls"
Item {
id: root
@ -24,7 +25,7 @@ Item {
anchors {
top: root.top
topMargin: 48
topMargin: 98
horizontalCenter: root.horizontalCenter
}
@ -38,14 +39,10 @@ Item {
}
}
Text {
HFTextHeader {
id: firstText
width: 300
height: 41
font.family: "Graphik"
font.pixelSize: 28
text: "Setup will take a moment"
color: "#FFFFFF"
anchors {
top: logo.bottom
@ -54,16 +51,14 @@ Item {
}
}
Text {
HFTextRegular {
id: secondText
font.family: "Graphik"
font.pixelSize: 14
text: "We're getting your headquaters ready"
color: "#FFFFFF"
text: "We're getting everything setup for you."
anchors {
top: firstText.bottom
topMargin: 14
topMargin: 8
horizontalCenter: logo.horizontalCenter
}
}
@ -101,28 +96,6 @@ Item {
}
}
Text {
width: 100
height: 17
text: "High Fidelity"
font.bold: true
font.family: "Graphik"
font.pixelSize: 24
font.letterSpacing: -1
color: "#FFFFFF"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors {
bottom: root.bottom
bottomMargin: 15
left: root.left
leftMargin: 30
}
}
Component.onCompleted: {
root.parent.setStateInfoState("right");
root.parent.setBuildInfoState("left");

View file

@ -4,6 +4,7 @@ import "HFControls"
Item {
id: root
anchors.centerIn: parent
Image {
@ -17,7 +18,7 @@ Item {
}
Image {
Image {
id: logo
width: 132
height: 134
@ -25,21 +26,15 @@ Item {
anchors {
top: root.top
topMargin: 84
topMargin: 144
horizontalCenter: root.horizontalCenter
}
}
Text {
HFTextHeader {
id: header
width: 87
height: 31
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.family: "Graphik"
font.bold: true
font.pixelSize: 28
color: "#FFFFFF"
text: "You're all set!"
anchors {
top: logo.bottom
@ -48,13 +43,8 @@ Item {
}
}
Text {
HFTextRegular {
id: description
width: 100
height: 40
font.family: "Graphik"
font.pixelSize: 14
color: "#FFFFFF"
text: "We will see you in world."
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter

View file

@ -191,19 +191,7 @@ Item {
}
}
Text {
width: 100
height: 17
text: "High Fidelity"
font.bold: true
font.family: "Graphik"
font.pixelSize: 24
font.letterSpacing: -1
color: "#FFFFFF"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
HFTextLogo {
anchors {
bottom: root.bottom
bottomMargin: 46

View file

@ -26,20 +26,19 @@ Item {
anchors {
top: root.top
topMargin: 84
topMargin: 98
horizontalCenter: root.horizontalCenter
}
}
Text {
HFTextHeader {
id: header
width: 87
height: 31
font.family: "Graphik"
font.bold: true
font.pixelSize: 28
color: "#FFFFFF"
text: "Uh oh."
anchors {
top: logo.bottom
topMargin: 26
@ -47,16 +46,17 @@ Item {
}
}
Text {
HFTextRegular {
id: description
width: 100
height: 40
font.family: "Graphik"
font.pixelSize: 14
color: "#FFFFFF"
text: "We seem to have a problem.\n Please restart HQ Launcher"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors {
top: header.bottom
topMargin: 8
@ -69,8 +69,7 @@ Item {
id: button
width: 166
height: 35
font.family: "Graphik"
font.pixelSize: 18
text: "Restart"
anchors {
@ -85,19 +84,9 @@ Item {
}
Text {
HFTextLogo {
id: hifilogo
width: 100
height: 18
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.family: "Graphik"
font.pixelSize: 18
font.bold: true
color: "#FFFFFF"
text: "High Fidelity"
anchors {
right: root.right
rightMargin: 17

View file

@ -165,19 +165,7 @@ Item {
}
}
Text {
width: 100
height: 17
text: "High Fidelity"
font.bold: true
font.family: "Graphik"
font.pixelSize: 18
font.letterSpacing: -1
color: "#FFFFFF"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
HFTextLogo {
anchors {
bottom: root.bottom
bottomMargin: 58

View file

@ -0,0 +1,14 @@
import QtQuick 2.3
import QtQuick 2.1
Text {
width: 100
height: 17
text: "High Fidelity"
font.bold: true
font.family: "Graphik Semibold"
font.pointSize: 14
font.letterSpacing: -1
color: "#FFFFFF"
}

View file

@ -35,7 +35,7 @@ Item {
loader.source = url;
}
Text {
HFTextRegular {
id: stateInfo
font.pixelSize: 12
@ -66,7 +66,7 @@ Item {
]
}
Text {
HFTextRegular {
id: buildInfo
font.pixelSize: 12
@ -80,8 +80,8 @@ Item {
bottom: root.bottom
}
color: "#777"
text: "v." + LauncherState.buildVersion;
color: "#666"
text: "V." + LauncherState.buildVersion;
states: [
State {

View file

@ -18,10 +18,13 @@ void launchClient(const QString& clientPath, const QString& homePath, const QStr
QString params = "--url \"" + homePath + "\""
+ " --setBookmark \"hqhome=" + homePath + "\""
+ " --defaultScriptsOverride \"file:///" + defaultScriptsPath + "\""
+ " --displayName \"" + displayName + "\""
+ " --cache \"" + contentCachePath + "\""
+ " --suppress-settings-reset --no-launcher --no-updater";
if (!displayName.isEmpty()) {
params += " --displayName \"" + displayName + "\"";
}
if (!loginResponseToken.isEmpty()) {
params += " --tokens \"" + loginResponseToken.replace("\"", "\\\"") + "\"";
}