| | |
| | |
|
| | | btnSwitch = new Button()
|
| | | {
|
| | | X = Application.GetRealWidth(184),
|
| | | Y = Application.GetRealHeight(462),
|
| | | Width = Application.GetRealWidth(40),
|
| | | Height = Application.GetRealWidth(40),
|
| | | X = Application.GetRealWidth(180),
|
| | | Y = Application.GetRealHeight(466),
|
| | | Width = Application.GetRealWidth(32),
|
| | | Height = Application.GetRealWidth(32),
|
| | | UnSelectedImagePath = "Public/PowerClose.png",
|
| | | SelectedImagePath = "Public/PowerOpen.png",
|
| | | IsSelected = light.trait_on_off.curValue.ToString() == "on",
|
| | |
| | |
|
| | | //色温的快捷方式图标
|
| | | btnShortcut = new Button();
|
| | | btnShortcut.X = Application.GetRealWidth(104);
|
| | | btnShortcut.X = Application.GetRealWidth(116);
|
| | | btnShortcut.Y = btnSwitch.Y;
|
| | | btnShortcut.Width = Application.GetRealWidth(36);
|
| | | btnShortcut.Height = Application.GetRealWidth(36);
|
| | | btnShortcut.Width = Application.GetRealWidth(32);
|
| | | btnShortcut.Height = Application.GetRealWidth(32);
|
| | | btnShortcut.UnSelectedImagePath = "FunctionIcon/Light/CozyIconOn.png";
|
| | | controlView.AddChidren(btnShortcut);
|
| | | btnShortcut.MouseUpEventHandler += (sender, e) =>
|