封装KBFont,适配字体

This commit is contained in:
2025-11-25 15:36:16 +08:00
parent 71423df1c0
commit 1eb73f5257
40 changed files with 224 additions and 101 deletions

View File

@@ -281,8 +281,8 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
- (UILabel *)selectedLabel {
if (!_selectedLabel) {
_selectedLabel = [UILabel new];
_selectedLabel.textColor = [UIColor colorWithHex:0x666666];
_selectedLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
_selectedLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_selectedLabel.font = [KBFont medium:13];
// _selectedLabel.text = @"Selected: 0 Skins";
}
return _selectedLabel;
@@ -292,7 +292,7 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
if (!_deleteButton) {
_deleteButton = [UIButton buttonWithType:UIButtonTypeSystem];
[_deleteButton setTitle:KBLocalized(@"Delete") forState:UIControlStateNormal];
_deleteButton.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightSemibold];
_deleteButton.titleLabel.font = [KBFont medium:13];
_deleteButton.layer.cornerRadius = 18;
_deleteButton.layer.borderWidth = 1;
_deleteButton.clipsToBounds = YES;