Skip to content

applet: Don't apply left toolbar padding to only search field

Oliver Beard requested to merge work/olib/toolbar-padding into master

Left padding was added to ensure the toolbar looked good and consistent with other applets when the switches were visible, ignoring the case when only the search field was visible. This makes it work in both cases, i.e. no extra space without switches.

The commit wraps the switches in a RowLayout with its own leftMargin, which is only visible when switches are visible.

This would be good for cherry-picking to 5.27, working the same but with checkboxes instead.

image

Edited by Oliver Beard

Merge request reports