Added support for centered text on buttons.