//ライセンス情報はAgeOnフォルダのLISENCEフォルダを参照してください
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

using nispi.controlclass;
using nispi.Menu;
namespace nispi.controlclass
{
    public class MenuColorTable : ProfessionalColorTable
    {
        //マウスが乗った時の背景色
        public override Color MenuItemSelected
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2BackColorRed,
                    Const.opt.outWardMenu.MenuSample2BackColorGreen,
                    Const.opt.outWardMenu.MenuSample2BackColorBlue);
            }
        }


        //メニューの”ふち”の色
        /*public override Color MenuBorder  //added for changing the menu border
        {
            get { return Color.Green; }
        }*/

        //大元のメニューの上にマウスが来た時の色
        public override Color MenuItemSelectedGradientBegin
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2BackColorRed,
                    Const.opt.outWardMenu.MenuSample2BackColorGreen,
                    Const.opt.outWardMenu.MenuSample2BackColorBlue);
            }
        }

        public override Color MenuItemSelectedGradientEnd
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2BackColorRed,
                    Const.opt.outWardMenu.MenuSample2BackColorGreen,
                    Const.opt.outWardMenu.MenuSample2BackColorBlue);
            }
        }
        /*public override Color MenuStripGradientBegin
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2ForeColorRed,
                    Const.opt.outWardMenu.MenuSample2ForeColorGreen,
                    Const.opt.outWardMenu.MenuSample2ForeColorBlue);
            }
        }*/
        //メニューを開いたときのメニューの大元の色
        public override Color MenuItemPressedGradientBegin
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2BackColorRed,
                    Const.opt.outWardMenu.MenuSample2BackColorGreen,
                    Const.opt.outWardMenu.MenuSample2BackColorBlue);
            }
        }
        public override Color MenuItemPressedGradientEnd
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample2BackColorRed,
                    Const.opt.outWardMenu.MenuSample2BackColorGreen,
                    Const.opt.outWardMenu.MenuSample2BackColorBlue);
            }
        }

        //セパレータの背景色を設定するために利用
        public override Color ToolStripDropDownBackground
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample1BackColorRed,
                    Const.opt.outWardMenu.MenuSample1BackColorGreen,
                    Const.opt.outWardMenu.MenuSample1BackColorBlue);
            }
        }

        /*public override Color MenuItemBorder  //added for changing the menu border
        {
            get { return Color.Green; }
        }*/

        //メニューの左側の色。開始
        public override Color ImageMarginGradientBegin  //added for changing the menu border
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample1BackColorRed,
                    Const.opt.outWardMenu.MenuSample1BackColorGreen,
                    Const.opt.outWardMenu.MenuSample1BackColorBlue);
            }
        }
        //メニューの左側の色。中間
        public override Color ImageMarginGradientMiddle
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample1BackColorRed,
                    Const.opt.outWardMenu.MenuSample1BackColorGreen,
                    Const.opt.outWardMenu.MenuSample1BackColorBlue);
            }
        }
        //メニューの左側の色。終了
        public override Color ImageMarginGradientEnd  //added for changing the menu border
        {
            get
            {
                return Color.FromArgb(
                    Const.opt.outWardMenu.MenuSample1BackColorRed,
                    Const.opt.outWardMenu.MenuSample1BackColorGreen,
                    Const.opt.outWardMenu.MenuSample1BackColorBlue);
            }
        }
    }
}
