Fix a few UI details + remove unused using

This commit is contained in:
Nikolaj Olsson 2020-05-09 10:41:45 +02:00
parent 39cbd986ba
commit 72b5a2f134
3 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Nikse.SubtitleEdit.Core.SubtitleFormats

View File

@ -389,6 +389,7 @@ namespace Nikse.SubtitleEdit.Forms
labelMinDuration.Text = language.DurationMinimumMilliseconds;
labelMaxDuration.Text = language.DurationMaximumMilliseconds;
labelMinGapMs.Text = language.MinimumGapMilliseconds;
buttonGapChoose.Left = numericUpDownMinGapMs.Left + numericUpDownMinGapMs.Width + 5;
labelMaxLines.Text = language.MaximumLines;
if (labelSubMaxLen.Left + labelSubMaxLen.Width > numericUpDownSubtitleLineMaximumLength.Left)
{

View File

@ -37,6 +37,16 @@ namespace Nikse.SubtitleEdit.Forms
buttonOK.Text = Configuration.Settings.Language.General.Ok;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
UiUtil.FixLargeFonts(this, buttonOK);
// resize window with if texts are too long
if (checkBoxUncheckInsertsAllCaps.Left + checkBoxUncheckInsertsAllCaps.Width > Width)
{
Width = checkBoxUncheckInsertsAllCaps.Left + checkBoxUncheckInsertsAllCaps.Width + 10;
}
if (checkBoxHideContinuationCandidatesWithoutName.Left + checkBoxHideContinuationCandidatesWithoutName.Width > Width)
{
Width = checkBoxHideContinuationCandidatesWithoutName.Left + checkBoxHideContinuationCandidatesWithoutName.Width + 10;
}
}
private void buttonOK_Click(object sender, EventArgs e)