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

28 lines
982 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;
@end
extern const UIEdgeInsets TGNeoBubbleMessageViewModelInsets;
extern const CGFloat TGNeoBubbleMessageMetaSpacing;
extern const CGFloat TGNeoBubbleHeaderSpacing;