refactoring: reformat all layout sources

* preparation for extracting the toolbar