Fix alignment of the ApplicationSwitcher button

The sign in button has a different size when you are logged in, where the account avatar was being drawn in the middle of the Sign In button. This was causing a weird alignment of the ApplicationSwitcher next to it, as it was adding an extra margin.

This is now fixed by making sure that the width of the button that has to do with account adjusts according to whether you are logged in or not. This makes the ApplicationSwitcher icon move when you log in but looks more natural relatively to the account button.

CURA-8421
This commit is contained in:
Konstantinos Karmas 2021-09-20 16:57:16 +02:00
parent a9968acd6d
commit d844c5f70a
2 changed files with 5 additions and 5 deletions

View file

@ -146,7 +146,7 @@ Item
{
verticalCenter: parent.verticalCenter
right: accountWidget.left
// rightMargin: UM.Theme.getSize("default_margin").width
rightMargin: UM.Theme.getSize("default_margin").width
}
}