mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Update update view to be more iOS 6 like
Not completely finished yet
This commit is contained in:
@@ -29,18 +29,14 @@
|
||||
*/
|
||||
|
||||
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
// defines a button action set (data container)
|
||||
@interface BITStoreButtonData : NSObject {
|
||||
CGPoint _customPadding;
|
||||
}
|
||||
@interface BITStoreButtonData : NSObject
|
||||
|
||||
+ (id)dataWithLabel:(NSString*)aLabel colors:(NSArray*)aColors enabled:(BOOL)flag;
|
||||
+ (id)dataWithLabel:(NSString*)aLabel enabled:(BOOL)flag;
|
||||
|
||||
@property (nonatomic, copy) NSString *label;
|
||||
@property (nonatomic, retain) NSArray *colors;
|
||||
@property (nonatomic, assign, getter=isEnabled) BOOL enabled;
|
||||
|
||||
@end
|
||||
@@ -54,10 +50,7 @@
|
||||
|
||||
// Simulate the Paymeny-Button from the AppStore
|
||||
// The interface is flexible, so there is now fixed order
|
||||
@interface BITStoreButton : UIButton {
|
||||
CAGradientLayer *_gradient;
|
||||
CGPoint _customPadding;
|
||||
}
|
||||
@interface BITStoreButton : UIButton
|
||||
|
||||
- (id)initWithFrame:(CGRect)frame;
|
||||
- (id)initWithPadding:(CGPoint)padding;
|
||||
@@ -73,9 +66,4 @@
|
||||
@property (nonatomic, assign) CGPoint customPadding;
|
||||
- (void)alignToSuperview;
|
||||
|
||||
// helpers to mimic an AppStore button
|
||||
+ (NSArray *)appStoreGreenColor;
|
||||
+ (NSArray *)appStoreBlueColor;
|
||||
+ (NSArray *)appStoreGrayColor;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user