Index

Redbeard Theme Reference V1.0

RBSimpleCellView : RBBaseCellView

Properties

States

Property: body

The body can accept any additional theming options - this depends on the cell implementation. It has the following states that maybe themed depending on the situation.

_This property has a number sub-state properties that maybe themed, these states are:_

  • disabled: The theme settings to apply if the cell is disabled.
  • highlighted: The theme settings to apply if the cell is highlighted.
  • selected: The theme settings to apply if the cell is selected.
  • alternate: The theme settings to apply if this is the designated 'alternate' cell. Importantly this follows a similar pattern to the 'body' in that it may contain 'disabled', 'highlighted' and 'selected' states.

e.g.

{
    "body":
    {
        "alternate": { ... }
    }
}

Property: body

The body can accept any additional theming options - this depends on the cell implementation. It has the following states that maybe themed depending on the situation.

_This property has a number sub-state properties that maybe themed, these states are:_

  • disabled: The theme settings to apply if the cell is disabled.
  • highlighted: The theme settings to apply if the cell is highlighted.
  • selected: The theme settings to apply if the cell is selected.
  • alternate: The theme settings to apply if this is the designated 'alternate' cell. Importantly this follows a similar pattern to the 'body' in that it may contain 'disabled', 'highlighted' and 'selected' states.

e.g.

{
    "body":
    {
        "alternate": { ... }
    }
}

activityView

Type: RBActivityView

The theme of the managed activity indicator on the view.

alpha

Type: decimal (0.0 - 1.0)

The alpha channel of the view.

backgroundColor

Type: UIColor

The background color of the view.

backgroundColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

body

Type: UIView

The body can accept any additional theming options - this depends on the cell implementation.

borderColor

Type: UIColor

The color to use on the border on the view.

borderColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

borderEdges

Type: UIRectEdge

The edges on which to apply a border.

Options:

  • right
  • all
  • top
  • bottom
  • none
  • left

borderWidth

Type: decimal

The width of the border to use on the view in pt.

button_[identifier]

Type: RBButton

The theme of the button for the specified identifier.

buttons

Type: RBButton

The theme of cell buttons.

contentMode

Type: UIViewContentMode

The content mode of the view.

Options:

  • left
  • right
  • scaleaspectfill
  • topleft
  • redraw
  • scaleaspectfit
  • bottomleft
  • scaletofill
  • bottomright
  • topright
  • center
  • bottom
  • top

cornerRadius

Type: decimal

The rounded corner radius to use on the view in pt.

corners

Type: UIRectCorner

The corners that should be rounded.

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

detailLabel

Type: RBLabel

The theme of the detail label.

hidden

Type: boolean

Whether or not the view is hidden.

imageEnabled

Type: boolean

Whether or not the image should be displayed in the cell.

imageView

Type: RBImageView

The theme of the image view.

imageWidth

Type: decimal

The width of cell image in pt.

layerShadowColor

Type: UIColor

The color to use for the shadow on the view.

layerShadowColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

layerShadowOffset

Type: CGSize

The shadow offset to use.

layerShadowOpacity

Type: decimal

The shadow opacity to use on the view.

layerShadowRadius

Type: decimal

The shadow radius to use on the view in pt.

margin

Type: UIEdgeInsets

The margin to provide around the content.

pillCorners

Type: UIRectCorner

Apply a pill effect. Note this will override any effect of the 'corners' and 'cornerRadius' properties.

Options:

  • all
  • bottomleft
  • topleft
  • bottomright
  • topright

spacing

Type: decimal

The spacing to provide between the child views in pt.

tintColor

Type: UIColor

The tint color of the view.

tintColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

titleLabel

Type: RBLabel

The theme of the title label.

toastAlertView

Type: RBToastAlertView

The theme of the managed toast alerts on the view.