Permalink
Browse files

Remove TUIColor

  • Loading branch information...
1 parent 86d2609 commit a8dfa1665f3dc54886f9d90316f17cc125378990 @jspahrsummers jspahrsummers committed Jul 27, 2012
Showing with 0 additions and 337 deletions.
  1. +0 −12 TwUI.xcodeproj/project.pbxproj
  2. +0 −89 lib/UIKit/TUIColor.h
  3. +0 −235 lib/UIKit/TUIColor.m
  4. +0 −1 lib/UIKit/TUIKit.h
@@ -28,7 +28,6 @@
5EE983C313BE7834005F430D /* TUIButton+Content.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4413BE6E1900C85CB5 /* TUIButton+Content.m */; };
5EE983C413BE7834005F430D /* TUIButton.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4613BE6E1900C85CB5 /* TUIButton.m */; };
5EE983C513BE7834005F430D /* TUICGAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4813BE6E1900C85CB5 /* TUICGAdditions.m */; };
- 5EE983C613BE7834005F430D /* TUIColor.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4A13BE6E1900C85CB5 /* TUIColor.m */; };
5EE983C713BE7834005F430D /* TUIControl+TargetAction.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4B13BE6E1900C85CB5 /* TUIControl+TargetAction.m */; };
5EE983C813BE7834005F430D /* TUIControl.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4D13BE6E1900C85CB5 /* TUIControl.m */; };
5EE983C913BE7834005F430D /* TUIFastIndexPath.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4F13BE6E1900C85CB5 /* TUIFastIndexPath.m */; };
@@ -142,7 +141,6 @@
CB5E322213BE70CA004B7899 /* TUIButton+Content.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4413BE6E1900C85CB5 /* TUIButton+Content.m */; };
CB5E322413BE70CA004B7899 /* TUIButton.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4613BE6E1900C85CB5 /* TUIButton.m */; };
CB5E322613BE70CA004B7899 /* TUICGAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4813BE6E1900C85CB5 /* TUICGAdditions.m */; };
- CB5E322813BE70CA004B7899 /* TUIColor.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4A13BE6E1900C85CB5 /* TUIColor.m */; };
CB5E322913BE70CA004B7899 /* TUIControl+TargetAction.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4B13BE6E1900C85CB5 /* TUIControl+TargetAction.m */; };
CB5E322B13BE70CA004B7899 /* TUIControl.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4D13BE6E1900C85CB5 /* TUIControl.m */; };
CB5E322D13BE70CA004B7899 /* TUIFastIndexPath.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4F13BE6E1900C85CB5 /* TUIFastIndexPath.m */; };
@@ -194,8 +192,6 @@
CBB74C9D13BE6E1900C85CB5 /* TUIButton.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4613BE6E1900C85CB5 /* TUIButton.m */; };
CBB74C9E13BE6E1900C85CB5 /* TUICGAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = CBB74C4713BE6E1900C85CB5 /* TUICGAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
CBB74C9F13BE6E1900C85CB5 /* TUICGAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4813BE6E1900C85CB5 /* TUICGAdditions.m */; };
- CBB74CA013BE6E1900C85CB5 /* TUIColor.h in Headers */ = {isa = PBXBuildFile; fileRef = CBB74C4913BE6E1900C85CB5 /* TUIColor.h */; settings = {ATTRIBUTES = (Public, ); }; };
- CBB74CA113BE6E1900C85CB5 /* TUIColor.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4A13BE6E1900C85CB5 /* TUIColor.m */; };
CBB74CA213BE6E1900C85CB5 /* TUIControl+TargetAction.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4B13BE6E1900C85CB5 /* TUIControl+TargetAction.m */; };
CBB74CA313BE6E1900C85CB5 /* TUIControl.h in Headers */ = {isa = PBXBuildFile; fileRef = CBB74C4C13BE6E1900C85CB5 /* TUIControl.h */; settings = {ATTRIBUTES = (Public, ); }; };
CBB74CA413BE6E1900C85CB5 /* TUIControl.m in Sources */ = {isa = PBXBuildFile; fileRef = CBB74C4D13BE6E1900C85CB5 /* TUIControl.m */; };
@@ -501,8 +497,6 @@
CBB74C4613BE6E1900C85CB5 /* TUIButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIButton.m; sourceTree = "<group>"; };
CBB74C4713BE6E1900C85CB5 /* TUICGAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUICGAdditions.h; sourceTree = "<group>"; };
CBB74C4813BE6E1900C85CB5 /* TUICGAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUICGAdditions.m; sourceTree = "<group>"; };
- CBB74C4913BE6E1900C85CB5 /* TUIColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIColor.h; sourceTree = "<group>"; };
- CBB74C4A13BE6E1900C85CB5 /* TUIColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIColor.m; sourceTree = "<group>"; };
CBB74C4B13BE6E1900C85CB5 /* TUIControl+TargetAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIControl+TargetAction.m"; sourceTree = "<group>"; };
CBB74C4C13BE6E1900C85CB5 /* TUIControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIControl.h; sourceTree = "<group>"; };
CBB74C4D13BE6E1900C85CB5 /* TUIControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIControl.m; sourceTree = "<group>"; };
@@ -794,8 +788,6 @@
CBB74C4613BE6E1900C85CB5 /* TUIButton.m */,
CBB74C4713BE6E1900C85CB5 /* TUICGAdditions.h */,
CBB74C4813BE6E1900C85CB5 /* TUICGAdditions.m */,
- CBB74C4913BE6E1900C85CB5 /* TUIColor.h */,
- CBB74C4A13BE6E1900C85CB5 /* TUIColor.m */,
88CC1F2D13E365B500827793 /* TUIControl+Accessibility.h */,
88CC1F2E13E365B500827793 /* TUIControl+Accessibility.m */,
886EBA7D13D64393006DE018 /* TUIControl+Private.h */,
@@ -973,7 +965,6 @@
CBB74C9C13BE6E1900C85CB5 /* TUIButton.h in Headers */,
CBB74C9E13BE6E1900C85CB5 /* TUICGAdditions.h in Headers */,
30D39A0D156D8F71006ECDAE /* TUIProgressBar.h in Headers */,
- CBB74CA013BE6E1900C85CB5 /* TUIColor.h in Headers */,
CBB74CA313BE6E1900C85CB5 /* TUIControl.h in Headers */,
CBB74CA513BE6E1900C85CB5 /* TUIFastIndexPath.h in Headers */,
CBB74CA913BE6E1900C85CB5 /* TUIGeometry.h in Headers */,
@@ -1290,7 +1281,6 @@
5EE983C313BE7834005F430D /* TUIButton+Content.m in Sources */,
5EE983C413BE7834005F430D /* TUIButton.m in Sources */,
5EE983C513BE7834005F430D /* TUICGAdditions.m in Sources */,
- 5EE983C613BE7834005F430D /* TUIColor.m in Sources */,
5EE983C713BE7834005F430D /* TUIControl+TargetAction.m in Sources */,
5EE983C813BE7834005F430D /* TUIControl.m in Sources */,
5EE983C913BE7834005F430D /* TUIFastIndexPath.m in Sources */,
@@ -1364,7 +1354,6 @@
CBB74C9B13BE6E1900C85CB5 /* TUIButton+Content.m in Sources */,
CBB74C9D13BE6E1900C85CB5 /* TUIButton.m in Sources */,
CBB74C9F13BE6E1900C85CB5 /* TUICGAdditions.m in Sources */,
- CBB74CA113BE6E1900C85CB5 /* TUIColor.m in Sources */,
CBB74CA213BE6E1900C85CB5 /* TUIControl+TargetAction.m in Sources */,
CBB74CA413BE6E1900C85CB5 /* TUIControl.m in Sources */,
CBB74CA613BE6E1900C85CB5 /* TUIFastIndexPath.m in Sources */,
@@ -1452,7 +1441,6 @@
CB5E322213BE70CA004B7899 /* TUIButton+Content.m in Sources */,
CB5E322413BE70CA004B7899 /* TUIButton.m in Sources */,
CB5E322613BE70CA004B7899 /* TUICGAdditions.m in Sources */,
- CB5E322813BE70CA004B7899 /* TUIColor.m in Sources */,
CB5E322913BE70CA004B7899 /* TUIControl+TargetAction.m in Sources */,
CB5E322B13BE70CA004B7899 /* TUIControl.m in Sources */,
CB5E322D13BE70CA004B7899 /* TUIFastIndexPath.m in Sources */,
View
@@ -1,89 +0,0 @@
-/*
- Copyright 2011 Twitter, Inc.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this work except in compliance with the License.
- You may obtain a copy of the License in the LICENSE file, or at:
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface TUIColor : NSObject
-{
- CGColorRef _cgColor; // backing color
- NSColor *_nsColor; // created on demand
-}
-
-+ (TUIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha;
-+ (TUIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
-+ (TUIColor *)colorWithCGColor:(CGColorRef)cgColor;
-+ (TUIColor *)colorWithNSColor:(NSColor *)nsColor;
-+ (TUIColor *)colorWithPatternImage:(NSImage *)image;
-
-- (TUIColor *)initWithWhite:(CGFloat)white alpha:(CGFloat)alpha;
-- (TUIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
-- (TUIColor *)initWithCGColor:(CGColorRef)cgColor;
-- (TUIColor *)initWithPatternImage:(NSImage *)image;
-
-// cached
-+ (TUIColor *)blackColor; // 0.0 white
-+ (TUIColor *)darkGrayColor; // 0.333 white
-+ (TUIColor *)lightGrayColor; // 0.667 white
-+ (TUIColor *)whiteColor; // 1.0 white
-+ (TUIColor *)grayColor; // 0.5 white
-+ (TUIColor *)redColor; // 1.0, 0.0, 0.0 RGB
-+ (TUIColor *)greenColor; // 0.0, 1.0, 0.0 RGB
-+ (TUIColor *)blueColor; // 0.0, 0.0, 1.0 RGB
-+ (TUIColor *)cyanColor; // 0.0, 1.0, 1.0 RGB
-+ (TUIColor *)yellowColor; // 1.0, 1.0, 0.0 RGB
-+ (TUIColor *)magentaColor; // 1.0, 0.0, 1.0 RGB
-+ (TUIColor *)orangeColor; // 1.0, 0.5, 0.0 RGB
-+ (TUIColor *)purpleColor; // 0.5, 0.0, 0.5 RGB
-+ (TUIColor *)brownColor; // 0.6, 0.4, 0.2 RGB
-+ (TUIColor *)clearColor; // 0.0 white, 0.0 alpha
-
-// UIKit Additions
-
-+ (TUIColor *)selectedGradientBottomBlue;
-+ (TUIColor *)graphiteColor;
-
-+ (TUIColor *)linkColor;
-
-/**
- Sets fill and stroke for the current context
- */
-- (void)set;
-
-- (void)setFill;
-- (void)setStroke;
-
-- (TUIColor *)colorWithAlphaComponent:(CGFloat)alpha;
-
-@property (nonatomic, readonly) CGColorRef CGColor;
-
-@property (nonatomic, readonly) CGFloat alphaComponent;
-
-/**
- It is the caller's responsibility to ensure the reciever is an RGBA color. Pass NULL for components you don't care about.
- */
-- (void)getRed:(CGFloat *)r green:(CGFloat *)g blue:(CGFloat *)b alpha:(CGFloat *)a;
-
-/**
- It is the caller's responsibility to ensure the reciever is an Luminance/Alpha color. Pass NULL for components you don't care about.
- */
-- (void)getWhite:(CGFloat *)w alpha:(CGFloat *)a;
-
-/**
- Not cached
- */
-@property (strong, nonatomic, readonly) NSColor *nsColor;
-
-@end
Oops, something went wrong.

0 comments on commit a8dfa16

Please sign in to comment.