1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Watch/Extension/TGNeoBubbleMessageViewModel.h
2016-02-25 01:03:51 +01:00

30 lines
1012 B
Objective-C

#import "TGNeoMessageViewModel.h"
#import "TGNeoLabelViewModel.h"
#import "TGNeoForwardHeaderViewModel.h"
#import "TGNeoReplyHeaderViewModel.h"
@class TGBridgeMessage;
@class TGBridgeUser;
@interface TGNeoBubbleMessageViewModel : TGNeoMessageViewModel
@property (nonatomic, readonly) TGNeoLabelViewModel *authorNameModel;
@property (nonatomic, strong) TGNeoForwardHeaderViewModel *forwardHeaderModel;
@property (nonatomic, readonly) TGNeoReplyHeaderViewModel *replyHeaderModel;
- (CGSize)contentContainerSizeWithContainerSize:(CGSize)containerSize;
- (CGSize)layoutHeaderModelsWithContainerSize:(CGSize)containerSize;
- (UIColor *)normalColorForMessage:(TGBridgeMessage *)message;
- (UIColor *)subtitleColorForMessage:(TGBridgeMessage *)message;
- (UIColor *)accentColorForMessage:(TGBridgeMessage *)message;
+ (CGFloat)bodyTextFontSize;
@end
extern const UIEdgeInsets TGNeoBubbleMessageViewModelInsets;
extern const CGFloat TGNeoBubbleMessageMetaSpacing;
extern const CGFloat TGNeoBubbleHeaderSpacing;