From 682b6c839406a143d00afc010b97607deb337e8b Mon Sep 17 00:00:00 2001 From: WMJ Date: Sat, 1 Jun 2019 16:51:50 +0800 Subject: [PATCH] ! Tweaked syntax highlight option page --- .../CommentTaggerOptionPage.Designer.cs | 2 +- .../Options/SyntaxStyleOptionPage.Designer.cs | 102 +++++++++--------- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/Codist/Options/CommentTaggerOptionPage.Designer.cs b/Codist/Options/CommentTaggerOptionPage.Designer.cs index 621f3659..2120f1be 100644 --- a/Codist/Options/CommentTaggerOptionPage.Designer.cs +++ b/Codist/Options/CommentTaggerOptionPage.Designer.cs @@ -66,7 +66,7 @@ private void InitializeComponent() { this._SyntaxListBox.Name = "_SyntaxListBox"; this._SyntaxListBox.ShowGroups = false; this._SyntaxListBox.ShowItemToolTips = true; - this._SyntaxListBox.Size = new System.Drawing.Size(239, 263); + this._SyntaxListBox.Size = new System.Drawing.Size(239, 257); this._SyntaxListBox.TabIndex = 1; this._SyntaxListBox.UseCompatibleStateImageBehavior = false; this._SyntaxListBox.View = System.Windows.Forms.View.Details; diff --git a/Codist/Options/SyntaxStyleOptionPage.Designer.cs b/Codist/Options/SyntaxStyleOptionPage.Designer.cs index bd3970b8..c7f57255 100644 --- a/Codist/Options/SyntaxStyleOptionPage.Designer.cs +++ b/Codist/Options/SyntaxStyleOptionPage.Designer.cs @@ -28,12 +28,16 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SyntaxStyleOptionPage)); this.label1 = new System.Windows.Forms.Label(); this._StyleSettingsBox = new System.Windows.Forms.GroupBox(); + this._BackgroundOpacityButton = new Codist.Options.PickOpacityButton(); + this._ForegroundOpacityButton = new Codist.Options.PickOpacityButton(); this._ResetButton = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this._BackgroundEffectBox = new System.Windows.Forms.ComboBox(); this._FontBox = new System.Windows.Forms.ComboBox(); this.label8 = new System.Windows.Forms.Label(); this._PreviewBox = new System.Windows.Forms.PictureBox(); + this._BackColorButton = new Codist.Options.PickColorButton(); + this._ForeColorButton = new Codist.Options.PickColorButton(); this._FontSizeBox = new System.Windows.Forms.NumericUpDown(); this.label4 = new System.Windows.Forms.Label(); this._StrikeBox = new System.Windows.Forms.CheckBox(); @@ -42,10 +46,6 @@ private void InitializeComponent() { this._BoldBox = new System.Windows.Forms.CheckBox(); this._SyntaxListBox = new Codist.Options.SyntaxListView(); this._NameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this._BackgroundOpacityButton = new Codist.Options.PickOpacityButton(); - this._ForegroundOpacityButton = new Codist.Options.PickOpacityButton(); - this._BackColorButton = new Codist.Options.PickColorButton(); - this._ForeColorButton = new Codist.Options.PickColorButton(); this._StyleSettingsBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._PreviewBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this._FontSizeBox)).BeginInit(); @@ -88,6 +88,26 @@ private void InitializeComponent() { this._StyleSettingsBox.TabStop = false; this._StyleSettingsBox.Text = "Syntax Style"; // + // _BackgroundOpacityButton + // + this._BackgroundOpacityButton.Location = new System.Drawing.Point(132, 163); + this._BackgroundOpacityButton.Name = "_BackgroundOpacityButton"; + this._BackgroundOpacityButton.Size = new System.Drawing.Size(120, 23); + this._BackgroundOpacityButton.TabIndex = 21; + this._BackgroundOpacityButton.Text = "Opacity not set"; + this._BackgroundOpacityButton.UseVisualStyleBackColor = true; + this._BackgroundOpacityButton.Value = ((byte)(0)); + // + // _ForegroundOpacityButton + // + this._ForegroundOpacityButton.Location = new System.Drawing.Point(132, 134); + this._ForegroundOpacityButton.Name = "_ForegroundOpacityButton"; + this._ForegroundOpacityButton.Size = new System.Drawing.Size(120, 23); + this._ForegroundOpacityButton.TabIndex = 21; + this._ForegroundOpacityButton.Text = "Opacity not set"; + this._ForegroundOpacityButton.UseVisualStyleBackColor = true; + this._ForegroundOpacityButton.Value = ((byte)(0)); + // // _ResetButton // this._ResetButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -118,6 +138,8 @@ private void InitializeComponent() { // // _FontBox // + this._FontBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this._FontBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._FontBox.FormattingEnabled = true; this._FontBox.Location = new System.Drawing.Point(66, 21); @@ -146,6 +168,32 @@ private void InitializeComponent() { this._PreviewBox.TabIndex = 15; this._PreviewBox.TabStop = false; // + // _BackColorButton + // + this._BackColorButton.DefaultColor = System.Drawing.Color.Empty; + this._BackColorButton.Image = ((System.Drawing.Image)(resources.GetObject("_BackColorButton.Image"))); + this._BackColorButton.Location = new System.Drawing.Point(6, 163); + this._BackColorButton.Name = "_BackColorButton"; + this._BackColorButton.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this._BackColorButton.Size = new System.Drawing.Size(120, 23); + this._BackColorButton.TabIndex = 12; + this._BackColorButton.Text = "Background"; + this._BackColorButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this._BackColorButton.UseVisualStyleBackColor = true; + // + // _ForeColorButton + // + this._ForeColorButton.DefaultColor = System.Drawing.Color.Empty; + this._ForeColorButton.Image = ((System.Drawing.Image)(resources.GetObject("_ForeColorButton.Image"))); + this._ForeColorButton.Location = new System.Drawing.Point(6, 134); + this._ForeColorButton.Name = "_ForeColorButton"; + this._ForeColorButton.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this._ForeColorButton.Size = new System.Drawing.Size(120, 23); + this._ForeColorButton.TabIndex = 8; + this._ForeColorButton.Text = "Foreground"; + this._ForeColorButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this._ForeColorButton.UseVisualStyleBackColor = true; + // // _FontSizeBox // this._FontSizeBox.Location = new System.Drawing.Point(123, 53); @@ -226,7 +274,7 @@ private void InitializeComponent() { this._SyntaxListBox.MultiSelect = false; this._SyntaxListBox.Name = "_SyntaxListBox"; this._SyntaxListBox.ShowItemToolTips = true; - this._SyntaxListBox.Size = new System.Drawing.Size(239, 396); + this._SyntaxListBox.Size = new System.Drawing.Size(239, 390); this._SyntaxListBox.TabIndex = 1; this._SyntaxListBox.UseCompatibleStateImageBehavior = false; this._SyntaxListBox.View = System.Windows.Forms.View.Details; @@ -236,50 +284,6 @@ private void InitializeComponent() { this._NameColumn.Text = "Name"; this._NameColumn.Width = 200; // - // _BackgroundOpacityButton - // - this._BackgroundOpacityButton.Location = new System.Drawing.Point(132, 163); - this._BackgroundOpacityButton.Name = "_BackgroundOpacityButton"; - this._BackgroundOpacityButton.Size = new System.Drawing.Size(120, 23); - this._BackgroundOpacityButton.TabIndex = 21; - this._BackgroundOpacityButton.UseVisualStyleBackColor = true; - this._BackgroundOpacityButton.Value = ((byte)(0)); - // - // _ForegroundOpacityButton - // - this._ForegroundOpacityButton.Location = new System.Drawing.Point(132, 134); - this._ForegroundOpacityButton.Name = "_ForegroundOpacityButton"; - this._ForegroundOpacityButton.Size = new System.Drawing.Size(120, 23); - this._ForegroundOpacityButton.TabIndex = 21; - this._ForegroundOpacityButton.UseVisualStyleBackColor = true; - this._ForegroundOpacityButton.Value = ((byte)(0)); - // - // _BackColorButton - // - this._BackColorButton.DefaultColor = System.Drawing.Color.Empty; - this._BackColorButton.Image = ((System.Drawing.Image)(resources.GetObject("_BackColorButton.Image"))); - this._BackColorButton.Location = new System.Drawing.Point(6, 163); - this._BackColorButton.Name = "_BackColorButton"; - this._BackColorButton.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this._BackColorButton.Size = new System.Drawing.Size(120, 23); - this._BackColorButton.TabIndex = 12; - this._BackColorButton.Text = "Background"; - this._BackColorButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this._BackColorButton.UseVisualStyleBackColor = true; - // - // _ForeColorButton - // - this._ForeColorButton.DefaultColor = System.Drawing.Color.Empty; - this._ForeColorButton.Image = ((System.Drawing.Image)(resources.GetObject("_ForeColorButton.Image"))); - this._ForeColorButton.Location = new System.Drawing.Point(6, 134); - this._ForeColorButton.Name = "_ForeColorButton"; - this._ForeColorButton.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this._ForeColorButton.Size = new System.Drawing.Size(120, 23); - this._ForeColorButton.TabIndex = 8; - this._ForeColorButton.Text = "Foreground"; - this._ForeColorButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this._ForeColorButton.UseVisualStyleBackColor = true; - // // SyntaxStyleOptionPage // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);