More consistent formatting.
Refactoring: interface of StyleManager changed, redundancy reduced with eliminating attributes storing the current style.