From 84e76cf2fcbe26142750131d3c27eaac0335e40a Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 11 三月 2021 11:04:08 +0800
Subject: [PATCH] 上传一个添加红外宝 Ios 版本
---
HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index 14ce065..1a9040b 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -137,7 +137,7 @@
Width = Application.GetRealWidth(168 - 40),
Height = Application.GetRealHeight(288 - 16 - 16),
BorderColor = 0x00000000,
- CornerRadius = Application.GetRealWidth(40),
+ CornerRadius = Application.GetRealWidth(30),
BorderWidth = 0,
Progress = light.brightness,
IsProgressTextShow = false,
@@ -165,7 +165,6 @@
};
controlView.AddChidren(btnBrightnessText);
-
#region 娓愬彉鏃堕棿璋冭妭
var btnGradualChangeText = new Button()
{
@@ -177,6 +176,8 @@
TextColor = CSS_Color.FirstLevelTitleColor,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
TextID = StringId.SpeedOfChange,
+ Visible = light.HadFadeTime,
+ Enable = light.HadFadeTime,
};
controlView.AddChidren(btnGradualChangeText);
@@ -190,6 +191,8 @@
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ Visible = light.HadFadeTime,
+ Enable = light.HadFadeTime,
};
controlView.AddChidren(btnGradualChangeMinValuesText);
@@ -209,6 +212,8 @@
MaxValue = 10,
Progress = light.fadeTime,
SeekBarPadding = Application.GetRealWidth(20),
+ Visible = light.HadFadeTime,
+ Enable = light.HadFadeTime,
};
controlView.AddChidren(barFadeTime);
@@ -222,6 +227,8 @@
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ Visible = light.HadFadeTime,
+ Enable = light.HadFadeTime,
};
controlView.AddChidren(btnGradualChangeMaxValuesText);
#endregion
--
Gitblit v1.8.0