using MGdu.WinFormUI;
using MGdu.WinFormUI.MyGraphics;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RySkins
{

    public class ThemeForm : ThemeFormBase
    {
        /// <summary>
        /// DevExpress风格皮肤
        /// </summary>
        public ThemeForm()
            : base()
        {
            ThemeName = "Default";
            ryControls.Skin.SkinCommon.ButtonSkin.BackColor = Color.MidnightBlue;
            ryControls.Skin.SkinCommon.ButtonSkin.ColorGradient = true;
            IconSize = new Size(16, 16);
            IconLeftMargin = 8;
            BorderWidth = 1;
            FormBorderInnerColor = Color.Gray;
            FormBorderOutterColor = Color.Gray;
            CaptionHeight = 26;
            CaptionBackColorTop = Color.Gray;
            CaptionBackColorBottom = Color.SlateGray;
            FormBackColor = Color.FromArgb(242, 242, 242);
            CaptionTextColor = Color.White;
            Mdi_UseMsgToActivateChild = true;
            // shadow
            SideResizeWidth = 3;
            ShowShadow = false;
            ShadowWidth = 4;
            ShadowColor = Color.Gray;
            ShadowAValueDark = 50;
            ShadowAValueLight = 0;
            UseShadowToResize = true;
            base.Mdi_TabActiveBackColorTop = Color.White;
            base.Mdi_TabActiveBackColorBottom = Color.FromArgb(248, 248, 248);
            base.Mdi_TabDeactiveBackColorTop = Color.FromArgb(230, 230, 230);
            base.Mdi_TabDeactiveBackColorBottom = Color.FromArgb(230, 230, 230);
            //base.Mdi_TabDeactiveForeColor = Color.FromArgb(244, 246, 247);
            CloseBoxSize = MaxBoxSize = MinBoxSize = new Size(30, 23);
            ControlBoxOffset = new Point(0, 0);
            ControlBoxSpace = 0;
            RoundedStyle = RoundStyle.All;
            Radius = 5;
            ButtonColorTable closeTable = new ButtonColorTable();
            closeTable.ForeColorNormal = closeTable.ForeColorHover
                = closeTable.ForeColorPressed = Color.FromArgb(249, 240, 223);
            closeTable.BackColorHover = Color.FromArgb(217, 71, 71);
            closeTable.BackColorPressed = Color.FromArgb(188, 52, 52);
            CloseBoxColor = closeTable;

            ButtonColorTable minTable = new ButtonColorTable();
            minTable.ForeColorNormal = minTable.ForeColorHover
                = minTable.ForeColorPressed = Color.FromArgb(249, 240, 223);
            minTable.BackColorHover = Color.FromArgb(67, 139, 221);
            minTable.BackColorPressed = Color.FromArgb(50, 125, 210);
            MinBoxColor = MaxBoxColor = minTable;
            base.Mdi_TabMinWidth = 70;
            base.Mdi_TabNormalWidth = 100;
            base.Mdi_TabMaxWidth = 145;
            base.Mdi_ShowNewTabBtn = false;
            base.Mdi_AlwaysShowListAllBtn = false;
            base.Mdi_BarBottomRegionHeight = 0;
            base.Mdi_ShowTabCloseIcon = false;
            base.Mdi_TabShowBorder = false;
            base.Mdi_BarMargin = new Padding(6, 0, 100, 0);
        }
    }
}
