State Appearance Customization Sample

There is a plugin called StatesAppearanceCustomizationSample that contains several sample classes that show different ways of customizing states. You could download it from here.

On the other hand, the sample contains these definitions that override standard BTT states: