From 8df24b0a3dfd5b6f39c5393ef24eab25b70ab858 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 11 九月 2020 13:18:33 +0800
Subject: [PATCH] 202009111
---
HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs b/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs
index 39e22e1..78bd49c 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs
@@ -63,8 +63,8 @@
//鏃犳搷浣�
break;
case FunctionType.Dimmer:
+ case FunctionType.RGB:
LoadFunctionRow(function.function.Find((obj) => obj.name == "brightness"));
-
break;
}
@@ -98,7 +98,7 @@
btnConfrim.MouseUpEventHandler = (sender, e) =>
{
- var temp = scene.sceneFunctionList.Find((obj) => obj.sid == function.sid) ;
+ var temp = scene.sceneFunctionList.Find((obj) => obj.sid == function.sid);
if (temp!=null)
{
temp = function;
@@ -109,7 +109,6 @@
}
refreshAction();
this.RemoveFromParent();
-
};
}
@@ -128,8 +127,10 @@
BackgroundColor = CSS_Color.MainBackgroundColor,
};
contentView.AddChidren(row);
- row.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
-
+ if (trait.name != "on_off")
+ {
+ row.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+ }
Button btnBrightnessRight = new Button()
{
X = Application.GetRealWidth(339),
@@ -596,7 +597,8 @@
ProgressTextColor = CSS_Color.FirstLevelTitleColor,
ProgressTextSize = CSS_FontSize.PromptFontSize_FirstLevel,
MaxValue = 100,
- Progress = trait.value.ToString().Replace("{}", "") == "" ? 0 : (int)trait.value,
+ Progress = trait.value.ToString().Replace("{}", "") == "" ? 0 : Convert.ToInt32( trait.value),
+ SeekBarPadding = Application.GetRealWidth(20),
};
optionBaseView.AddChidren(controlBar);
--
Gitblit v1.8.0