[Style KCM] Fit widget style preview better
ClosedPublic

Authored by broulik on Dec 10 2019, 10:33 AM.

Details

Summary

In case the widget style is too wide scale it down if necessary.
The delegates are already quite large as they is so I'd prefer not having them any bigger (or dynamically adjust), or else I will only be able to fix a single column of previews now.

Test Plan

Before


After

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Dec 10 2019, 10:33 AM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 10 2019, 10:33 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Dec 10 2019, 10:33 AM

Could we scale the previews within the delegates down a bit instead?

Could we scale the previews within the delegates down a bit instead?

Oooh, good idea. I bet I could just use scale and everything should magically work. Not sure how blurry it will get, though, but definitely worth a try.

broulik updated this revision to Diff 71170.Dec 10 2019, 11:15 AM
broulik retitled this revision from [Style KCM] Horizontally center widget style preview to [Style KCM] Fit widget style preview better.
broulik edited the summary of this revision. (Show Details)
broulik edited the test plan for this revision. (Show Details)
  • Scale down if necessary
ngraham accepted this revision.Dec 10 2019, 11:31 AM

Nice!

This revision is now accepted and ready to land.Dec 10 2019, 11:31 AM
This revision was automatically updated to reflect the committed changes.