Commit 8b330a73 authored by Martin Straka's avatar Martin Straka

Fixed ios fontsize problem (issue #4)

parent fedae678
......@@ -58,9 +58,10 @@ ApplicationWindow {
property string mainHeaderBgColor: "#00539b"
property int statusBarTimer: 5000
// dimension and style based on font pixel size and screen dpi
property int textFontSize: defaultTextFont.font.pixelSize
property int textFontSizeSmall: textFontSize * 0.7
property int headerHeight: textFontSize * 3
property int textFontSizeInPixels: defaultTextFont.font.pixelSize
property int textPointSmall: Math.round(defaultTextFont.font.pointSize * 0.7)
property int textFontSizeSmall: if (textPointSmall > 0) {textPointSmall} else {8}
property int headerHeight: textFontSizeInPixels * 3
property int imgHeight: headerHeight * 0.8
property int navImgHeight: headerHeight * 0.3
property int listItemHeight: headerHeight * 1.5
......@@ -110,10 +111,11 @@ ApplicationWindow {
color: datovkaPalette.text
anchors.centerIn: parent
text: mainWindow.width + " x "+ mainWindow.height
font.pixelSize: textFontSizeSmall
font.pointSize: textFontSizeSmall
Connections {
target: isds
onStatusBarTextChanged: {
console.log(textFontSizeSmall)
statusBar.visible = true
statusBarText.text = txt
busyuIndicator.running = busy
......
......@@ -227,7 +227,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
text: "(" + rUserName + ")"
color: datovkaPalette.text
font.pixelSize: textFontSizeSmall
font.pointSize: textFontSizeSmall
}
}
Text {
......@@ -236,7 +236,7 @@ Component {
anchors.leftMargin: defaultMargin
text: rTestAccount + ", " + rstoreToDisk
color: datovkaPalette.text
font.pixelSize: textFontSizeSmall
font.pointSize: textFontSizeSmall
}
}
Rectangle {
......
......@@ -149,7 +149,7 @@ Component {
id: attachmentLabel
anchors.top: messageDetail.bottom
width: parent.width
height: textFontSize * 2
height: textFontSizeInPixels * 2
Text {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
......@@ -261,7 +261,7 @@ Component {
anchors.left: parent.left
text: rFileSize
color: datovkaPalette.mid
font.pixelSize: textFontSizeSmall
font.pointSize: textFontSizeSmall
}
}
}
......
......@@ -247,7 +247,7 @@ Component {
id: r3c2
text: rMsgId + " " + rDelivTime + " " + rAcceptTime
color: datovkaPalette.mid
font.pixelSize: textFontSizeSmall
font.pointSize: textFontSizeSmall
font.bold: true
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment