add DialogStyle and refactor Settings and Project Structure dialogs to support it