Use pixel size for fonts

This commit is contained in:
Dag Heyman 2017-03-09 10:26:11 +01:00
parent 9ceb544496
commit 9a04699372
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -443,21 +443,21 @@ ApplicationWindow {
Text {
visible: hasIssuer(modelData.name)
text: qsTr('') + parseIssuer(modelData.name)
font.pointSize: 10
font.pixelSize: 12
}
Text {
opacity: isExpired(modelData) ? 0.6 : 1
visible: modelData.code != null
text: qsTr('') + modelData.code
font.family: "Verdana"
font.pointSize: 16
font.pixelSize: 20
}
Text {
text: hasIssuer(
modelData.name) ? qsTr(
'') + parseName(
modelData.name) : modelData.name
font.pointSize: 10
font.pixelSize: 12
}
}
}
@ -512,6 +512,7 @@ ApplicationWindow {
function isExpired(cred) {
return cred != null && (cred.oath_type !== 'hotp')
&& (cred.expiration - (Date.now() / 1000) <= 0)
}
function refreshDependingOnMode(force) {