移除旧的房间进度条背景图像,新增房间进度条组图像,并更新相关的 Contents.json 文件以反映更改。同时,注释掉了比值标签的发光和描边效果代码,以提升代码整洁性。

This commit is contained in:
edwinQQQ
2025-09-19 11:52:24 +08:00
parent 651db0121b
commit 55e78cade4
4 changed files with 14 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "图层 18 拷贝@3x.png", "filename" : "组 1@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View File

@@ -1144,22 +1144,22 @@
- (UILabel *)ratioLabel { - (UILabel *)ratioLabel {
if (!_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.textAlignment = NSTextAlignmentCenter;
_ratioLabel.transform = CGAffineTransformMakeRotation(M_PI_2); // 90 _ratioLabel.transform = CGAffineTransformMakeRotation(M_PI_2); // 90
// // //
_ratioLabel.layer.shadowColor = [UIColor whiteColor].CGColor; // _ratioLabel.layer.shadowColor = [UIColor whiteColor].CGColor;
_ratioLabel.layer.shadowOffset = CGSizeZero; // _ratioLabel.layer.shadowOffset = CGSizeZero;
_ratioLabel.layer.shadowRadius = 3.0; // _ratioLabel.layer.shadowRadius = 3.0;
_ratioLabel.layer.shadowOpacity = 0.8; // _ratioLabel.layer.shadowOpacity = 0.8;
_ratioLabel.layer.masksToBounds = NO; // _ratioLabel.layer.masksToBounds = NO;
//
// // //
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"0/0"]; // NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"0/0"];
[attributedString addAttribute:NSStrokeColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, attributedString.length)]; // [attributedString addAttribute:NSStrokeColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, attributedString.length)];
[attributedString addAttribute:NSStrokeWidthAttributeName value:@(-2.0) range:NSMakeRange(0, attributedString.length)]; // [attributedString addAttribute:NSStrokeWidthAttributeName value:@(-2.0) range:NSMakeRange(0, attributedString.length)];
_ratioLabel.attributedText = attributedString; // _ratioLabel.attributedText = attributedString;
} }
return _ratioLabel; return _ratioLabel;
} }