This commit is contained in:
2025-12-11 16:18:00 +08:00
parent be1d1ad70d
commit e4442afe72
4 changed files with 11 additions and 9 deletions

View File

@@ -107,11 +107,11 @@
// key_icons // key_icons
NSDictionary *iconShortNames = nil; NSDictionary *iconShortNames = nil;
if ([skin[@"key_icons"] isKindOfClass:NSDictionary.class]) { // if ([skin[@"key_icons"] isKindOfClass:NSDictionary.class]) {
iconShortNames = skin[@"key_icons"]; // iconShortNames = skin[@"key_icons"];
} else { // } else {
iconShortNames = [KBSkinInstallBridge defaultIconShortNames]; iconShortNames = [KBSkinInstallBridge defaultIconShortNames];
} // }
NSURL *containerURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:AppGroup]; NSURL *containerURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:AppGroup];
if (!containerURL) { if (!containerURL) {

View File

@@ -67,8 +67,8 @@ static NSString * const kInnerTagCellId = @"kInnerTagCellId";
} }
} }
} }
// 32 8 8 static const CGFloat kTagHeight = 24.0;
return rows * 32 + (rows - 1) * 8 + 16; return rows * kTagHeight + (rows - 1) * 8;
} }
#pragma mark - Lazy #pragma mark - Lazy

View File

@@ -17,11 +17,13 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy, nullable) NSString *themeDownload; @property (nonatomic, copy, nullable) NSString *themeDownload;
@property (nonatomic, assign) NSInteger themeStyle; @property (nonatomic, assign) NSInteger themeStyle;
@property (nonatomic, copy, nullable) NSString *themePreviewImageUrl; @property (nonatomic, copy, nullable) NSString *themePreviewImageUrl;
@property (nonatomic, assign) BOOL themeStatus;
@property (nonatomic, assign) NSInteger themePurchasesNumber; @property (nonatomic, assign) NSInteger themePurchasesNumber;
@property (nonatomic, assign) NSInteger sort; @property (nonatomic, assign) NSInteger sort;
@property (nonatomic, assign) BOOL isFree; @property (nonatomic, assign) BOOL isFree;
/// 是否购买
@property (nonatomic, assign) BOOL isPurchased; @property (nonatomic, assign) BOOL isPurchased;
/// 下载ZIP
@property (nonatomic, copy, nullable) NSString *themeDownloadUrl;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@@ -22,8 +22,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy, nullable) NSString *themeDownload; @property (nonatomic, copy, nullable) NSString *themeDownload;
/// 风格类型(接口返回 themeStyle /// 风格类型(接口返回 themeStyle
@property (nonatomic, assign) NSInteger themeStyle; @property (nonatomic, assign) NSInteger themeStyle;
/// 是否上架 /// 是否购买
@property (nonatomic, assign, getter=isThemeStatus) BOOL themeStatus; @property (nonatomic, assign) BOOL isPurchased;
/// 购买次数 /// 购买次数
@property (nonatomic, assign) NSInteger themePurchasesNumber; @property (nonatomic, assign) NSInteger themePurchasesNumber;
/// 预览图 /// 预览图