From df8d4ab0ef17a7fab5dea9c47bbd9f4d4a2a40b0 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 15 三月 2021 14:55:49 +0800
Subject: [PATCH] 合并前上传一个版本

---
 HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
index 4065b46..434c27e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPage.cs
@@ -140,7 +140,7 @@
                 Width = Application.GetRealWidth(170),
                 Height = Application.GetRealWidth(210),
                 Progress = curtain.percent,
-                IsInvertedProgress = true,
+                //IsInvertedProgress = true,
                 ProgressTextColor = 0x00000000,
             };
             controlView.AddChidren(curtainSeekBar);
@@ -196,21 +196,22 @@
 
             btnCurtainClose = new Button()
             {
-                X = Application.GetRealWidth(64),
-                Y = Application.GetRealHeight(462),
-                Width = Application.GetMinRealAverage(40),
-                Height = Application.GetMinRealAverage(40),
+                X = Application.GetRealWidth(84),
+                Y = Application.GetRealHeight(466),
+                Width = Application.GetMinRealAverage(32),
+                Height = Application.GetMinRealAverage(32),
                 UnSelectedImagePath = "FunctionIcon/Curtain/CurtainCloseIcon.png",
                 SelectedImagePath = "FunctionIcon/Curtain/CurtainCloseOnIcon.png",
+                IsSelected = curtain.GetAttrState(FunctionAttributeKey.Percent) == "0",
             };
             controlView.AddChidren(btnCurtainClose);
 
             btnCurtainStop = new Button()
             {
-                X = Application.GetRealWidth(144),
-                Y = Application.GetRealHeight(462),
-                Width = Application.GetMinRealAverage(40),
-                Height = Application.GetMinRealAverage(40),
+                X = Application.GetRealWidth(148),
+                Y = Application.GetRealHeight(466),
+                Width = Application.GetMinRealAverage(32),
+                Height = Application.GetMinRealAverage(32),
                 UnSelectedImagePath = "FunctionIcon/Curtain/CurtainStopIcon.png",
                 SelectedImagePath = "FunctionIcon/Curtain/CurtainStopOnIcon.png",
             };
@@ -218,12 +219,13 @@
 
             btnCurtainOpen = new Button()
             {
-                X = Application.GetRealWidth(224),
-                Y = Application.GetRealHeight(462),
-                Width = Application.GetMinRealAverage(40),
-                Height = Application.GetMinRealAverage(40),
+                X = Application.GetRealWidth(212),
+                Y = Application.GetRealHeight(466),
+                Width = Application.GetMinRealAverage(32),
+                Height = Application.GetMinRealAverage(32),
                 UnSelectedImagePath = "FunctionIcon/Curtain/CurtainOpenIcon.png",
                 SelectedImagePath = "FunctionIcon/Curtain/CurtainOpenOnIcon.png",
+                IsSelected = curtain.GetAttrState(FunctionAttributeKey.Percent) != "0",
             };
             controlView.AddChidren(btnCurtainOpen);
 

--
Gitblit v1.8.0