63 lines
1.1 KiB
Objective-C
63 lines
1.1 KiB
Objective-C
//
|
|
// UIFont+TLChat.m
|
|
// TLChat
|
|
//
|
|
// Created by 李伯坤 on 16/1/27.
|
|
// Copyright © 2016年 李伯坤. All rights reserved.
|
|
//
|
|
|
|
#import "UIFont+TLChat.h"
|
|
|
|
@implementation UIFont (TLChat)
|
|
|
|
+ (UIFont *) fontNavBarTitle
|
|
{
|
|
return [UIFont boldSystemFontOfSize:17.5f];
|
|
}
|
|
|
|
+ (UIFont *) fontConversationUsername
|
|
{
|
|
return [UIFont systemFontOfSize:17.0f];
|
|
}
|
|
|
|
+ (UIFont *) fontConversationDetail
|
|
{
|
|
return [UIFont systemFontOfSize:14.0f];
|
|
}
|
|
|
|
+ (UIFont *) fontConversationTime
|
|
{
|
|
return [UIFont systemFontOfSize:12.5f];
|
|
}
|
|
|
|
+ (UIFont *) fontFriendsUsername
|
|
{
|
|
return [UIFont systemFontOfSize:17.0f];
|
|
}
|
|
|
|
+ (UIFont *) fontMineNikename
|
|
{
|
|
return [UIFont systemFontOfSize:17.0f];
|
|
}
|
|
|
|
+ (UIFont *) fontMineUsername
|
|
{
|
|
return [UIFont systemFontOfSize:14.0f];
|
|
}
|
|
|
|
+ (UIFont *) fontSettingHeaderAndFooterTitle
|
|
{
|
|
return [UIFont systemFontOfSize:14.0f];
|
|
}
|
|
|
|
+ (UIFont *)fontTextMessageText
|
|
{
|
|
CGFloat size = [[NSUserDefaults standardUserDefaults] doubleForKey:@"CHAT_FONT_SIZE"];
|
|
if (size == 0) {
|
|
size = 16.0f;
|
|
}
|
|
return [UIFont systemFontOfSize:size];
|
|
}
|
|
|
|
@end
|