mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Add color for HD photos label
This commit is contained in:
parent
387faa4b2e
commit
ff1ff8acdc
@ -244,7 +244,7 @@
|
||||
CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor);
|
||||
CGContextFillPath(context);
|
||||
} else {
|
||||
CGContextSetStrokeColorWithColor(context, [UIColor whiteColor].CGColor);
|
||||
CGContextSetStrokeColorWithColor(context, highQuality ? [self accentColor].CGColor :[UIColor whiteColor].CGColor);
|
||||
CGContextSetLineWidth(context, lineWidth);
|
||||
CGContextStrokePath(context);
|
||||
}
|
||||
@ -257,7 +257,7 @@
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
CGSize textSize = [label sizeWithFont:font];
|
||||
[[UIColor whiteColor] setFill];
|
||||
[highQuality ? [self accentColor] :[UIColor whiteColor] setFill];
|
||||
[label drawInRect:CGRectMake((size.width - textSize.width) / 2.0f + TGScreenPixel, 4.0f, textSize.width, textSize.height) withFont:font];
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user