2025-08-08 10:49:36 +08:00
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
|
2025-08-14 09:40:25 +08:00
|
|
|
|
|
|
|
|
@interface QXThemeModel : NSObject
|
|
|
|
|
/**
|
|
|
|
|
app背景图片 app_bg
|
|
|
|
|
首页选中 home_sel
|
|
|
|
|
首页正常 home_nor
|
|
|
|
|
广场选中 find_sel
|
|
|
|
|
广场正常 find_nor
|
|
|
|
|
消息选中 msg_sel
|
|
|
|
|
消息正常 msg_nor
|
|
|
|
|
我的选中 mine_sel
|
|
|
|
|
我的正常 mine_nor
|
|
|
|
|
主题色 theme_color
|
|
|
|
|
按钮文字色 btn_text_color
|
|
|
|
|
*/
|
|
|
|
|
/// app背景图片
|
|
|
|
|
@property (nonatomic,strong)NSString *app_bg;
|
|
|
|
|
/// 首页选中
|
|
|
|
|
@property (nonatomic,strong)NSString *home_sel;
|
|
|
|
|
/// 首页正常
|
|
|
|
|
@property (nonatomic,strong)NSString *home_nor;
|
|
|
|
|
/// 广场选中
|
|
|
|
|
@property (nonatomic,strong)NSString *find_sel;
|
|
|
|
|
/// 广场正常
|
|
|
|
|
@property (nonatomic,strong)NSString *find_nor;
|
|
|
|
|
/// 消息选中
|
|
|
|
|
@property (nonatomic,strong)NSString *msg_sel;
|
|
|
|
|
/// 消息正常
|
|
|
|
|
@property (nonatomic,strong)NSString *msg_nor;
|
|
|
|
|
/// 我的选中
|
|
|
|
|
@property (nonatomic,strong)NSString *mine_sel;
|
|
|
|
|
/// 我的正常
|
|
|
|
|
@property (nonatomic,strong)NSString *mine_nor;
|
|
|
|
|
/// 主题色
|
|
|
|
|
@property (nonatomic,strong)NSString *theme_color;
|
|
|
|
|
/// 按钮颜色
|
|
|
|
|
@property (nonatomic,strong)NSString *btn_text_color;
|
|
|
|
|
@end
|
|
|
|
|
|
2025-08-08 10:49:36 +08:00
|
|
|
NS_ASSUME_NONNULL_END
|