wxr
2023-01-11 6b1887c73b48211f5d02fdad9b4b17d9b81cd0b8
空调界面优化
2个文件已修改
40 ■■■■ 已修改文件
HDL-ON_iOS/Info.plist 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL-ON_iOS/Info.plist
@@ -100,9 +100,9 @@
    <key>UIStatusBarStyle</key>
    <string>UIStatusBarStyleLightContent</string>
    <key>CFBundleShortVersionString</key>
    <string>1.6.302301102</string>
    <string>1.6.302301111</string>
    <key>CFBundleVersion</key>
    <string>1.6.301102</string>
    <string>1.6.301111</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Use geographic location to provide services such as weather</string>
    <key>NSAppleMusicUsageDescription</key>
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -123,7 +123,7 @@
                    Text = "---",
                    IsBold = true,
                };
                if(setTempAttr.step == "0.5")
                if (setTempAttr.step == "0.5")
                {
                    btnTemp.Text = Convert.ToDouble(setTempAttr.curValue).ToString("0.0");
                }
@@ -137,7 +137,11 @@
                        btnTemp.Text = setTempAttr.curValue.ToString();
                    }
                }
                btnTemp.Width = btnTemp.GetTextWidth();
#if __IOS__
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(10);
#else
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(5);
#endif
                FrameWhiteCentet1.AddChidren(btnTemp);
@@ -177,8 +181,8 @@
                var btnMinTemp = new Button()
                {
                    X = Application.GetRealWidth(26),
                    Width = Application.GetRealWidth(18),
                    X = Application.GetRealWidth(22),
                    Width = Application.GetRealWidth(22),
                    TextAlignment = TextAlignment.Center,
                    Text = setTempAttr.min.ToString(),
                    TextSize = 12,
@@ -223,7 +227,7 @@
                var btnMaxTemp = new Button()
                {
                    X = setTempBar.Right,
                    Width = Application.GetRealWidth(18),
                    Width = Application.GetRealWidth(24),
                    TextAlignment = TextAlignment.Center,
                    Text = setTempAttr.max.ToString(),
                    TextSize = 12,
@@ -290,6 +294,13 @@
                {
                    btnTemp.Text = (setTempAttr.min + e).ToString();
                }
#if __IOS__
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(10);
#else
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(5);
#endif
                btnTempUint.X = btnTemp.Right;
            };
            setTempBar.OnStopTrackingTouchEvent = (sender,e) =>{
                temp = e;
@@ -302,6 +313,13 @@
                {
                    btnTemp.Text = (setTempAttr.min + e).ToString();
                }
#if __IOS__
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(10);
#else
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(5);
#endif
                btnTempUint.X = btnTemp.Right;
                controlTime = DateTime.Now;
                Dictionary<string, string> d = new Dictionary<string, string>();
                d.Add(FunctionAttributeKey.SetTemp, e.ToString());
@@ -1035,8 +1053,12 @@
                        btnTemp.Text = temp.ToString();
                    }
                    //btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(5);
                    //btnTempUint.X = btnTemp.Right;
#if __IOS__
                    btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(10);
#else
                btnTemp.Width = btnTemp.GetTextWidth() + Application.GetRealWidth(5);
#endif
                    btnTempUint.X = btnTemp.Right;
                    if (device.trait_on_off.curValue.ToString() == "on")
                    {