update label and styler
This commit is contained in:
parent
7d7284bd8d
commit
4e328eeb83
@ -226,16 +226,10 @@
|
||||
if (font) {
|
||||
[attributedString addAttribute:NSFontAttributeName value:font range:range];
|
||||
}
|
||||
} else if ([type isEqualToString:@"link"]) {
|
||||
label.userInteractionEnabled = YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
label.attributedText = attributedString;
|
||||
if ([label isKindOfClass:[MFLabel class]]) {
|
||||
MFLabel *mflabel = (MFLabel *)label;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -498,19 +498,13 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
[self styleLabelH2:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelH3:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontH3];
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelH3:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
label.font = [MFStyler fontH3:genericScaling];
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelH32:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontH32];
|
||||
label.textColor = [UIColor blackColor];
|
||||
+ (void)styleLabelH3:(nonnull UILabel *)label {
|
||||
[self styleLabelH3:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelH32:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -518,9 +512,8 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB1:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontB1];
|
||||
label.textColor = [UIColor blackColor];
|
||||
+ (void)styleLabelH32:(nonnull UILabel *)label {
|
||||
[self styleLabelH32:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB1:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -528,9 +521,8 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB2:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontB2];
|
||||
label.textColor = [UIColor blackColor];
|
||||
+ (void)styleLabelB1:(nonnull UILabel *)label {
|
||||
[self styleLabelB1:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB2:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -538,9 +530,12 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB2:(nonnull UILabel *)label {
|
||||
[self styleLabelB2:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB2:(nonnull UILabel *)label size:(CGFloat)size genericScaling:(BOOL)genericScaling {
|
||||
label.font = [MFStyler fontForBodyWithSize:size genericScaling:genericScaling];
|
||||
label.textColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB3:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -549,8 +544,7 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
}
|
||||
|
||||
+ (void)styleLabelB3:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontB3];
|
||||
label.textColor = [UIColor mfBattleshipGrey];
|
||||
[self styleLabelB3:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelB20:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -559,8 +553,7 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
}
|
||||
|
||||
+ (void)styleLabelB20:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontB20];
|
||||
label.textColor = [UIColor blackColor];
|
||||
[self styleLabelB20:label genericScaling:YES];
|
||||
}
|
||||
|
||||
+ (void)styleLabelTextStyle2:(nonnull UILabel *)label genericScaling:(BOOL)genericScaling {
|
||||
@ -569,8 +562,7 @@ CGFloat const LabelWithInternalButtonLineSpace = 2;
|
||||
}
|
||||
|
||||
+ (void)styleLabelTextStyle2:(nonnull UILabel *)label {
|
||||
label.font = [MFStyler fontB2];
|
||||
label.textColor = [UIColor mfBattleshipGrey];
|
||||
[self styleLabelTextStyle2:label genericScaling:YES];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user