From a885dbd3fe29bfd6d5dc5ef60f505f9a5870d03d Mon Sep 17 00:00:00 2001 From: Dag Heyman Date: Tue, 15 Aug 2017 14:20:56 +0200 Subject: [PATCH] ui: use relative pointsize for code --- qml/main.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 30989913..888939f5 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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) } }