Last active
December 15, 2015 01:08
-
-
Save twerth/5177344 to your computer and use it in GitHub Desktop.
A simple Color wrapper for RubyMotion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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