mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-21 04:55:01 +00:00
38 lines
1.2 KiB
Objective-C
38 lines
1.2 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
typedef enum
|
|
{
|
|
TGCheckButtonStyleDefault,
|
|
TGCheckButtonStyleDefaultBlue,
|
|
TGCheckButtonStyleBar,
|
|
TGCheckButtonStyleMedia,
|
|
TGCheckButtonStyleGallery,
|
|
TGCheckButtonStyleShare
|
|
} TGCheckButtonStyle;
|
|
|
|
@interface TGCheckButtonPallete : NSObject
|
|
|
|
@property (nonatomic, readonly) UIImage *defaultBackgroundColor;
|
|
@property (nonatomic, readonly) UIColor *accentBackgroundColor;
|
|
@property (nonatomic, readonly) UIColor *defaultBorderColor;
|
|
@property (nonatomic, readonly) UIColor *mediaBorderColor;
|
|
@property (nonatomic, readonly) UIColor *checkColor;
|
|
@property (nonatomic, readonly) UIColor *blueColor;
|
|
|
|
+ (instancetype)palleteWithDefaultBackgroundColor:(UIColor *)defaultBackgroundColor accentBackgroundColor:(UIColor *)accentBackgroundColor defaultBorderColor:(UIColor *)defaultBorderColor mediaBorderColor:(UIColor *)mediaBorderColor checkColor:(UIColor *)checkColor blueColor:(UIColor *)blueColor;
|
|
|
|
@end
|
|
|
|
@interface TGCheckButtonView : UIButton
|
|
|
|
- (instancetype)initWithStyle:(TGCheckButtonStyle)style;
|
|
|
|
- (void)setSelected:(bool)selected animated:(bool)animated;
|
|
- (void)setSelected:(bool)selected animated:(bool)animated bump:(bool)bump;
|
|
|
|
- (void)setNumber:(NSUInteger)number;
|
|
|
|
+ (void)resetCache;
|
|
|
|
@end
|