Browse Source

Make avatar image border a bit wider

This prevents a white edge from showing

CURA-5772
Jaime van Kessel 6 years ago
parent
commit
9f246910bc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      resources/qml/Account/AvatarImage.qml

+ 4 - 1
resources/qml/Account/AvatarImage.qml

@@ -44,7 +44,10 @@ Item
     UM.RecolorImage
     {
         id: profileImageOutline
-        anchors.fill: parent
+        anchors.centerIn: parent
+        // Make it a bit bigger than it has to, otherwise it sometimes shows a white border.
+        width: parent.width + 2
+        height: parent.height + 2
         source: UM.Theme.getIcon("circle_outline")
         sourceSize: Qt.size(parent.width, parent.height)
         color: UM.Theme.getColor("account_widget_ouline_active")