Minor burn-in ui fix

This commit is contained in:
Nikolaj Olsson 2024-04-22 20:14:31 +02:00
parent c85c3556d9
commit 1854a38ca3
3 changed files with 530 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@ -140,6 +140,7 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxRightToLeft.Checked = Configuration.Settings.Tools.GenVideoNonAssaAlignRight;
labelVideoBitrate.Text = string.Empty;
nikseLabelOutputFileFolder.Text = string.Empty;
if (_videoInfo != null)
{
@ -2028,6 +2029,10 @@ namespace Nikse.SubtitleEdit.Forms
private void buttonMode_Click(object sender, EventArgs e)
{
BatchMode = !BatchMode;
ShowLabelOutput();
nikseLabelOutputFileFolder.Visible = BatchMode;
listViewBatch.Visible = BatchMode;
listViewBatch.AutoSizeLastColumn();
videoPlayerContainer1.Visible = !BatchMode;
@ -2065,6 +2070,14 @@ namespace Nikse.SubtitleEdit.Forms
labelProgress.Text = string.Empty;
}
private void ShowLabelOutput()
{
nikseLabelOutputFileFolder.Left = buttonOutputFileSettings.Right + 3;
nikseLabelOutputFileFolder.Text = Configuration.Settings.Tools.GenVideoUseOutputFolder
? Configuration.Settings.Tools.GenVideoOutputFolder
: LanguageSettings.Current.BatchConvert.SaveInSourceFolder;
}
private void addFilesToolStripMenuItem_Click(object sender, EventArgs e)
{
using (var openFileDialog1 = new OpenFileDialog())
@ -2310,6 +2323,8 @@ namespace Nikse.SubtitleEdit.Forms
using (var form = new GenerateVideoWithHardSubsOutFile())
{
form.ShowDialog(this);
ShowLabelOutput();
}
}
@ -2329,5 +2344,10 @@ namespace Nikse.SubtitleEdit.Forms
{
useSourceResolutionToolStripMenuItem.Visible = BatchMode;
}
private void nikseLabelOutputFileFolder_Click(object sender, EventArgs e)
{
}
}
}

View File

@ -17,6 +17,8 @@ namespace Nikse.SubtitleEdit.Forms
labelSuffix.Text = LanguageSettings.Current.Settings.Suffix;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
radioButtonSaveInSourceFolder.Text = LanguageSettings.Current.BatchConvert.SaveInSourceFolder;
radioButtonSaveInOutputFolder.Text = LanguageSettings.Current.BatchConvert.SaveInOutputFolder;
if (string.IsNullOrEmpty(Configuration.Settings.Tools.GenVideoOutputFolder) || !Directory.Exists(Configuration.Settings.Tools.GenVideoOutputFolder))
{