Backport 2.x theme implementation method.