Add color for HD photos label

This commit is contained in:
Kylmakalle 2025-07-09 17:09:57 +03:00
parent 387faa4b2e
commit ff1ff8acdc

View File

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