封装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

@@ -57,8 +57,8 @@
- (UILabel *)leftLabel {
if (!_leftLabel) {
_leftLabel = [UILabel new];
_leftLabel.textColor = [UIColor colorWithHex:0x1B1F1A];
_leftLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightSemibold];
_leftLabel.textColor = [UIColor colorWithHex:KBBlackValue];
_leftLabel.font = [KBFont medium:16];
_leftLabel.text = @"Dopamine";
}
return _leftLabel;
@@ -67,7 +67,7 @@
if (!_rightLabel) {
_rightLabel = [UILabel new];
_rightLabel.textColor = [UIColor colorWithHex:KBColorValue];
_rightLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
_rightLabel.font = [KBFont regular:13];
_rightLabel.textAlignment = NSTextAlignmentRight;
_rightLabel.text = @"Download: 1 Million";
}