增加换肤功能
This commit is contained in:
46
QXLive/Tabbar/TabbarCustomView/QXTabbarConfig.m
Normal file
46
QXLive/Tabbar/TabbarCustomView/QXTabbarConfig.m
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// QXTabbarConfig.m
|
||||
// FreeTabbar_JoeJin
|
||||
//
|
||||
// Created by J-Mac on 2024/5/24.
|
||||
// Copyright © 2024 JoeJin-QQ:853105953. All rights reserved.
|
||||
//
|
||||
|
||||
#import "QXTabbarConfig.h"
|
||||
|
||||
@implementation QXTabbarConfig
|
||||
|
||||
static id _instance = nil;
|
||||
|
||||
+ (instancetype)shareInstance {
|
||||
return [[self alloc] init];
|
||||
}
|
||||
|
||||
+ (instancetype)allocWithZone:(struct _NSZone *)zone {
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
_instance = [super allocWithZone:zone];
|
||||
});
|
||||
return _instance;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
_instance = [super init];
|
||||
[self configNormal];
|
||||
});
|
||||
return _instance;
|
||||
}
|
||||
|
||||
- (void)configNormal {
|
||||
_norTitleColor = RGB16(0x999999);//[UIColor colorWithHexString:@"#808080"];
|
||||
_selTitleColor = RGB16(0x333333);//[UIColor colorWithHexString:@"#d81e06"];
|
||||
_imageSize = CGSizeMake(24, 24);
|
||||
_titleFont = 12.f;
|
||||
_titleOffset = 5.f;
|
||||
_imageOffset = 5.f;
|
||||
_titleHeight = 12.f;
|
||||
_bgImageOffset = 20.f;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user