mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
68 lines
1.3 KiB
Objective-C
68 lines
1.3 KiB
Objective-C
#import "TGCameraInterfaceAssets.h"
|
|
#import <CoreText/CoreText.h>
|
|
|
|
#import "LegacyComponentsInternal.h"
|
|
|
|
static NSString *TGCameraEncodeText(NSString *string, int key)
|
|
{
|
|
NSMutableString *result = [[NSMutableString alloc] init];
|
|
|
|
for (int i = 0; i < (int)[string length]; i++)
|
|
{
|
|
unichar c = [string characterAtIndex:i];
|
|
c += key;
|
|
[result appendString:[NSString stringWithCharacters:&c length:1]];
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
@implementation TGCameraInterfaceAssets
|
|
|
|
+ (UIColor *)normalColor
|
|
{
|
|
return [UIColor whiteColor];
|
|
}
|
|
|
|
+ (UIColor *)accentColor
|
|
{
|
|
return UIColorRGB(0xf8d74a);
|
|
}
|
|
|
|
+ (UIColor *)redColor
|
|
{
|
|
return UIColorRGB(0xfe3b30);
|
|
}
|
|
|
|
+ (UIColor *)panelBackgroundColor
|
|
{
|
|
return [UIColor blackColor];
|
|
}
|
|
|
|
+ (UIColor *)buttonColor
|
|
{
|
|
return UIColorRGBA(0x393737, 0.6);
|
|
}
|
|
|
|
+ (UIColor *)transparentPanelBackgroundColor
|
|
{
|
|
return [UIColor colorWithWhite:0.0f alpha:0.5];
|
|
}
|
|
|
|
+ (UIColor *)transparentOverlayBackgroundColor
|
|
{
|
|
return [UIColor colorWithWhite:0.0f alpha:0.7];
|
|
}
|
|
|
|
+ (UIFont *)regularFontOfSize:(CGFloat)size
|
|
{
|
|
return [UIFont fontWithName:TGCameraEncodeText(@"TGDbnfsb.Sfhvmbs", -1) size:size];
|
|
}
|
|
|
|
+ (UIFont *)boldFontOfSize:(CGFloat)size
|
|
{
|
|
return [UIFont fontWithName:TGCameraEncodeText(@"TGDbnfsb.Tfnjcpme", -1) size:size];
|
|
}
|
|
|
|
@end
|