1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 11:21:53 +00:00

#3: Fixed font sizing on HiDPi screen

This commit is contained in:
Bumsik Kim 2018-06-05 21:31:59 -04:00
parent 3dfa0f92e3
commit 439769ca21
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
4 changed files with 15 additions and 14 deletions

View file

@ -50,7 +50,7 @@ ApplicationWindow {
menuBar: ToolBar {
id: toolbar
font.weight: Font.Medium
font.pixelSize: height * 0.3
font.pixelSize: height * 0.34
RowLayout {
anchors.fill: parent
@ -156,27 +156,27 @@ ApplicationWindow {
Text {
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
font { weight: Font.Bold; pixelSize: 15 }
font { weight: Font.Bold; pixelSize: 20 }
text: "VirtScreen" + " v" + settings.version
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
font { pixelSize: 10 }
font { pixelSize: 13 }
text: "Make your iPad/tablet/computer<br/>as a secondary monitor.<br/>"
}
Text {
font { pixelSize: 11 }
font { pixelSize: 14 }
text: "- <a href='https://github.com/kbumsik/VirtScreen'>Project Website</a>"
onLinkActivated: Qt.openUrlExternally(link)
}
Text {
font { pixelSize: 11 }
font { pixelSize: 14 }
text: "- <a href='https://github.com/kbumsik/VirtScreen/issues'>Issues & Bug Report</a>"
onLinkActivated: Qt.openUrlExternally(link)
}
Text {
font { pixelSize: 10 }
font { pixelSize: 14 }
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
lineHeight: 0.7
@ -184,7 +184,7 @@ ApplicationWindow {
onLinkActivated: Qt.openUrlExternally(link)
}
Text {
font { pixelSize: 9 }
font { pixelSize: 11 }
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: "This program comes with absolutely no warranty.<br/>" +

View file

@ -52,14 +52,15 @@ Dialog {
}
Text {
font { pointSize: 10 }
Layout.fillWidth: true
font { pixelSize: 14 }
wrapMode: Text.WordWrap
text: "<b>Warning</b>: Edit only if 'VIRTUAL1' is not available<br/>" +
"If so, please note that the virtual screen may be<br/>" +
"unstable/unavailable depending on a graphic<br/>" +
text: "<b>Warning</b>: Edit only if 'VIRTUAL1' is not available. " +
"If so, please note that the virtual screen may be " +
"unstable/unavailable depending on a graphic " +
"card and its driver."
}
RowLayout {
// Empty layout
Layout.fillHeight: true

View file

@ -6,7 +6,7 @@ import VirtScreen.Backend 1.0
ColumnLayout {
GroupBox {
title: "Virtual Display"
title: "Virtual Screen"
Layout.fillWidth: true
enabled: backend.virtScreenCreated ? false : true
ColumnLayout {

View file

@ -104,7 +104,7 @@ ColumnLayout {
readOnly: true
selectByMouse: true
anchors.horizontalCenter: parent.horizontalCenter
font.pointSize: 12
font.pixelSize: 14
}
}
}