From 0bad57259c866c2e5abc1e05a3e4398df3760822 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 8 Apr 2019 13:27:30 +0200 Subject: [PATCH] Increased the font size of notification icon to make it more readable CURA-6151 --- resources/qml/Widgets/NotificationIcon.qml | 8 ++++++-- resources/themes/cura-light/theme.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/qml/Widgets/NotificationIcon.qml b/resources/qml/Widgets/NotificationIcon.qml index d06d9f16be..5cf4d17777 100644 --- a/resources/qml/Widgets/NotificationIcon.qml +++ b/resources/qml/Widgets/NotificationIcon.qml @@ -25,12 +25,16 @@ Rectangle Label { id: notificationLabel - anchors.centerIn: parent anchors.fill: parent color: UM.Theme.getColor("primary_text") horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter - font: UM.Theme.getFont("small") + font: UM.Theme.getFont("default") renderType: Text.NativeRendering + + // This is a bit of a hack, but we don't really have enough room for 2 characters (eg 9+). The default font + // does have a tad bit to much spacing. So instead of adding a whole new font, we just modify it a bit for this + // specific instance. + Component.onCompleted: font.letterSpacing = -1 } } diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index f287e60310..4b2f92e6e5 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -604,7 +604,7 @@ "toolbox_action_button": [8.0, 2.5], "toolbox_loader": [2.0, 2.0], - "notification_icon": [1.4, 1.4], + "notification_icon": [1.5, 1.5], "avatar_image": [6.8, 6.8],