Sha256: 3ca7a72c40a8fed79e23e88f75d19be45fa92a3f510aceea89a7494cc62a9b4a

Contents?: true

Size: 469 Bytes

Versions: 19

Compression:

Stored size: 469 Bytes

Contents

class CustomAppearanceLabel < UILabel
end

class CustomAppearanceContainer < UIView
end

Teacup.handler UIView, :redHerring do |view, alpha|
  view.alpha = alpha
end

Teacup::Appearance.new do

  style CustomAppearanceLabel,
    redHerring: 0.75,
    numberOfLines: 3

  style CustomAppearanceContainer,
    backgroundColor: UIColor.whiteColor

  style CustomAppearanceLabel, when_contained_in: CustomAppearanceContainer,
    redHerring: 0.5,
    numberOfLines: 2

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
teacup-2.1.12 app/styles/appearance.rb
teacup-2.1.11 app/styles/appearance.rb
teacup-2.1.10 app/styles/appearance.rb
teacup-2.1.9 app/styles/appearance.rb
teacup-2.1.8 app/styles/appearance.rb
teacup-2.1.7 app/styles/appearance.rb
teacup-2.1.6 app/styles/appearance.rb
teacup-2.1.5 app/styles/appearance.rb
teacup-2.1.4 app/styles/appearance.rb
teacup-2.1.3 app/styles/appearance.rb
teacup-2.1.2 app/styles/appearance.rb
teacup-2.1.1 app/styles/appearance.rb
teacup-2.1.0 app/styles/appearance.rb
teacup-2.0.6 app/styles/appearance.rb
teacup-2.0.5 app/styles/appearance.rb
teacup-2.0.4 app/styles/appearance.rb
teacup-2.0.3 app/styles/appearance.rb
teacup-2.0.2 app/styles/appearance.rb
teacup-2.0.0 app/styles/appearance.rb