Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
@@ -0,0 +1,38 @@
#import "TGAttachmentGifCell.h"
#import <LegacyComponents/LegacyComponents.h>
NSString *const TGAttachmentGifCellIdentifier = @"AttachmentGifCell";
@implementation TGAttachmentGifCell
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self != nil)
{
_typeLabel = [[UILabel alloc] initWithFrame:CGRectZero];
_typeLabel.backgroundColor = [UIColor clearColor];
_typeLabel.font = TGBoldSystemFontOfSize(13);
_typeLabel.textColor = [UIColor whiteColor];
_typeLabel.text = @"GIF";
[self addSubview:_typeLabel];
[_typeLabel sizeToFit];
_gradientView.hidden = false;
[self bringSubviewToFront:_cornersView];
}
return self;
}
- (void)layoutSubviews
{
[super layoutSubviews];
CGSize typeSize = _typeLabel.frame.size;
_typeLabel.frame = CGRectMake(self.frame.size.width - typeSize.width - 3.0, self.frame.size.height - typeSize.height - 1.0, typeSize.width, typeSize.height);
}
@end