| | |
| | | Width = Application.GetRealWidth(190), |
| | | Text = room.Name, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextSize=10, |
| | | IsBold=true |
| | | }; |
| | | roomNameBackground.AddChidren(roomName); |
| | | |
| | |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(58), |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = Math.Abs(room.Temperatrue) <= 0 ? "--℃" : $"{room.Temperatrue}℃" |
| | | Text = Math.Abs(room.Temperatrue) <= 0 ? "--℃" : $"{room.Temperatrue}℃", |
| | | TextSize=14 |
| | | }; |
| | | roomTemperatureBackground.AddChidren(temperatureText); |
| | | |
| | |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(58), |
| | | Gravity = Gravity.CenterVertical, |
| | | Text = Math.Abs(room.Temperatrue) <= 0 ? "--%" : $"{room.Humidity}%" |
| | | Text = Math.Abs(room.Temperatrue) <= 0 ? "--%" : $"{room.Humidity}%", |
| | | TextSize=14 |
| | | }; |
| | | roomTemperatureBackground.AddChidren(humidityText); |
| | | |