add 24px minimum height for ShortcutBadges

pull/4/head
Michail Vourlakos 6 years ago
parent 46dd59b65a
commit f6d2e8c8f8

@ -86,8 +86,9 @@ Loader{
id: appletNumber id: appletNumber
anchors.centerIn: parent anchors.centerIn: parent
minimumWidth: 0.4 * root.iconSize minimumWidth: 0.4 * (wrapper.zoomScale * root.iconSize)
height: 0.4 * (wrapper.zoomScale * root.iconSize) height: Math.max(24, 0.4 * (wrapper.zoomScale * root.iconSize))
border.color: root.minimizedDotColor border.color: root.minimizedDotColor
proportion: 0 proportion: 0
radiusPerCentage: 50 radiusPerCentage: 50

@ -613,10 +613,10 @@ Item{
Latte.BadgeText { Latte.BadgeText {
id: taskNumber id: taskNumber
anchors.centerIn: parent anchors.centerIn: parent
border.color: root.minimizedDotColor minimumWidth: 0.4 * (wrapper.mScale * root.iconSize)
height: Math.max(24, 0.4 * (wrapper.mScale * root.iconSize))
minimumWidth: 0.4 * root.iconSize border.color: root.minimizedDotColor
height: 0.4 * (wrapper.mScale * root.iconSize)
textValue: taskNumberLoader.badgeString textValue: taskNumberLoader.badgeString
showNumber: false showNumber: false

Loading…
Cancel
Save