diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-01-28 00:14:42 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-29 23:04:03 +0100 |
| commit | 49770494251a318da37849f1c628f25edaf94483 (patch) | |
| tree | 59102bc024ced24aa836ae392f3a98712a09e461 /components/Label.qml | |
| parent | 53b5b7a5c7a7894c04bdedad345f733be1dd34b7 (diff) | |
| download | monzero-gui-49770494251a318da37849f1c628f25edaf94483.tar.gz monzero-gui-49770494251a318da37849f1c628f25edaf94483.tar.xz monzero-gui-49770494251a318da37849f1c628f25edaf94483.zip | |
Fixes some fonts, introduces a new checkbox and fixes 0 amount history entries
Diffstat (limited to 'components/Label.qml')
| -rw-r--r-- | components/Label.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/components/Label.qml b/components/Label.qml index 5ad72e08..ac0ff487 100644 --- a/components/Label.qml +++ b/components/Label.qml @@ -40,12 +40,10 @@ Item { property int fontSize: 16 * scaleRatio property bool fontBold: false property string fontColor: Style.defaultFontColor - property string fontFamily: Style.fontRegular.name + property string fontFamily: "" property alias wrapMode: label.wrapMode property alias horizontalAlignment: label.horizontalAlignment signal linkActivated() -// width: icon.x + icon.width * scaleRatio -// height: icon.height * scaleRatio height: label.height * scaleRatio width: label.width * scaleRatio Layout.topMargin: 10 * scaleRatio @@ -55,7 +53,13 @@ Item { anchors.bottom: parent.bottom anchors.bottomMargin: 2 * scaleRatio anchors.left: parent.left - font.family: fontFamily + font.family: { + if(fontFamily){ + return fontFamily; + } else { + return Style.fontLight; + } + } font.pixelSize: fontSize font.bold: fontBold color: fontColor |
