static VS2012LikeRenderer()
        {
            OFFSETS = new DrawingOffset[] {
                // PAGE_AREA_OFFSET
                new DrawingOffset(2, 0, 0, 0),
                // ITEM_AREA_OFFSET
                new DrawingOffset(0, 0, 0, 0) };

            settings = new Settings()
            {
                NeoTabPageItemsFont = new Font("Arial", 8.25f),
                BackColor = Color.FromArgb(85, 41, 41),
                TabPageItemForeColor = Color.White,
                SelectedTabPageItemForeColor = Color.White,
                DisabledTabPageItemForeColor = SystemColors.GrayText,
                MouseOverTabPageItemForeColor = Color.White,
                TabItemFirstColor = Color.FromArgb(130, 77, 77),
                TabItemSecondColor = Color.FromArgb(120, 63, 63),
                TabItemHoverFirstColor = Color.FromArgb(140, 85, 85),
                TabItemHoverSecondColor = Color.FromArgb(130, 75, 75),
                ItemObjectsDrawingMargin = 4,
                TabPageItemsBetweenSpacing = 1
            };
        }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     propertyGrid1.SelectedObject = null;
     TemplateSettings = new Settings()
     {
         NeoTabPageItemsFont = new Font("Arial", 8.25f),
         BackColor = Color.FromArgb(85, 41, 41),
         TabPageItemForeColor = Color.White,
         SelectedTabPageItemForeColor = Color.White,
         DisabledTabPageItemForeColor = SystemColors.GrayText,
         MouseOverTabPageItemForeColor = Color.White,
         TabItemFirstColor = Color.FromArgb(130, 77, 77),
         TabItemSecondColor = Color.FromArgb(120, 63, 63),
         TabItemHoverFirstColor = Color.FromArgb(140, 85, 85),
         TabItemHoverSecondColor = Color.FromArgb(130, 75, 75),
         ItemObjectsDrawingMargin = 4,
         TabPageItemsBetweenSpacing = 1
     };
     propertyGrid1.SelectedObject = TemplateSettings;
 }
 public object Clone()
 {
     Settings toBeCloned = new Settings();
     toBeCloned.NeoTabPageItemsFont = this.NeoTabPageItemsFont;
     toBeCloned.BackColor = this.BackColor;
     toBeCloned.TabPageItemForeColor = this.TabPageItemForeColor;
     toBeCloned.SelectedTabPageItemForeColor = this.SelectedTabPageItemForeColor;
     toBeCloned.DisabledTabPageItemForeColor = this.DisabledTabPageItemForeColor;
     toBeCloned.MouseOverTabPageItemForeColor = this.MouseOverTabPageItemForeColor;
     toBeCloned.TabItemFirstColor = this.TabItemFirstColor;
     toBeCloned.TabItemSecondColor = this.TabItemSecondColor;
     toBeCloned.TabItemHoverFirstColor = this.TabItemHoverFirstColor;
     toBeCloned.TabItemHoverSecondColor = this.TabItemHoverSecondColor;
     toBeCloned.ItemObjectsDrawingMargin = this.ItemObjectsDrawingMargin;
     toBeCloned.TabPageItemsBetweenSpacing = this.TabPageItemsBetweenSpacing;
     return toBeCloned;
 }