Skip to content

Improve the visuals of Kirigami Avatar

Noah Davis requested to merge work/ndavis/avatar into master

Decreases the border width to 1px to match the border widths we normally use.

Makes the initials take up more space and fixes their vertical alignment.

Makes the fallback icon use the nearest icon size to the size of the initials.

NOTE: all "before" images except for the one demonstrating the background change use the version of Kirigami just before @cblack's recent gradient background patch.

before (Latin) after (Latin)
Screenshot_20201108_202605 Screenshot_20201108_203124
before (CJK) after (CJK)
Screenshot_20201108_202803 Screenshot_20201108_203231
before (icon) after (icon)
Screenshot_20201108_203025 Screenshot_20201108_203340

Makes the avatar image less blurry.

before after
Screenshot_20201108_202502 Screenshot_20201108_202324

Exposes the smooth and sourceSize properties since they will be important if anyone wants to animate the size of Avatar.

Keep the average background similar to the generated background color. This prevents the color of the text from ever being not quite right. Also fixes the bottom sometimes being lighter than the top despite scaling brightness by a negative value.

before after
Screenshot_20201108_204725 Screenshot_20201108_205027

Makes the padding, verticalPadding and horizontalPadding properties actually set the padding for the relevant sides when used with qqc2-desktop-style.

Removes an extra unnecessary Rectangle.

Updates the QtQuick version since Text.padding is newer than 2.5

@teams/vdg

Merge request reports