修改温度颜色和字体,版本号
This commit is contained in:
+4
-4
@@ -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];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user