Minor UI fixes - thx Andrebavila :)

Related to #5151
This commit is contained in:
niksedk 2021-06-30 17:30:52 +02:00
parent 2197aa19df
commit 40e100da53
4 changed files with 21 additions and 14 deletions

View File

@ -81,6 +81,7 @@
//
this.groupBoxImageSettings.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImageSettings.Controls.Add(this.comboBoxFontSize);
this.groupBoxImageSettings.Controls.Add(this.buttonCustomResolution);
this.groupBoxImageSettings.Controls.Add(this.labelResolution);
this.groupBoxImageSettings.Controls.Add(this.comboBoxResolution);
@ -94,7 +95,6 @@
this.groupBoxImageSettings.Controls.Add(this.labelHorizontalAlign);
this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFontSize);
this.groupBoxImageSettings.Controls.Add(this.comboBoxFontName);
this.groupBoxImageSettings.Controls.Add(this.comboBoxFontSize);
this.groupBoxImageSettings.Controls.Add(this.labelSubtitleFont);
this.groupBoxImageSettings.Controls.Add(this.panelColor);
this.groupBoxImageSettings.Controls.Add(this.buttonColor);
@ -279,7 +279,7 @@
"98",
"99",
"100"});
this.comboBoxBaseline.Location = new System.Drawing.Point(112, 170);
this.comboBoxBaseline.Location = new System.Drawing.Point(113, 170);
this.comboBoxBaseline.Name = "comboBoxBaseline";
this.comboBoxBaseline.Size = new System.Drawing.Size(121, 21);
this.comboBoxBaseline.TabIndex = 70;
@ -299,7 +299,7 @@
this.comboBoxFontFace.FormattingEnabled = true;
this.comboBoxFontFace.Items.AddRange(new object[] {
"Regular"});
this.comboBoxFontFace.Location = new System.Drawing.Point(112, 78);
this.comboBoxFontFace.Location = new System.Drawing.Point(113, 78);
this.comboBoxFontFace.Name = "comboBoxFontFace";
this.comboBoxFontFace.Size = new System.Drawing.Size(121, 21);
this.comboBoxFontFace.TabIndex = 30;
@ -313,7 +313,7 @@
"center",
"right",
"justified"});
this.comboBoxHAlign.Location = new System.Drawing.Point(112, 140);
this.comboBoxHAlign.Location = new System.Drawing.Point(113, 140);
this.comboBoxHAlign.Name = "comboBoxHAlign";
this.comboBoxHAlign.Size = new System.Drawing.Size(121, 21);
this.comboBoxHAlign.TabIndex = 60;
@ -339,8 +339,9 @@
// comboBoxFontName
//
this.comboBoxFontName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxFontName.DropDownWidth = 190;
this.comboBoxFontName.FormattingEnabled = true;
this.comboBoxFontName.Location = new System.Drawing.Point(112, 24);
this.comboBoxFontName.Location = new System.Drawing.Point(113, 24);
this.comboBoxFontName.Name = "comboBoxFontName";
this.comboBoxFontName.Size = new System.Drawing.Size(121, 21);
this.comboBoxFontName.TabIndex = 10;
@ -458,7 +459,7 @@
"450",
"475",
"500"});
this.comboBoxFontSize.Location = new System.Drawing.Point(112, 51);
this.comboBoxFontSize.Location = new System.Drawing.Point(113, 51);
this.comboBoxFontSize.Name = "comboBoxFontSize";
this.comboBoxFontSize.Size = new System.Drawing.Size(121, 21);
this.comboBoxFontSize.TabIndex = 20;
@ -475,7 +476,7 @@
// panelColor
//
this.panelColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelColor.Location = new System.Drawing.Point(239, 106);
this.panelColor.Location = new System.Drawing.Point(240, 106);
this.panelColor.Name = "panelColor";
this.panelColor.Size = new System.Drawing.Size(21, 20);
this.panelColor.TabIndex = 50;
@ -483,7 +484,7 @@
//
// buttonColor
//
this.buttonColor.Location = new System.Drawing.Point(112, 105);
this.buttonColor.Location = new System.Drawing.Point(113, 105);
this.buttonColor.Name = "buttonColor";
this.buttonColor.Size = new System.Drawing.Size(121, 23);
this.buttonColor.TabIndex = 40;

View File

@ -62,6 +62,10 @@ namespace Nikse.SubtitleEdit.Forms
buttonSave.Text = LanguageSettings.Current.ExportCustomText.SaveAs;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
comboBoxFrameRate.Left = labelFrameRate.Left + Math.Max(labelFrameRate.Width, labelResolution.Width) + 3;
comboBoxResolution.Left = comboBoxFrameRate.Left;
buttonCustomResolution.Left = comboBoxResolution.Left + comboBoxResolution.Width + 3;
comboBoxHAlign.Items.Clear();
comboBoxHAlign.Items.Add(LanguageSettings.Current.ExportPngXml.Left);
comboBoxHAlign.Items.Add(LanguageSettings.Current.ExportPngXml.Center);

View File

@ -208,11 +208,11 @@
this.groupBoxGenerateSceneChanges.TabStop = false;
this.groupBoxGenerateSceneChanges.Text = "Generate scene changes";
//
// labelThressholdDescription
// labelThresholdDescription
//
this.labelThresholdDescription.AutoSize = true;
this.labelThresholdDescription.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
this.labelThresholdDescription.Location = new System.Drawing.Point(115, 384);
this.labelThresholdDescription.Location = new System.Drawing.Point(6, 387);
this.labelThresholdDescription.Name = "labelThresholdDescription";
this.labelThresholdDescription.Size = new System.Drawing.Size(195, 13);
this.labelThresholdDescription.TabIndex = 5;
@ -226,7 +226,7 @@
0,
0,
65536});
this.numericUpDownThreshold.Location = new System.Drawing.Point(66, 382);
this.numericUpDownThreshold.Location = new System.Drawing.Point(66, 364);
this.numericUpDownThreshold.Maximum = new decimal(new int[] {
9,
0,
@ -249,7 +249,7 @@
// labelFfmpegThreshold
//
this.labelFfmpegThreshold.AutoSize = true;
this.labelFfmpegThreshold.Location = new System.Drawing.Point(6, 384);
this.labelFfmpegThreshold.Location = new System.Drawing.Point(6, 366);
this.labelFfmpegThreshold.Name = "labelFfmpegThreshold";
this.labelFfmpegThreshold.Size = new System.Drawing.Size(54, 13);
this.labelFfmpegThreshold.TabIndex = 3;
@ -270,7 +270,7 @@
//
this.buttonImportWithFfmpeg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonImportWithFfmpeg.Location = new System.Drawing.Point(6, 353);
this.buttonImportWithFfmpeg.Location = new System.Drawing.Point(6, 330);
this.buttonImportWithFfmpeg.Name = "buttonImportWithFfmpeg";
this.buttonImportWithFfmpeg.Size = new System.Drawing.Size(337, 23);
this.buttonImportWithFfmpeg.TabIndex = 2;
@ -290,7 +290,7 @@
this.textBoxGenerate.Name = "textBoxGenerate";
this.textBoxGenerate.ReadOnly = true;
this.textBoxGenerate.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxGenerate.Size = new System.Drawing.Size(337, 299);
this.textBoxGenerate.Size = new System.Drawing.Size(337, 276);
this.textBoxGenerate.TabIndex = 1;
//
// progressBar1

View File

@ -67,6 +67,8 @@ namespace Nikse.SubtitleEdit.Forms
buttonImportWithFfmpeg.Enabled = true;
numericUpDownThreshold.Enabled = true;
}
numericUpDownThreshold.Left = labelFfmpegThreshold.Left + labelFfmpegThreshold.Width + 4;
}
public sealed override string Text