From c3e1b733fc45bd9f0b88bfb560cfa87a270b079b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 09 九月 2020 17:33:58 +0800 Subject: [PATCH] 20200909 --- HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs b/HDL_ON/UI/UI2/3-Intelligence/SetSceneFunctionInfoPage.cs index 39e22e1..da587c0 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; } @@ -128,8 +128,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), -- Gitblit v1.8.0