陈嘉乐
2020-12-03 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7
HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs
New file
@@ -0,0 +1,28 @@
using System;
using HDL_ON.UI.CSS;
using Shared;
namespace HDL_ON.UI
{
    /// <summary>
    /// 通用确认按钮
    /// </summary>
    public class ConfirmButton : Button
    {
        public ConfirmButton()
        {
            Gravity = Gravity.CenterHorizontal;
            Width = Application.GetRealWidth(220);
            Height = Application.GetRealWidth(44);
            BackgroundColor = CSS_Color.MainColor;
            TextAlignment = TextAlignment.Center;
            TextColor = CSS_Color.MainBackgroundColor;
            TextSize = CSS_FontSize.SubheadingFontSize;
            IsBold = true;
            Radius = (uint)Application.GetRealWidth(22);
            BorderColor = 0x00000000;
            BorderWidth = 0;
        }
    }
}