mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 13:02:06 +02:00
Update qt launcher to work with Windows scaling
This commit is contained in:
parent
f4f634f67b
commit
2504ab2c8c
7 changed files with 11 additions and 9 deletions
|
@ -14,7 +14,7 @@ Button {
|
|||
property int backgroundWidth: 2
|
||||
|
||||
font.family: "Graphik Semibold"
|
||||
font.pointSize: 12
|
||||
font.pixelSize: 15
|
||||
|
||||
background: Rectangle {
|
||||
implicitWidth: 100
|
||||
|
|
|
@ -7,7 +7,7 @@ TextField {
|
|||
height: 50
|
||||
|
||||
font.family: "Graphik Regular"
|
||||
font.pointSize: 10.5
|
||||
font.pixelSize: 14
|
||||
color: (text.length == 0 || !enabled) ? "#7e8c81" : "#000000"
|
||||
|
||||
property bool togglePasswordField: false
|
||||
|
|
|
@ -3,6 +3,6 @@ import QtQuick 2.1
|
|||
|
||||
Text {
|
||||
font.family: "Graphik Semibold"
|
||||
font.pointSize: 24
|
||||
font.pixelSize: 32
|
||||
color: "#ffffff"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ Text {
|
|||
text: "High Fidelity"
|
||||
font.bold: true
|
||||
font.family: "Graphik Semibold"
|
||||
font.pointSize: 14
|
||||
font.pixelSize: 17
|
||||
font.letterSpacing: -1
|
||||
color: "#FFFFFF"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ Text {
|
|||
id: root
|
||||
|
||||
font.family: "Graphik Regular"
|
||||
font.pointSize: 10.5
|
||||
font.pixelSize: 14
|
||||
|
||||
color: "#C4C4C4"
|
||||
linkColor: color
|
||||
|
|
|
@ -7,8 +7,6 @@ import "HFControls"
|
|||
|
||||
Item {
|
||||
id: root
|
||||
width: 627
|
||||
height: 540
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
id: loader
|
||||
|
@ -34,8 +32,6 @@ Item {
|
|||
HFTextRegular {
|
||||
id: buildInfo
|
||||
|
||||
font.pixelSize: 12
|
||||
|
||||
anchors {
|
||||
leftMargin: 10
|
||||
rightMargin: 10
|
||||
|
|
|
@ -37,6 +37,12 @@ Launcher::Launcher(int& argc, char**argv) : QGuiApplication(argc, argv) {
|
|||
_launcherWindow->setWidth(627);
|
||||
_launcherWindow->setResizeMode(QQuickView::SizeRootObjectToView);
|
||||
_launcherWindow->show();
|
||||
|
||||
auto window = allWindows()[0];
|
||||
window->setMaximumHeight(540);
|
||||
window->setMaximumWidth(627);
|
||||
window->setMinimumHeight(540);
|
||||
window->setMinimumWidth(627);
|
||||
}
|
||||
|
||||
Launcher::~Launcher() {
|
||||
|
|
Loading…
Reference in a new issue