SEssentialsStyle Class Reference

Inherits from NSObject
Declared in SEssentialsStyle.h
Related samples


SEssentialsStyle is the base class for all styles in ShinobiEssentials. Each control has its own particular style object, which it uses to determine its appearance.

SEssentialsStyle objects are initialized from an instance of SEssentialsTheme. The theme is the base on which any concrete style object is built. This allows us to ensure that controls across an application have a common look and feel.

Style objects can be initialized with or without a particular theme. If a style object is not initialized with a concrete instance of a theme, it uses the global theme provided by SEssentialsTheme.

All concrete style classes inherit from this base class.



DEPRECATED: We create a style object with a theme, but we no longer hold a persistent reference to it. If you wish to update your style object with a theme, you should call applyTheme: instead.

@property (nonatomic, retain) SEssentialsTheme *theme


This defaults to use the global theme but when set it can listen to a specific theme.

Declared In


Instance Methods


Applies the properties of the specified theme to this style object. Each concrete style implementation will use the properties of the theme in its own way.

- (void)applyTheme:(SEssentialsTheme *)theme


For example, the progress indicator style will use the secondary tint color on the theme to set its tint color.

Declared In



Initialize the style with a particular theme.

- (instancetype)initWithTheme:(SEssentialsTheme *)theme

Declared In