diff --git a/bar/modules/Logo.qml b/bar/modules/Logo.qml index 844f45c..d48b2dd 100644 --- a/bar/modules/Logo.qml +++ b/bar/modules/Logo.qml @@ -39,16 +39,13 @@ ModuleChip { } } - Text { - id: logoText + Item { + id: logoWrapper anchors.centerIn: parent - text: Cfg.Config.logoIcon - - color: launcherActive ? t.logoIconActive : t.logoIcon - font.pixelSize: Cfg.Config.logoIconSize - - Behavior on color { ColorAnimation { duration: 250 } } + width: Cfg.Config.logoIconSize + height: Cfg.Config.logoIconSize + transformOrigin: Item.Center rotation: root.spinTarget Behavior on rotation { NumberAnimation { @@ -56,5 +53,15 @@ ModuleChip { easing.type: Easing.InOutBack } } + + Text { + id: logoText + anchors.centerIn: parent + text: Cfg.Config.logoIcon + color: launcherActive ? t.logoIconActive : t.logoIcon + font.pixelSize: Cfg.Config.logoIconSize + renderType: Text.QtRendering + Behavior on color { ColorAnimation { duration: 250 } } + } } } diff --git a/bar/modules/Notifications.qml b/bar/modules/Notifications.qml index a9e311d..c43be90 100644 --- a/bar/modules/Notifications.qml +++ b/bar/modules/Notifications.qml @@ -389,11 +389,13 @@ ModuleChip { Text { id: badgeLabel anchors.centerIn: parent - text: root.unreadCount > 99 ? "99+" : root.unreadCount.toString() - color: t.notifBadgeText - font.pixelSize: 8 - font.bold: true - renderType: Text.NativeRendering + text: root.unreadCount > 99 ? "99+" : root.unreadCount.toString() + color: t.notifBadgeText + font.pixelSize: 8 + font.bold: true + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + renderType: Text.QtRendering } } }