1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 01:19:42 +01:00
Telegram/Watch/Extension/TGNeoBubbleMessageViewModel.h

30 lines
1012 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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;
2016-02-25 01:03:51 +01:00
+ (CGFloat)bodyTextFontSize;
2015-10-01 18:19:52 +02:00
@end
extern const UIEdgeInsets TGNeoBubbleMessageViewModelInsets;
extern const CGFloat TGNeoBubbleMessageMetaSpacing;
extern const CGFloat TGNeoBubbleHeaderSpacing;