| | |
| | | { |
| | | #if __IOS__ |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(120+20), |
| | | Y = Application.GetRealHeight(120+25), |
| | | Width = Application.GetRealWidth(260-40), |
| | | Height = Application.GetRealWidth(260-40), |
| | | OpenAngle = 160, |
| | | ThumbImagePath = "FunctionIcon/AC/DiyThumbIconOn.png", |
| | | ThumbImagePath = aC.on_off == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png", |
| | | ThumbImageHeight = Application.GetRealWidth(50), |
| | | ProgressBarColor = aC.on_off == "on"? CSS_Color.MainColor :CSS_Color.PromptingColor2, |
| | | MinValue = 16, |
| | |
| | | Progress = aC.curTemp, |
| | | IsClickable = true, |
| | | ArcColor = CSS_Color.BackgroundColor, |
| | | SeekBarPadding = Application.GetRealWidth(2), |
| | | SeekBarPadding = Application.GetRealWidth(8), |
| | | #else |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(120 + 40), |
| | | Width = Application.GetRealWidth(260 - 40), |
| | | Height = Application.GetRealWidth(260 - 40), |
| | | OpenAngle = 160, |
| | | ThumbImagePath = "FunctionIcon/AC/DiyThumbIconOn.png", |
| | | ThumbImagePath = aC.on_off == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png", |
| | | ThumbImageHeight = Application.GetRealWidth(50), |
| | | ProgressBarColor = aC.on_off == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2, |
| | | MinValue = 16, |
| | |
| | | Progress = aC.curTemp, |
| | | IsClickable = true, |
| | | ArcColor = CSS_Color.BackgroundColor, |
| | | SeekBarPadding = Application.GetRealWidth(5), |
| | | SeekBarPadding = Application.GetRealWidth(7), |
| | | #endif |
| | | }; |
| | | controlView.AddChidren(arcBar); |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | IsSelected = aC.trait_mode.curValues == m, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | }; |
| | | modeChangeView.AddChidren(btnModeText); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | IsSelected = aC.trait_fan.curValues.ToString() == m, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | }; |
| | | modeChangeView.AddChidren(btnFanText); |
| | | |
| | |
| | | break; |
| | | } |
| | | |
| | | if (aC.modeList.IndexOf(m) < aC.modeList.Count - 1) |
| | | if (aC.fan_List.IndexOf(m) < aC.fan_List.Count - 1) |
| | | { |
| | | modeChangeView.AddChidren(new Button() |
| | | { |