Attempt fix text scaling with DPI.

This commit is contained in:
armored-dragon 2025-04-19 01:26:13 -05:00
parent 38832ab639
commit 69f38a9ebf
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B
6 changed files with 11 additions and 11 deletions

View file

@ -37,7 +37,7 @@ Item {
Text { Text {
text: current_page text: current_page
color: "white" color: "white"
font.pointSize: 18 font.pixelSize: 26
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter

View file

@ -20,7 +20,7 @@ Item {
height: parent.height; height: parent.height;
text: settingText; text: settingText;
color: "white"; color: "white";
font.pointSize: 14; font.pixelSize: 22;
selectByMouse: true; selectByMouse: true;
readOnly: true; readOnly: true;
} }

View file

@ -26,7 +26,7 @@ Item {
height: parent.height; height: parent.height;
text: settingText; text: settingText;
color: "white"; color: "white";
font.pointSize: 14; font.pixelSize: 22;
selectByMouse: true; selectByMouse: true;
readOnly: true; readOnly: true;
} }
@ -76,7 +76,7 @@ Item {
horizontalAlignment: Text.AlignHCenter; horizontalAlignment: Text.AlignHCenter;
verticalAlignment: Text.AlignVCenter; verticalAlignment: Text.AlignVCenter;
elide: Text.ElideRight; elide: Text.ElideRight;
font.pointSize: 14; font.pixelSize: 22;
color: "white"; color: "white";
} }
} }

View file

@ -29,7 +29,7 @@ Item {
height: parent.height; height: parent.height;
text: settingText; text: settingText;
color: "white"; color: "white";
font.pointSize: 14; font.pixelSize: 22;
width: parent.width - 200; width: parent.width - 200;
selectByMouse: true; selectByMouse: true;
readOnly: true; readOnly: true;
@ -58,7 +58,7 @@ Item {
horizontalAlignment: TextInput.AlignHCenter horizontalAlignment: TextInput.AlignHCenter
width: parent.width; width: parent.width;
clip: true; clip: true;
font.pointSize: 14 font.pixelSize: 22
validator: RegExpValidator { regExp: /[0-9]*/ } validator: RegExpValidator { regExp: /[0-9]*/ }
background: Rectangle { background: Rectangle {
@ -97,7 +97,7 @@ Item {
Text { Text {
text: "+"; text: "+";
color: "white"; color: "white";
font.pointSize: 20; font.pixelSize: 28;
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
anchors.horizontalCenter: parent.horizontalCenter; anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
@ -124,7 +124,7 @@ Item {
Text { Text {
text: "-"; text: "-";
color: "white"; color: "white";
font.pointSize: 20; font.pixelSize: 28;
anchors.horizontalCenter: parent.horizontalCenter; anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
} }

View file

@ -29,7 +29,7 @@ Item {
height: parent.height; height: parent.height;
text: settingText; text: settingText;
color: "white"; color: "white";
font.pointSize: 14; font.pixelSize: 22;
Layout.fillWidth: true; Layout.fillWidth: true;
selectByMouse: true; selectByMouse: true;
readOnly: true; readOnly: true;
@ -49,7 +49,7 @@ Item {
height: parent.height; height: parent.height;
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
width: 25; width: 25;
font.pointSize: 14; font.pixelSize: 22;
} }
Slider { Slider {

View file

@ -21,7 +21,7 @@ Item {
Text { Text {
text: page_name; text: page_name;
color: "white"; color: "white";
font.pointSize: 16; font.pixelSize: 24;
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
x: 45; x: 45;
} }