internal void UpdateFont()
 {
     if (this.useDefaultFont)
     {
         bool readOnly = base.ReadOnly;
         base.ReadOnly = false;
         this.FontName = WorkflowTheme.GetDefaultFont().FontFamily.Name;
         base.ReadOnly = readOnly;
     }
 }
 private void ApplySystemColors()
 {
     this.DropIndicatorColor     = SystemColors.HotTrack;
     this.SelectionForeColor     = SystemColors.Highlight;
     this.SelectionPatternColor  = SystemColors.Highlight;
     this.ForeColor              = SystemColors.WindowText;
     this.CommentIndicatorColor  = SystemColors.GrayText;
     this.ReadonlyIndicatorColor = SystemColors.GrayText;
     this.BackColor              = SystemColors.Window;
     this.GridColor              = SystemColors.InactiveBorder;
     this.FontName = WorkflowTheme.GetDefaultFont().FontFamily.Name;
 }
 public AmbientTheme(WorkflowTheme theme) : base(theme)
 {
     this.showConfigErrors       = true;
     this.dropIndicatorColor     = System.Drawing.Color.Green;
     this.selectionForeColor     = System.Drawing.Color.Blue;
     this.selectionPatternColor  = System.Drawing.Color.DarkGray;
     this.foreColor              = System.Drawing.Color.Gray;
     this.backColor              = System.Drawing.Color.White;
     this.commentIndicatorColor  = System.Drawing.Color.FromArgb(0x31, 0xc6, 0x69);
     this.readonlyIndicatorColor = System.Drawing.Color.Gray;
     this.watermarkAlignment     = DesignerContentAlignment.BottomRight;
     this.watermarkImagePath     = string.Empty;
     this.gridStyle              = DashStyle.Dash;
     this.gridColor              = System.Drawing.Color.FromArgb(0xc0, 0xc0, 0xc0);
     this.fontName           = WorkflowTheme.GetDefaultFont().FontFamily.Name;
     this.designerStyle      = System.Workflow.ComponentModel.Design.DesignerSize.Medium;
     this.drawRounded        = true;
     this.showDesignerBorder = true;
 }