ui: use relative pointsize for code

This commit is contained in:
Dag Heyman 2017-08-15 14:20:56 +02:00
parent 1697afcb7d
commit a885dbd3fe
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -284,7 +284,6 @@ ApplicationWindow {
id: issuerLbl
visible: hasIssuer(modelData.name)
text: qsTr("") + parseIssuer(modelData.name)
font.pointSize: 12
color: getCredentialTextColor(modelData)
}
Label {
@ -292,7 +291,7 @@ ApplicationWindow {
opacity: isExpired(modelData) ? 0.6 : 1
visible: modelData.code !== null
text: qsTr("") + getSpacedCredential(modelData.code)
font.pointSize: 20
font.pointSize: issuerLbl.font.pointSize * 1.6
color: getCredentialTextColor(modelData)
}
Label {
@ -300,7 +299,6 @@ ApplicationWindow {
text: hasIssuer(
modelData.name) ? qsTr("") + parseName(
modelData.name) : modelData.name
font.pointSize: 12
color: getCredentialTextColor(modelData)
}
}