Sha256: 2ed82b91fea6d372c4abfa6ab3dfb29a4cd15f35b46e2139faeae909dff64cea

Contents?: true

Size: 718 Bytes

Versions: 26

Compression:

Stored size: 718 Bytes

Contents

Teacup::Stylesheet.new :base do
  back_color = UIColor.grayColor
  dark_color = UIColor.blackColor
  mid_color = UIColor.redColor

  style UIView,
    backgroundColor: back_color,
    nav_btn_tint: mid_color

  style :custom_label,
    text: 'App Stuff!',
    backgroundColor: UIColor.clearColor,
    numberOfLines: 0,
    font: UIFont.boldSystemFontOfSize(40),
    textColor: UIColor.whiteColor,
    shadowColor: UIColor.blackColor,
    textAlignment: UITextAlignmentCenter,
    layer: {
      transform: identity,
      shadowRadius: 20,
      shadowOpacity: 0.5,
      masksToBounds: false
    }

  style :custom_button,
    width: 142,
    height: 34,
    title: "Button"

  style :custom_switch,
    on: true

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
teacup-1.3.4 samples/AutoLayout/lib/styles/base.rb
teacup-1.3.3 samples/AutoLayout/lib/styles/base.rb
teacup-1.3.2 samples/AutoLayout/styles/base.rb
teacup-1.3.1 samples/AutoLayout/styles/base.rb
teacup-1.3.0 samples/AutoLayout/styles/base.rb
teacup-1.2.9 samples/AutoLayout/styles/base.rb