From a7debf97f52b5f473c3316ecd06bf48f44b65406 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 09 八月 2023 18:03:04 +0800
Subject: [PATCH] 温度类型,炫彩起始颜色
---
HDL_ON/UI/UI2/FuntionControlView/Light/ColorfulSettingPage.cs | 60 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorfulSettingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorfulSettingPage.cs
index 8bb2a15..80e6eaa 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorfulSettingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorfulSettingPage.cs
@@ -158,7 +158,7 @@
Gravity = Gravity.CenterVertical,
Width = Application.GetRealWidth(28),
Height = Application.GetRealWidth(28),
- BackgroundColor = 0xFF00ab11,
+ BackgroundColor = 0xFFFEF267,
Radius = (uint)Application.GetRealWidth(14),
};
recommendColorView.AddChidren(btnRecommenColor3);
@@ -170,7 +170,7 @@
Gravity = Gravity.CenterVertical,
Width = Application.GetRealWidth(28),
Height = Application.GetRealWidth(28),
- BackgroundColor = 0xFF28952e,
+ BackgroundColor = 0xFF73FD7B,
Radius = (uint)Application.GetRealWidth(14),
};
recommendColorView.AddChidren(btnRecommenColor4);
@@ -181,7 +181,7 @@
Gravity = Gravity.CenterVertical,
Width = Application.GetRealWidth(28),
Height = Application.GetRealWidth(28),
- BackgroundColor = 0xFF45b7fd,
+ BackgroundColor = 0xFF45B7FD,
Radius = (uint)Application.GetRealWidth(14),
};
recommendColorView.AddChidren(btnRecommenColor5);
@@ -193,7 +193,7 @@
Gravity = Gravity.CenterVertical,
Width = Application.GetRealWidth(28),
Height = Application.GetRealWidth(28),
- BackgroundColor = 0xFF794efc,
+ BackgroundColor = 0xFF5558fd,
Radius = (uint)Application.GetRealWidth(14),
};
recommendColorView.AddChidren(btnRecommenColor6);
@@ -204,7 +204,7 @@
Gravity = Gravity.CenterVertical,
Width = Application.GetRealWidth(28),
Height = Application.GetRealWidth(28),
- BackgroundColor = 0xFFFFFFFF,
+ BackgroundColor = 0xFF962eff,
Radius = (uint)Application.GetRealWidth(14),
};
recommendColorView.AddChidren(btnRecommenColor7);
@@ -333,26 +333,26 @@
btnConfrim.MouseUpEventHandler = (sender, e) =>
{
backAction?.Invoke(curColor) ;
- System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
+ var d = new System.Collections.Generic.Dictionary<string, string>();
if (isSatrtColor)
{
d.Add(FunctionAttributeKey.ColorfulBegin, redColor + "," + greenColor + "," + blueColor);
function.SetAttrState(FunctionAttributeKey.ColorfulBegin, redColor + "," + greenColor + "," + blueColor);
- var color = function.GetAttrState(FunctionAttributeKey.ColorfulEnd).Split(",");
- var sendColorString = color[0] + "," + color[1] + "," + color[2];
- d.Add(FunctionAttributeKey.ColorfulEnd, sendColorString);
- d.Add(FunctionAttributeKey.ColorfulTime, function.GetAttrState(FunctionAttributeKey.ColorfulTime));
-
+ //var color = function.GetAttrState(FunctionAttributeKey.ColorfulEnd).Split(",");
+ //var sendColorString = color[0] + "," + color[1] + "," + color[2];
+ //d.Add(FunctionAttributeKey.ColorfulEnd, sendColorString);
+ //d.Add(FunctionAttributeKey.ColorfulTime, function.GetAttrState(FunctionAttributeKey.ColorfulTime));
}
else
{
- var color = function.GetAttrState(FunctionAttributeKey.ColorfulBegin).Split(",");
- var sendColorString = color[0] + "," + color[1] + "," + color[2];
- d.Add(FunctionAttributeKey.ColorfulBegin, sendColorString);
- d.Add(FunctionAttributeKey.ColorfulTime, function.GetAttrState(FunctionAttributeKey.ColorfulTime));
+ //var color = function.GetAttrState(FunctionAttributeKey.ColorfulBegin).Split(",");
+ //var sendColorString = color[0] + "," + color[1] + "," + color[2];
+ //d.Add(FunctionAttributeKey.ColorfulBegin, sendColorString);
+ //d.Add(FunctionAttributeKey.ColorfulTime, function.GetAttrState(FunctionAttributeKey.ColorfulTime));
d.Add(FunctionAttributeKey.ColorfulEnd, redColor + "," + greenColor + "," + blueColor);
function.SetAttrState(FunctionAttributeKey.ColorfulEnd, redColor + "," + greenColor + "," + blueColor);
}
+ //d.Add(FunctionAttributeKey.Colorful, "off");
Control.Ins.SendWriteCommand(function, d);
this.RemoveFromParent();
};
@@ -387,17 +387,17 @@
};
btnRecommenColor3.MouseUpEventHandler = (sender, e) => {
curColor = btnCurColor.BackgroundColor = btnRecommenColor3.BackgroundColor;
- etCurColorHexInfo.Text = "00AB11";
- redColor = 0;
- greenColor = 171;
- blueColor = 17;
+ etCurColorHexInfo.Text = "FEF267";
+ redColor = 254;
+ greenColor = 242;
+ blueColor = 103;
};
btnRecommenColor4.MouseUpEventHandler = (sender, e) => {
curColor = btnCurColor.BackgroundColor = btnRecommenColor4.BackgroundColor;
- etCurColorHexInfo.Text = "28952E";
- redColor = 40;
- greenColor = 149;
- blueColor = 46;
+ etCurColorHexInfo.Text = "73FD7B";
+ redColor = 115;
+ greenColor = 253;
+ blueColor = 123;
};
btnRecommenColor5.MouseUpEventHandler = (sender, e) => {
curColor = btnCurColor.BackgroundColor = btnRecommenColor5.BackgroundColor;
@@ -408,16 +408,16 @@
};
btnRecommenColor6.MouseUpEventHandler = (sender, e) => {
curColor = btnCurColor.BackgroundColor = btnRecommenColor6.BackgroundColor;
- etCurColorHexInfo.Text = "794EFC";
- redColor = 121;
- greenColor = 78;
- blueColor = 252;
+ etCurColorHexInfo.Text = "5558fd";
+ redColor = 85;
+ greenColor = 88;
+ blueColor = 253;
};
btnRecommenColor7.MouseUpEventHandler = (sender, e) => {
curColor = btnCurColor.BackgroundColor = btnRecommenColor7.BackgroundColor;
- etCurColorHexInfo.Text = "FFFFFF";
- redColor = 255;
- greenColor = 255;
+ etCurColorHexInfo.Text = "962eff";
+ redColor = 150;
+ greenColor = 26;
blueColor = 255;
};
}
--
Gitblit v1.8.0