From f339c5e411ac222164d6a4862a09935907dd1a01 Mon Sep 17 00:00:00 2001 From: maxluli Date: Wed, 15 Jun 2022 16:16:50 +0200 Subject: [PATCH] More UI additions --- Paint_2/Form1.Designer.cs | 118 ++++++++++++++++++-------------------- 1 file changed, 55 insertions(+), 63 deletions(-) diff --git a/Paint_2/Form1.Designer.cs b/Paint_2/Form1.Designer.cs index 7732235..330f00b 100644 --- a/Paint_2/Form1.Designer.cs +++ b/Paint_2/Form1.Designer.cs @@ -54,23 +54,23 @@ this.btnColorHistory1 = new System.Windows.Forms.Button(); this.btnClear = new System.Windows.Forms.Button(); this.panelTools = new System.Windows.Forms.Panel(); - this.btnEyeDrop = new System.Windows.Forms.Button(); + this.lsbTools = new System.Windows.Forms.ListBox(); this.pbxSample = new System.Windows.Forms.PictureBox(); + this.label1 = new System.Windows.Forms.Label(); + this.btnEyeDrop = new System.Windows.Forms.Button(); this.btnRandomColor = new System.Windows.Forms.Button(); this.btnColorPicker = new System.Windows.Forms.Button(); this.btnRedo = new System.Windows.Forms.Button(); this.btnUndo = new System.Windows.Forms.Button(); - this.lsbTools = new System.Windows.Forms.ListBox(); this.panel1 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); this.panel3 = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); this.pnlLayers = new System.Windows.Forms.Panel(); this.btnLayerRemove = new System.Windows.Forms.Button(); this.BtnAddLayer = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.DebugLabel = new System.Windows.Forms.Label(); this.panel4 = new System.Windows.Forms.Panel(); - this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.canvas)).BeginInit(); this.panelFile.SuspendLayout(); this.panelDrawing.SuspendLayout(); @@ -91,7 +91,7 @@ this.tbxProjectName.Font = new System.Drawing.Font("Verdana", 15F); this.tbxProjectName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); this.tbxProjectName.Location = new System.Drawing.Point(2, 3); - this.tbxProjectName.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.tbxProjectName.Margin = new System.Windows.Forms.Padding(2); this.tbxProjectName.Name = "tbxProjectName"; this.tbxProjectName.Size = new System.Drawing.Size(225, 32); this.tbxProjectName.TabIndex = 0; @@ -103,7 +103,7 @@ this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btnSave.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); this.btnSave.Location = new System.Drawing.Point(231, 2); - this.btnSave.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnSave.Margin = new System.Windows.Forms.Padding(2); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(54, 33); this.btnSave.TabIndex = 1; @@ -116,7 +116,7 @@ this.canvas.BackColor = System.Drawing.Color.Transparent; this.canvas.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.canvas.Location = new System.Drawing.Point(10, 49); - this.canvas.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.canvas.Margin = new System.Windows.Forms.Padding(2); this.canvas.Name = "canvas"; this.canvas.Size = new System.Drawing.Size(1000, 500); this.canvas.TabIndex = 2; @@ -130,7 +130,7 @@ this.btnSaveCopy.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btnSaveCopy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); this.btnSaveCopy.Location = new System.Drawing.Point(289, 2); - this.btnSaveCopy.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnSaveCopy.Margin = new System.Windows.Forms.Padding(2); this.btnSaveCopy.Name = "btnSaveCopy"; this.btnSaveCopy.Size = new System.Drawing.Size(92, 33); this.btnSaveCopy.TabIndex = 2; @@ -151,7 +151,6 @@ // panelFile // this.panelFile.BackColor = System.Drawing.Color.Transparent; - this.panelFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelFile.Controls.Add(this.btnLoadFile); this.panelFile.Controls.Add(this.tbxProjectName); this.panelFile.Controls.Add(this.btnSave); @@ -168,7 +167,7 @@ this.btnLoadFile.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btnLoadFile.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); this.btnLoadFile.Location = new System.Drawing.Point(385, 2); - this.btnLoadFile.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.btnLoadFile.Margin = new System.Windows.Forms.Padding(2); this.btnLoadFile.Name = "btnLoadFile"; this.btnLoadFile.Size = new System.Drawing.Size(96, 33); this.btnLoadFile.TabIndex = 3; @@ -179,7 +178,6 @@ // this.panelDrawing.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelDrawing.BackColor = System.Drawing.Color.Transparent; - this.panelDrawing.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelDrawing.Controls.Add(this.lblHeight); this.panelDrawing.Controls.Add(this.lblWidth); this.panelDrawing.Location = new System.Drawing.Point(737, 553); @@ -212,7 +210,6 @@ // this.panelSelectedColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelSelectedColor.BackColor = System.Drawing.Color.Transparent; - this.panelSelectedColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelSelectedColor.Controls.Add(this.btnSelectedColor); this.panelSelectedColor.Controls.Add(this.lblSelectedColor); this.panelSelectedColor.Controls.Add(this.label14); @@ -249,7 +246,6 @@ // this.panelHoverColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelHoverColor.BackColor = System.Drawing.Color.Transparent; - this.panelHoverColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelHoverColor.Controls.Add(this.btnHoveringColor); this.panelHoverColor.Controls.Add(this.lblHoveringColor); this.panelHoverColor.Controls.Add(this.label15); @@ -383,7 +379,7 @@ this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.btnClear.Font = new System.Drawing.Font("Cascadia Code", 10.2F); this.btnClear.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.btnClear.Location = new System.Drawing.Point(4, 31); + this.btnClear.Location = new System.Drawing.Point(6, 33); this.btnClear.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(169, 24); @@ -396,7 +392,6 @@ // this.panelTools.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panelTools.BackColor = System.Drawing.Color.Transparent; - this.panelTools.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelTools.Controls.Add(this.nupPencilWidth); this.panelTools.Controls.Add(this.lsbTools); this.panelTools.Controls.Add(this.pbxSample); @@ -407,6 +402,40 @@ this.panelTools.Size = new System.Drawing.Size(196, 232); this.panelTools.TabIndex = 31; // + // lsbTools + // + this.lsbTools.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(59)))), ((int)(((byte)(59))))); + this.lsbTools.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.lsbTools.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); + this.lsbTools.FormattingEnabled = true; + this.lsbTools.ItemHeight = 14; + this.lsbTools.Location = new System.Drawing.Point(6, 20); + this.lsbTools.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.lsbTools.Name = "lsbTools"; + this.lsbTools.Size = new System.Drawing.Size(183, 142); + this.lsbTools.TabIndex = 32; + this.lsbTools.SelectedIndexChanged += new System.EventHandler(this.lsbTools_SelectedIndexChanged); + // + // pbxSample + // + this.pbxSample.Location = new System.Drawing.Point(6, 166); + this.pbxSample.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.pbxSample.Name = "pbxSample"; + this.pbxSample.Size = new System.Drawing.Size(117, 59); + this.pbxSample.TabIndex = 35; + this.pbxSample.TabStop = false; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); + this.label1.Location = new System.Drawing.Point(3, 2); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(84, 16); + this.label1.TabIndex = 36; + this.label1.Text = "Paint tools"; + // // btnEyeDrop // this.btnEyeDrop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(59)))), ((int)(((byte)(59))))); @@ -422,15 +451,6 @@ this.btnEyeDrop.UseVisualStyleBackColor = false; this.btnEyeDrop.Click += new System.EventHandler(this.btnEyeDrop_Click); // - // pbxSample - // - this.pbxSample.Location = new System.Drawing.Point(6, 166); - this.pbxSample.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.pbxSample.Name = "pbxSample"; - this.pbxSample.Size = new System.Drawing.Size(117, 59); - this.pbxSample.TabIndex = 35; - this.pbxSample.TabStop = false; - // // btnRandomColor // this.btnRandomColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(59)))), ((int)(((byte)(59))))); @@ -491,25 +511,10 @@ this.btnUndo.UseVisualStyleBackColor = false; this.btnUndo.Click += new System.EventHandler(this.btnUndo_Click); // - // lsbTools - // - this.lsbTools.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(59)))), ((int)(((byte)(59))))); - this.lsbTools.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.lsbTools.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.lsbTools.FormattingEnabled = true; - this.lsbTools.ItemHeight = 14; - this.lsbTools.Location = new System.Drawing.Point(6, 20); - this.lsbTools.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.lsbTools.Name = "lsbTools"; - this.lsbTools.Size = new System.Drawing.Size(183, 142); - this.lsbTools.TabIndex = 32; - this.lsbTools.SelectedIndexChanged += new System.EventHandler(this.lsbTools_SelectedIndexChanged); - // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panel1.BackColor = System.Drawing.Color.Transparent; - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.btnClear); this.panel1.Controls.Add(this.btnRedo); this.panel1.Controls.Add(this.btnUndo); @@ -519,22 +524,10 @@ this.panel1.Size = new System.Drawing.Size(178, 60); this.panel1.TabIndex = 35; // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.label1.Location = new System.Drawing.Point(3, 2); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(84, 16); - this.label1.TabIndex = 36; - this.label1.Text = "Paint tools"; - // // panel3 // this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panel3.BackColor = System.Drawing.Color.Transparent; - this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Controls.Add(this.label3); this.panel3.Controls.Add(this.pnlLayers); this.panel3.Controls.Add(this.btnLayerRemove); @@ -546,6 +539,17 @@ this.panel3.Size = new System.Drawing.Size(196, 259); this.panel3.TabIndex = 37; // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); + this.label3.Location = new System.Drawing.Point(3, 8); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(49, 16); + this.label3.TabIndex = 37; + this.label3.Text = "Layers"; + // // pnlLayers // this.pnlLayers.AutoScroll = true; @@ -607,7 +611,6 @@ // panel4 // this.panel4.BackColor = System.Drawing.Color.Transparent; - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.Controls.Add(this.btnEyeDrop); this.panel4.Controls.Add(this.btnRandomColor); this.panel4.Controls.Add(this.btnColorPicker); @@ -621,17 +624,6 @@ this.panel4.Size = new System.Drawing.Size(507, 39); this.panel4.TabIndex = 37; // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247))))); - this.label3.Location = new System.Drawing.Point(3, 8); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(49, 16); - this.label3.TabIndex = 37; - this.label3.Text = "Layers"; - // // PaintForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 14F);