When the notification count is in double digits, the numbers can overflow the icon which is meant to contain them.
This patch checks if there is more than 1 digit and then slightly reduces the size of the numbers.
broulik | |
ngraham |
Plasma | |
VDG |
When the notification count is in double digits, the numbers can overflow the icon which is meant to contain them.
This patch checks if there is more than 1 digit and then slightly reduces the size of the numbers.
Cantarell, 10pt
Before:
After:
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
applets/notifications/package/contents/ui/CompactRepresentation.qml | ||
---|---|---|
97 | Can you rearrange that a bit width: Math.round(Math.min(parent.width, parent.height) * (text.length > 1 ? 0.67 : 0.75))` |