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;
|