Add a GetAppearanceForSubclass method that makes it possible to style custom subclasses differently. Fixes #10724.