fix: notif icon size
This commit is contained in:
parent
53a0a7d977
commit
0ae01c9163
2 changed files with 3 additions and 5 deletions
|
|
@ -175,14 +175,12 @@ StyledRect {
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
active: !root.hasAppIcon
|
active: !root.hasAppIcon
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.horizontalCenterOffset: -Tokens.font.body.large.pointSize * 0.02
|
anchors.verticalCenterOffset: 1
|
||||||
anchors.verticalCenterOffset: Tokens.font.body.large.pointSize * 0.02
|
|
||||||
|
|
||||||
sourceComponent: MaterialIcon {
|
sourceComponent: MaterialIcon {
|
||||||
text: Icons.getNotifIcon(root.modelData.summary, root.modelData.urgency)
|
text: Icons.getNotifIcon(root.modelData.summary, root.modelData.urgency)
|
||||||
|
|
||||||
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
|
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
|
||||||
fontStyle: Tokens.font.icon.large
|
fontStyle: Tokens.font.icon.medium
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ class NotifsTokens : public ConfigObject {
|
||||||
QML_ANONYMOUS
|
QML_ANONYMOUS
|
||||||
|
|
||||||
CONFIG_PROPERTY(int, width, 400)
|
CONFIG_PROPERTY(int, width, 400)
|
||||||
CONFIG_GLOBAL_PROPERTY(int, image, 41)
|
CONFIG_GLOBAL_PROPERTY(int, image, 42)
|
||||||
CONFIG_PROPERTY(int, badge, 20)
|
CONFIG_PROPERTY(int, badge, 20)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue