Sha256: 95f3fd255bc7117678f8e57922ac1662f03c6970b8612e20e5dd1a5d38cb7ed4

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

include StatusBar

Teacup::Stylesheet.new :status_bar_sheet do

  style :status_bar_view,
    height: 20,
    left: 0,
    top: 20,
    clipsToBounds: true,
    landscape: {
      width: "100%"
    },
    portrait: {
      width: "100%"
    }

  style UIView,
    height: 20,
    left: 0

  style UILabel,
    adjustsFontSizeToFitWidth: false,
    textAlignment: StatusBar::Helper.label_alignment,
    baselineAdjustment: UIBaselineAdjustmentAlignCenters,
    textColor: StatusBar::Helper.label_color,
    font: StatusBar::Helper.label_font

  style UIImageView,
    left: 0,
    top: 3,
    width: 14,
    height: 14

  style :standard_view,
    height: 20,
    landscape: {
      width: "100%"
    },
    portrait: {
      width: "100%"
    }



  style :notice_view, extends: :standard_view,
    top: 20

  style :notice_label, extends: :standard_view



  style :activity_view, extends: :standard_view,
    top: 20

  style :activity_label, extends: :standard_view

  style :activity_spinner,
    left: 0,
    top: 5,
    width: 14,
    height: 14,
    activityIndicatorViewStyle: UIActivityIndicatorViewStyleWhite,
    hidesWhenStopped: true,
    color: StatusBar::Helper.label_color,
    transform: CGAffineTransformMakeScale(0.75, 0.75)



  style :success_view, extends: :standard_view,
    top: 20

  style :success_label, extends: :standard_view

  style :success_image,
    image: "success".uiimage.overlay(StatusBar::Helper.label_color)



  style :error_view, extends: :standard_view,
    top: 20

  style :error_label, extends: :standard_view

  style :error_image,
    image: "error".uiimage.overlay(StatusBar::Helper.label_color)

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_bar-0.2.3 lib/project/style.rb
status_bar-0.2.2 lib/project/style.rb
status_bar-0.2.1 lib/project/style.rb