mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-04-02 03:50:06 +00:00
Add color for HD photos label
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user