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 2.3
import QtQuick.Controls 2.1 import QtQuick.Controls 2.1
import "HFControls"
Item { Item {
id: root id: root
@ -24,7 +25,7 @@ Item {
anchors { anchors {
top: root.top top: root.top
topMargin: 48 topMargin: 98
horizontalCenter: root.horizontalCenter horizontalCenter: root.horizontalCenter
} }
@ -38,14 +39,10 @@ Item {
} }
} }
Text { HFTextHeader {
id: firstText id: firstText
width: 300
height: 41
font.family: "Graphik"
font.pixelSize: 28
text: "Setup will take a moment" text: "Setup will take a moment"
color: "#FFFFFF"
anchors { anchors {
top: logo.bottom top: logo.bottom
@ -54,16 +51,14 @@ Item {
} }
} }
Text { HFTextRegular {
id: secondText id: secondText
font.family: "Graphik"
font.pixelSize: 14 text: "We're getting everything setup for you."
text: "We're getting your headquaters ready"
color: "#FFFFFF"
anchors { anchors {
top: firstText.bottom top: firstText.bottom
topMargin: 14 topMargin: 8
horizontalCenter: logo.horizontalCenter 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: { Component.onCompleted: {
root.parent.setStateInfoState("right"); root.parent.setStateInfoState("right");
root.parent.setBuildInfoState("left"); root.parent.setBuildInfoState("left");

View file

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

View file

@ -191,19 +191,7 @@ Item {
} }
} }
Text { HFTextLogo {
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 { anchors {
bottom: root.bottom bottom: root.bottom
bottomMargin: 46 bottomMargin: 46

View file

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

View file

@ -165,19 +165,7 @@ Item {
} }
} }
Text { HFTextLogo {
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
anchors { anchors {
bottom: root.bottom bottom: root.bottom
bottomMargin: 58 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; loader.source = url;
} }
Text { HFTextRegular {
id: stateInfo id: stateInfo
font.pixelSize: 12 font.pixelSize: 12
@ -66,7 +66,7 @@ Item {
] ]
} }
Text { HFTextRegular {
id: buildInfo id: buildInfo
font.pixelSize: 12 font.pixelSize: 12
@ -80,8 +80,8 @@ Item {
bottom: root.bottom bottom: root.bottom
} }
color: "#777" color: "#666"
text: "v." + LauncherState.buildVersion; text: "V." + LauncherState.buildVersion;
states: [ states: [
State { State {

View file

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