12345678910111213141516171819202122232425262728293031323334353637 |
- import QtQuick 2.10
- import QtQuick.Controls 2.3
- import UM 1.5 as UM
- Rectangle
- {
- id: notificationIcon
- color: UM.Theme.getColor("notification_icon")
- width: UM.Theme.getSize("notification_icon").width
- height: UM.Theme.getSize("notification_icon").height
- radius: (0.5 * width) | 0
- property alias labelText: notificationLabel.text
- property alias labelFont: notificationLabel.font
- UM.Label
- {
- id: notificationLabel
- anchors.fill: parent
- color: UM.Theme.getColor("primary_text")
- horizontalAlignment: Text.AlignHCenter
-
-
-
- Component.onCompleted: font.letterSpacing = -1
- }
- }
|