UI: Add alignment enums
Fix code formating
Merge pull request #1230 from cinaera/alignment

UI: Use alignment enums