[PlasmaComponents3] Vertically center button text as well
ClosedPublic

Authored by ngraham on May 30 2019, 4:52 PM.

Details

Summary

The PC3 Button's Label didn't have Layout.FillHeight: true set, so button text was not actually
getting vertically centered in certain circumstances. This patch fixes that.

Found while working on D21503.

Test Plan

Before:

After:

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.May 30 2019, 4:52 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 30 2019, 4:52 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.May 30 2019, 4:52 PM
ngraham edited the summary of this revision. (Show Details)May 30 2019, 4:56 PM
ngraham edited the summary of this revision. (Show Details)May 30 2019, 7:13 PM
ngraham edited the summary of this revision. (Show Details)
apol added a subscriber: apol.May 30 2019, 7:57 PM
apol added inline comments.
src/declarativeimports/plasmacomponents3/Button.qml
56

With it being a RowLayout, shouldn't fillHeight be always true?

ngraham added inline comments.May 30 2019, 10:10 PM
src/declarativeimports/plasmacomponents3/Button.qml
56

Apparently not, because explicitly adding this does make a difference, as the before-and-after images show.

broulik added inline comments.
src/declarativeimports/plasmacomponents3/Button.qml
56

I think he was asking why not just make it true unconditionally

ngraham updated this revision to Diff 58931.May 31 2019, 3:23 AM

Always fill height

ngraham marked 3 inline comments as done.May 31 2019, 3:23 AM
broulik accepted this revision.Jun 3 2019, 4:04 PM
This revision is now accepted and ready to land.Jun 3 2019, 4:04 PM