Force a content size into the background style item
ClosedPublic

Authored by apol on Mar 9 2018, 7:28 PM.

Details

Summary

Otherwise the background will still be rendered without taking into
account the sizes we offer

Depends on D11190

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Mar 9 2018, 7:28 PM
Restricted Application added a project: Kirigami. · View Herald TranscriptMar 9 2018, 7:28 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested review of this revision.Mar 9 2018, 7:28 PM
ngraham added a subscriber: ngraham.Mar 9 2018, 8:09 PM
ngraham added inline comments.
src/controls/private/PrivateActionToolButton.qml
70

Magic number? Should that be Kirigami.units.LargeSize (18) or Kirigami.units.MediumSize * 2 (16)?

apol added inline comments.Mar 9 2018, 10:57 PM
src/controls/private/PrivateActionToolButton.qml
70

It's just copying the logic that is used above.

mart added a subscriber: mart.Mar 12 2018, 3:27 PM
mart added inline comments.
src/controls/private/PrivateActionToolButton.qml
70

but why a static number at all? the problem is that the v arrow can be outside? but it's in the RowLayout, so its size should be taken into account in implicitWidth?

apol updated this revision to Diff 29505.Mar 14 2018, 2:35 PM

Remove a hardcoded size, so it's there just once.

Note this depends on D11190.

mart accepted this revision.Mar 28 2018, 7:59 PM
This revision is now accepted and ready to land.Mar 28 2018, 7:59 PM
This revision was automatically updated to reflect the committed changes.