Skip to content

Instantly share code, notes, and snippets.

@twerth
Last active December 15, 2015 01:08
Show Gist options
  • Save twerth/5177344 to your computer and use it in GitHub Desktop.
Save twerth/5177344 to your computer and use it in GitHub Desktop.
A simple Color wrapper for RubyMotion
# RubyMotion
class Color < UIColor
class << self
alias :clear :clearColor
alias :white :whiteColor
alias :lightgray :lightGrayColor
alias :gray :grayColor
alias :darkgray :darkGrayColor
alias :black :blackColor
alias :red :redColor
alias :green :greenColor
alias :blue :blueColor
alias :yellow :yellowColor
alias :orange :orangeColor
alias :purple :purpleColor
alias :brown :brownColor
alias :cyan :cyanColor
alias :magenta :magentaColor
alias :table_view :groupTableViewBackgroundColor
alias :scroll_view :scrollViewTexturedBackgroundColor
alias :flipside :viewFlipsideBackgroundColor
alias :under_page :underPageBackgroundColor
alias :light_text :lightTextColor
alias :dark_text :darkTextColor
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment