Improve grid icon layout in filepicker dialog
Summary:
Icon grid layout now changes depending on the dialog window size.
As a side effect, this patch improves the grid spacing in icons-on-top mode by making it looser for small icons (which gives the labels more space) and tighter for large icons (which allows more to be seen at once).
BUG: 334099
Fixed-IN: 5.46
Test Plan:
Before:
After:
Works just as well when scaling is used:
Reviewers: Frameworks, VDG, ngraham, rkflx
Reviewed By: VDG, ngraham, rkflx
Subscribers: abetts, rkflx, ngraham, Frameworks
Tags: Frameworks
Maniphest Tasks: T8552
Differential Revision: https://phabricator.kde.org/D12306