| | |
| | | }; |
| | | var btnAddLightScene = new Button () { |
| | | Width = Application.GetRealWidth (100), |
| | | Height = Application.GetRealHeight (100), |
| | | Height = Application.GetRealWidth (100), |
| | | X = Application.GetRealWidth (640 - 120), |
| | | Y = Application.GetRealHeight (20), |
| | | UnSelectedImagePath = "Light/UserLightAddScene.png", |
| | |
| | | }; |
| | | Button btnSIcon = new Button () { |
| | | Width = Application.GetRealWidth(111), |
| | | Height = Application.GetRealHeight(110), |
| | | Height = Application.GetRealWidth(110), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = scene.SceneIconPath, |
| | | SelectedImagePath = scene.SceneIconPath, |
| | |
| | | lightView.AddChidren (tempLightName); |
| | | |
| | | var tempSiwtch = new Button () { |
| | | Width = Application.GetRealWidth (85), |
| | | Height = Application.GetRealHeight (53), |
| | | Width = Application.GetMinRealAverage (85), |
| | | Height = Application.GetMinRealAverage (53), |
| | | X = Application.GetRealWidth (640 - 90 - 20), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/SwitchClose.png", |
| | |
| | | }; |
| | | //开关按键 |
| | | var tempSwitch = new Button () { |
| | | Width = Application.GetRealWidth (90), |
| | | Height = Application.GetRealHeight (53), |
| | | Width = Application.GetMinRealAverage (90), |
| | | Height = Application.GetMinRealAverage (53), |
| | | X = Application.GetRealWidth (640 - 90 - 20), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/SwitchClose.png", |
| | |
| | | lightView.AddChidren (btnLightSetting); |
| | | Button btnRGBSetting = new Button () { |
| | | Width = Application.GetRealWidth (60), |
| | | Height = Application.GetRealHeight (60), |
| | | Height = Application.GetRealWidth (60), |
| | | Radius = (uint)Application.GetRealHeight (30), |
| | | X = tempLightSeekBar.Right + Application.GetRealWidth (20), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | #endregion |
| | | //开关按键 |
| | | var tempSwitch = new Button () { |
| | | Width = Application.GetRealWidth (90), |
| | | Height = Application.GetRealHeight (53), |
| | | Width = Application.GetMinRealAverage (90), |
| | | Height = Application.GetMinRealAverage (53), |
| | | X = Application.GetRealWidth (640 - 90 - 20), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Item/SwitchClose.png", |