133 lines
4.0 KiB
Objective-C
133 lines
4.0 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,QXThemeFestivalModel,QXThemeModel,QXConfigModel;
|
|
@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;
|
|
|
|
@property (nonatomic,strong)QXThemeModel *model;
|
|
|
|
@property (nonatomic,strong)QXConfigModel *appConfig;
|
|
//默认配置
|
|
+(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
|
|
|
|
|
|
@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;
|
|
|
|
|
|
@property (nonatomic,strong)NSString *tabbarSelectedColor;
|
|
@property (nonatomic,strong)NSString *app_home_bg;
|
|
@property (nonatomic,strong)NSString *logo_shouye;
|
|
@property (nonatomic,strong)NSString *bg_rmfj;
|
|
@property (nonatomic,strong)NSString *bg_wdfj;
|
|
@property (nonatomic,strong)NSString *bg_phb;
|
|
@property (nonatomic,strong)NSString *bg_gfgg;
|
|
@property (nonatomic,strong)NSString *bg_xiaoxi;
|
|
@property (nonatomic,strong)NSString *button_qwg;
|
|
@property (nonatomic,strong)NSString *bg_light;
|
|
|
|
@property (nonatomic,strong)NSString *icon_wdjz;
|
|
@property (nonatomic,strong)NSString *icon_dj;
|
|
@property (nonatomic,strong)NSString *icon_gxzb;
|
|
@property (nonatomic,strong)NSString *icon_wdbb;
|
|
@property (nonatomic,strong)NSString *icon_bzzx;
|
|
@property (nonatomic,strong)NSString *icon_yq;
|
|
@property (nonatomic,strong)NSString *icon_rw;
|
|
@property (nonatomic,strong)NSString *icon_yjfk;
|
|
@property (nonatomic,strong)NSString *icon_gskf;
|
|
@property (nonatomic,strong)NSString *icon_gsrz;
|
|
@property (nonatomic,strong)NSString *icon_wdgd;
|
|
@property (nonatomic,strong)NSString *icon_sz;
|
|
@end
|
|
|
|
/// 节日主题
|
|
@interface QXConfigModel :NSObject
|
|
/// 发红包最小金额
|
|
@property (nonatomic,strong)NSString *red_packet_min_amount;
|
|
/// 发红包手续费
|
|
@property (nonatomic,strong)NSString *red_packet_fee;
|
|
|
|
@end
|
|
NS_ASSUME_NONNULL_END
|