Mjulian/sogo ui fixes

This pull request fix some custom theme issues with had after the merge from inverse master.