brmbarv3: Convert font sizes from points to pixels to be DPI-independent

This commit is contained in:
Petr Baudis 2012-10-16 17:45:21 +02:00
parent 4d72dff187
commit e55f5cfa5e
15 changed files with 59 additions and 59 deletions

View file

@ -51,7 +51,7 @@ Item {
text: page.name
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
BarButton {
@ -60,7 +60,7 @@ Item {
y: 0
width: 240
height: 60
fontSize: 34
fontSize: 46
text: page.state == "name_edit" ? "Assign" : "Edit"
onButtonClick: { if (page.state == "name_edit") page.state = "normal"; else page.state = "name_edit"; }
}
@ -92,7 +92,7 @@ Item {
color: "#ffffff"
text: "Buy price:"
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
Text {
@ -105,7 +105,7 @@ Item {
text: info.buy_price
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
BarButton {
@ -114,7 +114,7 @@ Item {
y: 0
width: 240
height: 60
fontSize: 34
fontSize: 46
text: page.state == "buyprice_edit" ? "Assign" : "Edit"
onButtonClick: { if (page.state == "buyprice_edit") page.state = "normal"; else page.state = "buyprice_edit"; }
}
@ -146,7 +146,7 @@ Item {
color: "#ffffff"
text: "Sell price:"
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
Text {
@ -159,7 +159,7 @@ Item {
text: info.price
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
BarButton {
@ -168,7 +168,7 @@ Item {
y: 0
width: 240
height: 60
fontSize: 34
fontSize: 46
text: page.state == "sellprice_edit" ? "Assign" : "Edit"
onButtonClick: { if (page.state == "sellprice_edit") page.state = "normal"; else page.state = "sellprice_edit"; }
}
@ -200,7 +200,7 @@ Item {
color: "#ffffff"
text: "Quantity:"
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
Text {
@ -213,7 +213,7 @@ Item {
text: info.balance
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
BarButton {
@ -222,7 +222,7 @@ Item {
y: 0
width: 240
height: 60
fontSize: 34
fontSize: 46
text: page.state == "balance_edit" ? "Add qty" : "Restock"
onButtonClick: {
if (page.state == "balance_edit") {
@ -259,7 +259,7 @@ Item {
color: "#ffffff"
text: "Add quantity:"
verticalAlignment: Text.AlignVCenter
font.pointSize: 34
font.pixelSize: 46
}
Text {
@ -271,7 +271,7 @@ Item {
color: "#ffff7c"
text: ""
verticalAlignment: Text.AlignVCenter
font.pointSize: 44
font.pixelSize: 60
}
Text {
@ -282,7 +282,7 @@ Item {
width: 248
color: "#71cccc"
text: "Please specify the precise amount of newly\nstocked goods, even if the current quantity\nvalue does not match reality (you can let us\nknow about that at brmbar@brmlab.cz)"
font.pointSize: 20
font.pixelSize: 27
}
}