align Pushbuttons' <pressed>/<unpressed> images

Bug #1654278 reported by ronso0 on 2017-01-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

(I seem to remember a bug report on this but can' find it)

When defining a background image for a pushbutton in <pressed> and <unpressed> tags, it will align left when it's smaller/bigger than the button.
Setting image and alignment per state via qss is working.
Setting alignment via qss and image via button template is not.

ronso0 (ronso0) on 2017-01-05
summary: - center Pushbuttons' <pressed>/<unpressed> images
+ align Pushbuttons' <pressed>/<unpressed> images
jus (jus) wrote :

> (I seem to remember a bug report on this but can' find it)

This one ? lp:1399245

ronso0 (ronso0) wrote :

> This one ? lp:1399245
Hmmaybe it was this one.
But what I noticed now seems to be different:
Backpath is bigger and nicely scaled to fit the Widget, but it's always aligned to the left, regardless of 'background-position: center;' in qss.
Button text from <state_X_text> is always centered using 'text-align: center;', no matter if <Alignment> in button.xml is defined.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers