移除旧的房间进度条背景图像,新增房间进度条组图像,并更新相关的 Contents.json 文件以反映更改。同时,注释掉了比值标签的发光和描边效果代码,以提升代码整洁性。
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "图层 18 拷贝@3x.png",
|
||||
"filename" : "组 1@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
BIN
YuMi/Assets.xcassets/1.0.17/room_boom_progress_bar_bg.imageset/组 1@3x.png
vendored
Normal file
BIN
YuMi/Assets.xcassets/1.0.17/room_boom_progress_bar_bg.imageset/组 1@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
@@ -1144,22 +1144,22 @@
|
||||
|
||||
- (UILabel *)ratioLabel {
|
||||
if (!_ratioLabel) {
|
||||
_ratioLabel = [UILabel labelInitWithText:@"0/0" font:kFontMedium(14) textColor:[UIColor blackColor]];
|
||||
_ratioLabel = [UILabel labelInitWithText:@"0/0" font:kFontMedium(12) textColor:UIColorFromRGB(0x292601)];
|
||||
_ratioLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_ratioLabel.transform = CGAffineTransformMakeRotation(M_PI_2); // 顺时针旋转90度
|
||||
|
||||
// 添加发光效果
|
||||
_ratioLabel.layer.shadowColor = [UIColor whiteColor].CGColor;
|
||||
_ratioLabel.layer.shadowOffset = CGSizeZero;
|
||||
_ratioLabel.layer.shadowRadius = 3.0;
|
||||
_ratioLabel.layer.shadowOpacity = 0.8;
|
||||
_ratioLabel.layer.masksToBounds = NO;
|
||||
|
||||
// 添加文字描边效果
|
||||
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"0/0"];
|
||||
[attributedString addAttribute:NSStrokeColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, attributedString.length)];
|
||||
[attributedString addAttribute:NSStrokeWidthAttributeName value:@(-2.0) range:NSMakeRange(0, attributedString.length)];
|
||||
_ratioLabel.attributedText = attributedString;
|
||||
// // 添加发光效果
|
||||
// _ratioLabel.layer.shadowColor = [UIColor whiteColor].CGColor;
|
||||
// _ratioLabel.layer.shadowOffset = CGSizeZero;
|
||||
// _ratioLabel.layer.shadowRadius = 3.0;
|
||||
// _ratioLabel.layer.shadowOpacity = 0.8;
|
||||
// _ratioLabel.layer.masksToBounds = NO;
|
||||
//
|
||||
// // 添加文字描边效果
|
||||
// NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"0/0"];
|
||||
// [attributedString addAttribute:NSStrokeColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, attributedString.length)];
|
||||
// [attributedString addAttribute:NSStrokeWidthAttributeName value:@(-2.0) range:NSMakeRange(0, attributedString.length)];
|
||||
// _ratioLabel.attributedText = attributedString;
|
||||
}
|
||||
return _ratioLabel;
|
||||
}
|
||||
|
Reference in New Issue
Block a user