mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-02-15 04:41:50 +00:00
#3: Fixed font sizing on HiDPi screen
This commit is contained in:
parent
3dfa0f92e3
commit
439769ca21
4 changed files with 15 additions and 14 deletions
|
@ -50,7 +50,7 @@ ApplicationWindow {
|
||||||
menuBar: ToolBar {
|
menuBar: ToolBar {
|
||||||
id: toolbar
|
id: toolbar
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
font.pixelSize: height * 0.3
|
font.pixelSize: height * 0.34
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -156,27 +156,27 @@ ApplicationWindow {
|
||||||
Text {
|
Text {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font { weight: Font.Bold; pixelSize: 15 }
|
font { weight: Font.Bold; pixelSize: 20 }
|
||||||
text: "VirtScreen" + " v" + settings.version
|
text: "VirtScreen" + " v" + settings.version
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font { pixelSize: 10 }
|
font { pixelSize: 13 }
|
||||||
text: "Make your iPad/tablet/computer<br/>as a secondary monitor.<br/>"
|
text: "Make your iPad/tablet/computer<br/>as a secondary monitor.<br/>"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
font { pixelSize: 11 }
|
font { pixelSize: 14 }
|
||||||
text: "- <a href='https://github.com/kbumsik/VirtScreen'>Project Website</a>"
|
text: "- <a href='https://github.com/kbumsik/VirtScreen'>Project Website</a>"
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
font { pixelSize: 11 }
|
font { pixelSize: 14 }
|
||||||
text: "- <a href='https://github.com/kbumsik/VirtScreen/issues'>Issues & Bug Report</a>"
|
text: "- <a href='https://github.com/kbumsik/VirtScreen/issues'>Issues & Bug Report</a>"
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
font { pixelSize: 10 }
|
font { pixelSize: 14 }
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
lineHeight: 0.7
|
lineHeight: 0.7
|
||||||
|
@ -184,7 +184,7 @@ ApplicationWindow {
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
font { pixelSize: 9 }
|
font { pixelSize: 11 }
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: "This program comes with absolutely no warranty.<br/>" +
|
text: "This program comes with absolutely no warranty.<br/>" +
|
||||||
|
|
|
@ -52,11 +52,12 @@ Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
font { pointSize: 10 }
|
Layout.fillWidth: true
|
||||||
|
font { pixelSize: 14 }
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: "<b>Warning</b>: Edit only if 'VIRTUAL1' is not available<br/>" +
|
text: "<b>Warning</b>: Edit only if 'VIRTUAL1' is not available. " +
|
||||||
"If so, please note that the virtual screen may be<br/>" +
|
"If so, please note that the virtual screen may be " +
|
||||||
"unstable/unavailable depending on a graphic<br/>" +
|
"unstable/unavailable depending on a graphic " +
|
||||||
"card and its driver."
|
"card and its driver."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import VirtScreen.Backend 1.0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
GroupBox {
|
GroupBox {
|
||||||
title: "Virtual Display"
|
title: "Virtual Screen"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
enabled: backend.virtScreenCreated ? false : true
|
enabled: backend.virtScreenCreated ? false : true
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
@ -104,7 +104,7 @@ ColumnLayout {
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
font.pointSize: 12
|
font.pixelSize: 14
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue