Skip to content
Commit fdb5626e authored by Marco Martin's avatar Marco Martin
Browse files

Improve alignment of items in the application delegate

Make sure spacing is ok between all the items in the application delegate,
that everything looks very aligned to an ideal grid

* add a background for the icon, so that all the icons look like they're the same square as no two of them look aligned with each other or aligned with anything else
* make sure the install button has the same space all around, the same as the icon background
* for the text that should be perfectly aligned with graphical elements, like the title and the icon background, base off tightBoundingRect, as there aren't simple ways in QML to align text vertically considering only the painted region (without the rest of the line height) and that's the reson why in general text always look all over the place
* with the same trick the text besides the rating stars looks a bit better vertically aligned with them

not everything can ever be aligned *exactly* to the pixel, as fonts will always be tricky, buttons have a single pixel empty padding around, stars are aligned to the circle but not to the square(it's complicated..)
but this way it already looks much cleaner

before:

![image](/uploads/4d5c288f2eb8d7dd711ee339459d4fe2/image.png)

after:

![image](/uploads/7fd70ca3b2bffeea83f332ca16dc1442/image.png)

details of the item alignment, before:

![image](/uploads/2433fa2b2898858dff1cebbdcc057bc0/image.png)

after:

![image](/uploads/8a1c8bd902598a80336187f3c72c5859/image.png)
parent 26a3f497
Pipeline #508345 failed with stage
in 17 seconds
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