1
0
鏡像自 https://github.com/Burrit0z/kai 已同步 2025-07-02 01:56:47 +00:00

make not gay

此提交包含在:
Burrit0z
2020-05-21 16:21:48 -04:00
父節點 41fecfce7f
當前提交 6aafd4f65a

查看文件

@ -74,7 +74,7 @@ long long lastPercentage;
}
[label setTextColor:[UIColor whiteColor]];
label.lineBreakMode = NSLineBreakByWordWrapping;
label.numberOfLines = 0;
label.numberOfLines = 1;
[label setText:labelText];
_UIBatteryView *battery = [[_UIBatteryView alloc] init];
@ -89,7 +89,7 @@ long long lastPercentage;
[percentLabel setTextColor:[UIColor whiteColor]];
percentLabel.lineBreakMode = NSLineBreakByWordWrapping;
[percentLabel setTextAlignment:NSTextAlignmentRight];
percentLabel.numberOfLines = 0;
percentLabel.numberOfLines = 1;
[percentLabel setText:[NSString stringWithFormat:@"%ld%%", (long)((NSInteger) batteryPercentage)]];
if(charging) battery.chargingState = 1;
battery.showsInlineChargingIndicator = YES;