Commit 7c11cb46 authored by Filip Fila's avatar Filip Fila 🌆
Browse files

[Kickoff] Fix default avatar offset

Nowadays we place avatars inside a circle with an always visible border.

The default avatar has not been adjusted for this and has both its own dimensions and positioning.

This patch has it fill the avatar circle and shifts it upwards a bit because otherwise the avatar overflows the circle when scaling is increased.

Anchors.bottomMargin is used instead of anchors.margins because the latter results in a blurry SVG, while the former doesn't and looks just fine.

BUG: 414687
parent 346fc482
...@@ -114,13 +114,8 @@ Item { ...@@ -114,13 +114,8 @@ Item {
PlasmaCore.IconItem { PlasmaCore.IconItem {
source: "user-identity" source: "user-identity"
visible: faceIcon.status !== Image.Ready visible: faceIcon.status !== Image.Ready
width: units.gridUnit * 3 anchors.fill: faceIcon
height: width anchors.bottomMargin: units.smallSpacing
anchors {
top: faceIcon.top
right: faceIcon.right
rightMargin: -units.gridUnit/2
}
usesPlasmaTheme: false usesPlasmaTheme: false
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment