From a9de95a1eb494a08dcb96f6cd92af9c451d20f04 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Tue, 16 Jun 2020 14:41:52 +0200 Subject: [PATCH] Fix minor visual issues The following issues are fixed: * The visibility of the placeholder rectangle, according the existence of the avatar image * The initial letter not being visible in the dark theme * Vertical alignment of the avatar CURA-7418 --- resources/qml/Account/UserOperations.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/qml/Account/UserOperations.qml b/resources/qml/Account/UserOperations.qml index 68bac07ec1..e996e41b20 100644 --- a/resources/qml/Account/UserOperations.qml +++ b/resources/qml/Account/UserOperations.qml @@ -24,12 +24,13 @@ Column AvatarImage { id: avatar + anchors.verticalCenter: parent.verticalCenter width: UM.Theme.getSize("main_window_header").height height: UM.Theme.getSize("main_window_header").height source: profile["profile_image_url"] ? profile["profile_image_url"] : "" - outlineColor: "transparent" + outlineColor: UM.Theme.getColor("main_background") } Rectangle { @@ -37,13 +38,16 @@ Column width: avatar.width height: avatar.height radius: width + anchors.verticalCenter: parent.verticalCenter color: UM.Theme.getColor("action_button_disabled") + visible: !avatar.hasAvatar Label { id: initialLabel anchors.centerIn: parent text: profile["username"].charAt(0).toUpperCase() font: UM.Theme.getFont("large_bold") + color: UM.Theme.getColor("text") verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter renderType: Text.NativeRendering