diff --git a/resources/qml/MainWindow/MainWindowHeader.qml b/resources/qml/MainWindow/MainWindowHeader.qml index fab8010dd7..c0d5cdc31b 100644 --- a/resources/qml/MainWindow/MainWindowHeader.qml +++ b/resources/qml/MainWindow/MainWindowHeader.qml @@ -117,6 +117,42 @@ Item rightMargin: UM.Theme.getSize("default_margin").width verticalCenter: parent.verticalCenter } + + Rectangle + { + id: marketplaceNotificationIcon + color: UM.Theme.getColor("notification_icon") + width: marketplaceButton.height / 1.5 + height: width + radius: 0.5 * width + anchors + { + top: parent.top + right: parent.right + rightMargin: -0.5 * width + topMargin: -0.5 * height + } + visible: CuraApplication.getPackageManager().packagesWithUpdate.length > 0 + + Label + { + id: marketplaceNotificationText + anchors.centerIn: parent + anchors.fill: parent + text: + { + if(CuraApplication.getPackageManager().packagesWithUpdate.length > 9) + { + return "9+" // More than 2 characters don't fit. + } + return CuraApplication.getPackageManager().packagesWithUpdate.length + } + color: UM.Theme.getColor("primary_text") + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font: UM.Theme.getFont("small") + } + } } AccountWidget diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index c870936723..99a7e02e05 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -189,6 +189,8 @@ "toolbar_background": [255, 255, 255, 255], + "notification_icon": [255, 0, 0, 255], + "printer_type_label_background": [228, 228, 242, 255], "text": [25, 25, 25, 255],