コード例 #1
0
 public ToolStripExtendedRenderer(ExtendedColorTable extendedColorTable)
     : base(extendedColorTable)
 {
     ColorTable   = extendedColorTable;
     RoundedEdges = false;
 }
コード例 #2
0
ファイル: MapColorTable.cs プロジェクト: spacelabswc/bonsai
        public MapColorTable(ExtendedColorTable table, Func <Color, Color> map)
        {
            buttonCheckedGradientBegin    = map(table.ButtonCheckedGradientBegin);
            buttonCheckedGradientEnd      = map(table.ButtonCheckedGradientEnd);
            buttonCheckedGradientMiddle   = map(table.ButtonCheckedGradientMiddle);
            buttonCheckedHighlight        = map(table.ButtonCheckedHighlight);
            buttonCheckedHighlightBorder  = map(table.ButtonCheckedHighlightBorder);
            buttonPressedBorder           = map(table.ButtonPressedBorder);
            buttonPressedGradientBegin    = map(table.ButtonPressedGradientBegin);
            buttonPressedGradientEnd      = map(table.ButtonPressedGradientEnd);
            buttonPressedGradientMiddle   = map(table.ButtonPressedGradientMiddle);
            buttonPressedHighlight        = map(table.ButtonPressedHighlight);
            buttonPressedHighlightBorder  = map(table.ButtonPressedHighlightBorder);
            buttonSelectedBorder          = map(table.ButtonSelectedBorder);
            buttonSelectedGradientBegin   = map(table.ButtonSelectedGradientBegin);
            buttonSelectedGradientEnd     = map(table.ButtonSelectedGradientEnd);
            buttonSelectedGradientMiddle  = map(table.ButtonSelectedGradientMiddle);
            buttonSelectedHighlight       = map(table.ButtonSelectedHighlight);
            buttonSelectedHighlightBorder = map(table.ButtonSelectedHighlightBorder);
            checkBackground         = map(table.CheckBackground);
            checkPressedBackground  = map(table.CheckPressedBackground);
            checkSelectedBackground = map(table.CheckSelectedBackground);
            gripDark  = map(table.GripDark);
            gripLight = map(table.GripLight);
            imageMarginGradientBegin          = map(table.ImageMarginGradientBegin);
            imageMarginGradientEnd            = map(table.ImageMarginGradientEnd);
            imageMarginGradientMiddle         = map(table.ImageMarginGradientMiddle);
            imageMarginRevealedGradientBegin  = map(table.ImageMarginRevealedGradientBegin);
            imageMarginRevealedGradientEnd    = map(table.ImageMarginRevealedGradientEnd);
            imageMarginRevealedGradientMiddle = map(table.ImageMarginRevealedGradientMiddle);
            menuBorder     = map(table.MenuBorder);
            menuItemBorder = map(table.MenuItemBorder);
            menuItemPressedGradientBegin  = map(table.MenuItemPressedGradientBegin);
            menuItemPressedGradientEnd    = map(table.MenuItemPressedGradientEnd);
            menuItemPressedGradientMiddle = map(table.MenuItemPressedGradientMiddle);
            menuItemSelected = map(table.MenuItemSelected);
            menuItemSelectedGradientBegin = map(table.MenuItemSelectedGradientBegin);
            menuItemSelectedGradientEnd   = map(table.MenuItemSelectedGradientEnd);
            menuStripGradientBegin        = map(table.MenuStripGradientBegin);
            menuStripGradientEnd          = map(table.MenuStripGradientEnd);
            overflowButtonGradientBegin   = map(table.OverflowButtonGradientBegin);
            overflowButtonGradientEnd     = map(table.OverflowButtonGradientEnd);
            overflowButtonGradientMiddle  = map(table.OverflowButtonGradientMiddle);
            raftingContainerGradientBegin = map(table.RaftingContainerGradientBegin);
            raftingContainerGradientEnd   = map(table.RaftingContainerGradientEnd);
            separatorDark                      = map(table.SeparatorDark);
            separatorLight                     = map(table.SeparatorLight);
            statusStripGradientBegin           = map(table.StatusStripGradientBegin);
            statusStripGradientEnd             = map(table.StatusStripGradientEnd);
            toolStripBorder                    = map(table.ToolStripBorder);
            toolStripContentPanelGradientBegin = map(table.ToolStripContentPanelGradientBegin);
            toolStripContentPanelGradientEnd   = map(table.ToolStripContentPanelGradientEnd);
            toolStripDropDownBackground        = map(table.ToolStripDropDownBackground);
            toolStripGradientBegin             = map(table.ToolStripGradientBegin);
            toolStripGradientEnd               = map(table.ToolStripGradientEnd);
            toolStripGradientMiddle            = map(table.ToolStripGradientMiddle);
            toolStripPanelGradientBegin        = map(table.ToolStripPanelGradientBegin);
            toolStripPanelGradientEnd          = map(table.ToolStripPanelGradientEnd);

            controlBackColor      = map(table.ControlBackColor);
            controlForeColor      = map(table.ControlForeColor);
            controlText           = map(table.ControlText);
            controlDark           = map(table.ControlDark);
            contentPanelBackColor = map(table.ContentPanelBackColor);
            inactiveCaption       = map(table.InactiveCaption);
            windowBackColor       = map(table.WindowBackColor);
            windowText            = map(table.WindowText);
        }