|
|
|
@ -164,7 +164,7 @@ Page { |
|
|
|
|
height: collapsedNotificationBubbleText.height + Nheko.paddingMedium |
|
|
|
|
width: Math.max(collapsedNotificationBubbleText.width, height) |
|
|
|
|
radius: height / 2 |
|
|
|
|
color: /*hasLoudNotification ? Nheko.theme.red :*/ communityItem.bubbleBackground |
|
|
|
|
color: model.hasLoudNotification ? Nheko.theme.red : communityItem.bubbleBackground |
|
|
|
|
ToolTip.text: model.unreadMessages |
|
|
|
|
ToolTip.delay: Nheko.tooltipDelay |
|
|
|
|
ToolTip.visible: collapsedNotificationBubbleHover.hovered && (model.unreadMessages > 9999) |
|
|
|
@ -178,7 +178,7 @@ Page { |
|
|
|
|
width: Math.max(implicitWidth + Nheko.paddingMedium, parent.height) |
|
|
|
|
font.bold: true |
|
|
|
|
font.pixelSize: fontMetrics.font.pixelSize * 0.6 |
|
|
|
|
color: /*hasLoudNotification ? "white" :*/ communityItem.bubbleText |
|
|
|
|
color: model.hasLoudNotification ? "white" : communityItem.bubbleText |
|
|
|
|
text: model.unreadMessages > 9999 ? "9999+" : model.unreadMessages |
|
|
|
|
|
|
|
|
|
HoverHandler { |
|
|
|
@ -214,7 +214,7 @@ Page { |
|
|
|
|
height: notificationBubbleText.height + Nheko.paddingMedium |
|
|
|
|
Layout.preferredWidth: Math.max(notificationBubbleText.width, height) |
|
|
|
|
radius: height / 2 |
|
|
|
|
color: /*hasLoudNotification ? Nheko.theme.red :*/ communityItem.bubbleBackground |
|
|
|
|
color: model.hasLoudNotification ? Nheko.theme.red : communityItem.bubbleBackground |
|
|
|
|
ToolTip.text: model.unreadMessages |
|
|
|
|
ToolTip.delay: Nheko.tooltipDelay |
|
|
|
|
ToolTip.visible: notificationBubbleHover.hovered && (model.unreadMessages > 9999) |
|
|
|
@ -228,7 +228,7 @@ Page { |
|
|
|
|
width: Math.max(implicitWidth + Nheko.paddingMedium, parent.height) |
|
|
|
|
font.bold: true |
|
|
|
|
font.pixelSize: fontMetrics.font.pixelSize * 0.8 |
|
|
|
|
color: /*hasLoudNotification ? "white" :*/ communityItem.bubbleText |
|
|
|
|
color: model.hasLoudNotification ? "white" : communityItem.bubbleText |
|
|
|
|
text: model.unreadMessages > 9999 ? "9999+" : model.unreadMessages |
|
|
|
|
|
|
|
|
|
HoverHandler { |
|
|
|
|