Little Form designes changes

This commit is contained in:
Anton Mukhin
2025-05-23 16:41:38 +03:00
parent a287ddaee7
commit 6c97aa32d1
3 changed files with 10 additions and 27 deletions

View File

@@ -30,14 +30,13 @@
pictureBox1 = new System.Windows.Forms.PictureBox(); pictureBox1 = new System.Windows.Forms.PictureBox();
linkLabel1 = new System.Windows.Forms.LinkLabel(); linkLabel1 = new System.Windows.Forms.LinkLabel();
button1 = new System.Windows.Forms.Button(); button1 = new System.Windows.Forms.Button();
linkLabel2 = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// lblVersion // lblVersion
// //
lblVersion.AutoSize = true; lblVersion.AutoSize = true;
lblVersion.Location = new System.Drawing.Point(14, 218); lblVersion.Location = new System.Drawing.Point(14, 210);
lblVersion.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); lblVersion.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
lblVersion.Name = "lblVersion"; lblVersion.Name = "lblVersion";
lblVersion.Size = new System.Drawing.Size(66, 15); lblVersion.Size = new System.Drawing.Size(66, 15);
@@ -59,7 +58,7 @@
// label2 // label2
// //
label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 204); label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 204);
label2.Location = new System.Drawing.Point(0, 111); label2.Location = new System.Drawing.Point(0, 118);
label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new System.Drawing.Size(448, 29); label2.Size = new System.Drawing.Size(448, 29);
@@ -84,7 +83,7 @@
linkLabel1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; linkLabel1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204); linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
linkLabel1.Location = new System.Drawing.Point(0, 140); linkLabel1.Location = new System.Drawing.Point(0, 155);
linkLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); linkLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
linkLabel1.Name = "linkLabel1"; linkLabel1.Name = "linkLabel1";
linkLabel1.Size = new System.Drawing.Size(448, 24); linkLabel1.Size = new System.Drawing.Size(448, 24);
@@ -98,7 +97,7 @@
// //
button1.DialogResult = System.Windows.Forms.DialogResult.OK; button1.DialogResult = System.Windows.Forms.DialogResult.OK;
button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 204); button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 204);
button1.Location = new System.Drawing.Point(170, 202); button1.Location = new System.Drawing.Point(170, 194);
button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
button1.Name = "button1"; button1.Name = "button1";
button1.Size = new System.Drawing.Size(104, 31); button1.Size = new System.Drawing.Size(104, 31);
@@ -106,27 +105,12 @@
button1.Text = "OK"; button1.Text = "OK";
button1.UseVisualStyleBackColor = true; button1.UseVisualStyleBackColor = true;
// //
// linkLabel2
//
linkLabel2.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
linkLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
linkLabel2.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
linkLabel2.Location = new System.Drawing.Point(0, 164);
linkLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
linkLabel2.Name = "linkLabel2";
linkLabel2.Size = new System.Drawing.Size(448, 24);
linkLabel2.TabIndex = 6;
linkLabel2.TabStop = true;
linkLabel2.Text = "https://gitea.mcflyer.ru/McFLY/McBitFont";
linkLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// About // About
// //
AcceptButton = button1; AcceptButton = button1;
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(448, 243); ClientSize = new System.Drawing.Size(448, 236);
Controls.Add(linkLabel2);
Controls.Add(button1); Controls.Add(button1);
Controls.Add(linkLabel1); Controls.Add(linkLabel1);
Controls.Add(pictureBox1); Controls.Add(pictureBox1);
@@ -141,7 +125,7 @@
Name = "About"; Name = "About";
ShowInTaskbar = false; ShowInTaskbar = false;
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
Text = "About"; Text = "About McBitFont";
Load += About_Load; Load += About_Load;
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
ResumeLayout(false); ResumeLayout(false);
@@ -157,6 +141,5 @@
private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.LinkLabel linkLabel1;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.LinkLabel linkLabel2;
} }
} }

View File

@@ -285,11 +285,11 @@
// //
// lblTransparency // lblTransparency
// //
lblTransparency.Location = new System.Drawing.Point(457, 323); lblTransparency.Location = new System.Drawing.Point(438, 323);
lblTransparency.Name = "lblTransparency"; lblTransparency.Name = "lblTransparency";
lblTransparency.Size = new System.Drawing.Size(144, 15); lblTransparency.Size = new System.Drawing.Size(184, 15);
lblTransparency.TabIndex = 22; lblTransparency.TabIndex = 22;
lblTransparency.Text = "Transp. threshold: 32"; lblTransparency.Text = "Transparency threshold: 32";
lblTransparency.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; lblTransparency.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// tbTransparency // tbTransparency

View File

@@ -218,7 +218,7 @@ namespace McBitFont {
} }
private void tbTransparency_ValueChanged(object sender, EventArgs e) { private void tbTransparency_ValueChanged(object sender, EventArgs e) {
lblTransparency.Text = "Transp. threshold: " + tbTransparency.Value.ToString(); lblTransparency.Text = "Transparency threshold: " + tbTransparency.Value.ToString();
} }
private void tbTransparency_KeyDown(object sender, KeyEventArgs e) { private void tbTransparency_KeyDown(object sender, KeyEventArgs e) {