mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-12 14:29:24 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
43 lines
1.7 KiB
Objective-C
43 lines
1.7 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
typedef enum
|
|
{
|
|
TGCheckButtonStyleDefault,
|
|
TGCheckButtonStyleDefaultBlue,
|
|
TGCheckButtonStyleBar,
|
|
TGCheckButtonStyleMedia,
|
|
TGCheckButtonStyleGallery,
|
|
TGCheckButtonStyleShare,
|
|
TGCheckButtonStyleChat
|
|
} TGCheckButtonStyle;
|
|
|
|
@interface TGCheckButtonPallete : NSObject
|
|
|
|
@property (nonatomic, readonly) UIColor *defaultBackgroundColor;
|
|
@property (nonatomic, readonly) UIColor *accentBackgroundColor;
|
|
@property (nonatomic, readonly) UIColor *defaultBorderColor;
|
|
@property (nonatomic, readonly) UIColor *mediaBorderColor;
|
|
@property (nonatomic, readonly) UIColor *chatBorderColor;
|
|
@property (nonatomic, readonly) UIColor *checkColor;
|
|
@property (nonatomic, readonly) UIColor *blueColor;
|
|
@property (nonatomic, readonly) UIColor *barBackgroundColor;
|
|
|
|
+ (instancetype)palleteWithDefaultBackgroundColor:(UIColor *)defaultBackgroundColor accentBackgroundColor:(UIColor *)accentBackgroundColor defaultBorderColor:(UIColor *)defaultBorderColor mediaBorderColor:(UIColor *)mediaBorderColor chatBorderColor:(UIColor *)chatBorderColor checkColor:(UIColor *)checkColor blueColor:(UIColor *)blueColor barBackgroundColor:(UIColor *)barBackgroundColor;
|
|
|
|
@end
|
|
|
|
@interface TGCheckButtonView : UIButton
|
|
|
|
- (instancetype)initWithStyle:(TGCheckButtonStyle)style;
|
|
- (instancetype)initWithStyle:(TGCheckButtonStyle)style pallete:(TGCheckButtonPallete *)pallete;
|
|
|
|
- (void)setSelected:(bool)selected animated:(bool)animated;
|
|
- (void)setSelected:(bool)selected animated:(bool)animated bump:(bool)bump;
|
|
- (void)setSelected:(bool)selected animated:(bool)animated bump:(bool)bump completion:(void (^)())completion;
|
|
|
|
- (void)setNumber:(NSUInteger)number;
|
|
|
|
+ (void)resetCache;
|
|
|
|
@end
|