修改温度颜色和字体,版本号

This commit is contained in:
祝发冬
2023-07-21 11:23:35 +08:00
parent 85f50867ae
commit fb139ab149
2 changed files with 6 additions and 6 deletions
@@ -151,14 +151,14 @@
UInt64 mac=[dataContorl hexToTen:backModel.heatingTemperature];
//float TPlabel=mac/10+(mac%10)*0.1;
float temp = mac/10.0;
NSString *stringTemp = [NSString stringWithFormat:@"%.1f",temp];
int temp = mac/10.0;
NSString *stringTemp = [NSString stringWithFormat:@"%d",temp];
UIImage*imageTempNomal=[UIImage imageNamed:@"jiare_normal"];
imageTempNomal=[imageTempNomal imageWaterMarkWithString:stringTemp rect:CGRectMake(20, 25, 60, 40) attribute:@{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:25]}];
imageTempNomal=[imageTempNomal imageWaterMarkWithString:stringTemp rect:CGRectMake(20, 25, 60, 40) attribute:@{NSForegroundColorAttributeName:UIColorFromRGB(0xd2d2d2),NSFontAttributeName:[UIFont systemFontOfSize:25]}];
[heatLightBtn setImage:imageTempNomal forState:UIControlStateNormal];
UIImage*imageTempsel=[UIImage imageNamed:@"jiare_selected"];
imageTempsel=[imageTempsel imageWaterMarkWithString:stringTemp rect:CGRectMake(20, 25, 60, 40) attribute:@{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:18]}];
imageTempsel=[imageTempsel imageWaterMarkWithString:stringTemp rect:CGRectMake(20, 25, 60, 40) attribute:@{NSForegroundColorAttributeName:UIColorFromRGB(0x90F2F6),NSFontAttributeName:[UIFont systemFontOfSize:25]}];
[heatLightBtn setImage:imageTempsel forState:UIControlStateSelected];