57 lines
1.5 KiB
Objective-C
57 lines
1.5 KiB
Objective-C
//
|
|
// QXConfig.h
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/4/28.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "QXShareView.h"
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@class QXTabbarModel,QXShareViewModel;
|
|
@interface QXConfig : NSObject
|
|
/// 普通字体黑色 default is # 000000
|
|
@property (nonatomic,strong)UIColor * textColor;
|
|
/// 主题色 default is # 0dffb9
|
|
@property (nonatomic,strong)UIColor * themeColor;
|
|
/// 提示字体颜色 default is #9b9b9b
|
|
@property (nonatomic,strong)UIColor * placehoulderTextColor;
|
|
/// 按钮字体颜色 default is #333333
|
|
@property (nonatomic,strong)UIColor * btnTextColor;
|
|
/// 背景图片 default is green
|
|
@property (nonatomic,strong)NSString * backgroundImage;
|
|
/// 底部工具栏
|
|
@property (nonatomic,strong)NSArray <QXTabbarModel*>*tabbarArray;
|
|
///
|
|
@property (nonatomic,strong)NSArray <QXShareViewModel*>*sharePlatforms;
|
|
//默认配置
|
|
+(QXConfig*)defaultConfig;
|
|
|
|
+(QXConfig*)shared;
|
|
/// 获取普通字体颜色
|
|
+(UIColor*)textColor;
|
|
/// 获取提示文字颜色色
|
|
+(UIColor*)placehoulderTextColor;
|
|
/// 获取主题色
|
|
+(UIColor*)themeColor;
|
|
/// 获取按钮字体色
|
|
+(UIColor*)btnTextColor;
|
|
/// 主题色
|
|
+(NSString*)backgroundImage;
|
|
/// tabbar
|
|
+(NSArray*)tabbarArray;
|
|
/// tabbar
|
|
+(NSArray*)sharePlatforms;
|
|
/// 保存服务端返回主题配置
|
|
+(void)saveConfigWithDict:(NSDictionary*)config;
|
|
|
|
@end
|
|
|
|
@interface QXTabbarModel : NSObject
|
|
@property (nonatomic,strong)NSString *selectedImage;
|
|
@property (nonatomic,strong)NSString *normalImage;
|
|
@property (nonatomic,strong)NSString *title;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|