Index

Redbeard Theme Reference V1.0

RBMenuSegmentView : UIView

The theme precedence for theming items (buttons, toggle buttons and custom items) using buttons as an example is: button theme > first theme > bottom theme > button_[identifier] > theme overrides.

The theme precedence for there is only a single button or custom item using buttons as an example is: buttons > singleButton > button_[identifier].

Properties


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.

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.

buttonHeights

Type: decimal

The height of buttons (including toggle buttons) in pt.

buttonPositioner

Type: RBLayoutGridPositioner

The theme of the button positioner. This positions the buttons

button_[identifier]

Type: RBButton

The optional theme of the button for the specified identifier.

buttons

Type: RBButton

The theme of button items.

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

customButton

Type: UIView

The theme of the custom button view. Theming options depend on the view.

customButtonHeights

Type: decimal

The height of custom buttons in pt.

customButton_[identifier]

Type: UIView

The optional theme of the custom button view for the specified identifier.

firstButton

Type: RBButton

The optional theme for the button if it is in the first position.

firstCustomButton

Type: UIView

The optional theme for the custom button if it is in the first position.

header

Type: RBMenuSegmentHeaderView

The theme of the header of the segment.

hidden

Type: boolean

Whether or not the view is hidden.

lastButton

Type: RBButton

The optional theme for the button if it is in the last position.

lastCustomButton

Type: UIView

The optional theme for the custom button if it is in the last position.

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.

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

positioner

Type: RBLayoutGridPositioner

The theme of the positioner. This positions the header and the button container.

singleButton

Type: RBButton

The optional theme if there is only a single item.

singleCustomButton

Type: RBButton

The optional theme if there is only a single custom button.

tintColor

Type: UIColor

The tint color of the view.

tintColorAlpha

Type: decimal (0.0 - 1.0)

The alpha channel of the color.

toastAlertView

Type: RBToastAlertView

The theme of the managed toast alerts on the view.