mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Make mpv preview settings visible in UI
This commit is contained in:
parent
8433a9ad95
commit
a710e5de04
@ -1,5 +1,20 @@
|
|||||||
Subtitle Edit Changelog
|
Subtitle Edit Changelog
|
||||||
|
|
||||||
|
3.6.13 (xth May 2023) BETA
|
||||||
|
* NEW:
|
||||||
|
* Add shortcut for text "color picker" - thx rRobis
|
||||||
|
* Add new subtitle format "nVivo transcript" - thx Ashin
|
||||||
|
* IMPROVED:
|
||||||
|
* Update Hebrew translation - thx אלחנן
|
||||||
|
* Update Slovenian translation - thx Jadran
|
||||||
|
* FIXED:
|
||||||
|
* Fix "Add embedded subtitles" with ANSI encoding - thx Cyberyoda1411
|
||||||
|
* Fix running Whisper CPP/Const-me after setting folder for Whisper OpenAI - thx rsmith02ct
|
||||||
|
* Fix possible crash in batch convert with overwrite - thx chensimmons
|
||||||
|
* Fix possible crash after "Options - Settings" - thx JDTR75
|
||||||
|
* Fix undo/redo for text
|
||||||
|
|
||||||
|
|
||||||
3.6.12 (26th March 2023)
|
3.6.12 (26th March 2023)
|
||||||
* NEW:
|
* NEW:
|
||||||
* Add/remove embedded subtitles to/from video files - thx David
|
* Add/remove embedded subtitles to/from video files - thx David
|
||||||
|
@ -1404,7 +1404,7 @@ $HorzAlign = Center
|
|||||||
public decimal MpvPreviewTextOutlineWidth { get; set; }
|
public decimal MpvPreviewTextOutlineWidth { get; set; }
|
||||||
public decimal MpvPreviewTextShadowWidth { get; set; }
|
public decimal MpvPreviewTextShadowWidth { get; set; }
|
||||||
public bool MpvPreviewTextOpaqueBox { get; set; }
|
public bool MpvPreviewTextOpaqueBox { get; set; }
|
||||||
public bool MpvPreviewTextOpaqueBoxMultiLine { get; set; }
|
public string MpvPreviewTextOpaqueBoxStyle { get; set; }
|
||||||
public string MpvPreviewTextAlignment { get; set; }
|
public string MpvPreviewTextAlignment { get; set; }
|
||||||
public int MpvPreviewTextMarginVertical { get; set; }
|
public int MpvPreviewTextMarginVertical { get; set; }
|
||||||
public string MpcHcLocation { get; set; }
|
public string MpcHcLocation { get; set; }
|
||||||
@ -1588,7 +1588,7 @@ $HorzAlign = Center
|
|||||||
MpvPreviewTextOutlineWidth = 1;
|
MpvPreviewTextOutlineWidth = 1;
|
||||||
MpvPreviewTextShadowWidth = 1;
|
MpvPreviewTextShadowWidth = 1;
|
||||||
MpvPreviewTextOpaqueBox = false;
|
MpvPreviewTextOpaqueBox = false;
|
||||||
MpvPreviewTextOpaqueBox = false;
|
MpvPreviewTextOpaqueBoxStyle = "1";
|
||||||
MpvPreviewTextAlignment = "2";
|
MpvPreviewTextAlignment = "2";
|
||||||
MpvPreviewTextMarginVertical = 10;
|
MpvPreviewTextMarginVertical = 10;
|
||||||
FFmpegSceneThreshold = "0.4"; // threshold for generating shot changes - 0.2 is sensitive (more shot changes), 0.6 is less sensitive (fewer shot changes)
|
FFmpegSceneThreshold = "0.4"; // threshold for generating shot changes - 0.2 is sensitive (more shot changes), 0.6 is less sensitive (fewer shot changes)
|
||||||
@ -4149,13 +4149,13 @@ $HorzAlign = Center
|
|||||||
subNode = node.SelectSingleNode("MpvPreviewTextOutlineWidth");
|
subNode = node.SelectSingleNode("MpvPreviewTextOutlineWidth");
|
||||||
if (subNode != null)
|
if (subNode != null)
|
||||||
{
|
{
|
||||||
settings.General.MpvPreviewTextOutlineWidth = Convert.ToDecimal(subNode.InnerText.Trim());
|
settings.General.MpvPreviewTextOutlineWidth = Convert.ToDecimal(subNode.InnerText.Trim(), CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("MpvPreviewTextShadowWidth");
|
subNode = node.SelectSingleNode("MpvPreviewTextShadowWidth");
|
||||||
if (subNode != null)
|
if (subNode != null)
|
||||||
{
|
{
|
||||||
settings.General.MpvPreviewTextShadowWidth = Convert.ToDecimal(subNode.InnerText.Trim());
|
settings.General.MpvPreviewTextShadowWidth = Convert.ToDecimal(subNode.InnerText.Trim(), CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("MpvPreviewTextOpaqueBox");
|
subNode = node.SelectSingleNode("MpvPreviewTextOpaqueBox");
|
||||||
@ -4164,10 +4164,10 @@ $HorzAlign = Center
|
|||||||
settings.General.MpvPreviewTextOpaqueBox = Convert.ToBoolean(subNode.InnerText.Trim());
|
settings.General.MpvPreviewTextOpaqueBox = Convert.ToBoolean(subNode.InnerText.Trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("MpvPreviewTextOpaqueBoxMultiLine");
|
subNode = node.SelectSingleNode("MpvPreviewTextOpaqueBoxStyle");
|
||||||
if (subNode != null)
|
if (subNode != null)
|
||||||
{
|
{
|
||||||
settings.General.MpvPreviewTextOpaqueBoxMultiLine = Convert.ToBoolean(subNode.InnerText.Trim());
|
settings.General.MpvPreviewTextOpaqueBoxStyle = subNode.InnerText;
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("MpvPreviewTextAlignment");
|
subNode = node.SelectSingleNode("MpvPreviewTextAlignment");
|
||||||
@ -5623,7 +5623,7 @@ $HorzAlign = Center
|
|||||||
subNode = node.SelectSingleNode("ImportTextGap");
|
subNode = node.SelectSingleNode("ImportTextGap");
|
||||||
if (subNode != null)
|
if (subNode != null)
|
||||||
{
|
{
|
||||||
settings.Tools.ImportTextGap = Convert.ToDecimal(subNode.InnerText);
|
settings.Tools.ImportTextGap = Convert.ToDecimal(subNode.InnerText, CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("ImportTextAutoSplitNumberOfLines");
|
subNode = node.SelectSingleNode("ImportTextAutoSplitNumberOfLines");
|
||||||
@ -5647,7 +5647,7 @@ $HorzAlign = Center
|
|||||||
subNode = node.SelectSingleNode("ImportTextFixedDuration");
|
subNode = node.SelectSingleNode("ImportTextFixedDuration");
|
||||||
if (subNode != null)
|
if (subNode != null)
|
||||||
{
|
{
|
||||||
settings.Tools.ImportTextFixedDuration = Convert.ToDecimal(subNode.InnerText);
|
settings.Tools.ImportTextFixedDuration = Convert.ToDecimal(subNode.InnerText, CultureInfo.InvariantCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
subNode = node.SelectSingleNode("GenerateTimeCodePatterns");
|
subNode = node.SelectSingleNode("GenerateTimeCodePatterns");
|
||||||
@ -10339,7 +10339,7 @@ $HorzAlign = Center
|
|||||||
textWriter.WriteElementString("MpvPreviewTextOutlineWidth", settings.General.MpvPreviewTextOutlineWidth.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("MpvPreviewTextOutlineWidth", settings.General.MpvPreviewTextOutlineWidth.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("MpvPreviewTextShadowWidth", settings.General.MpvPreviewTextShadowWidth.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("MpvPreviewTextShadowWidth", settings.General.MpvPreviewTextShadowWidth.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("MpvPreviewTextOpaqueBox", settings.General.MpvPreviewTextOpaqueBox.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("MpvPreviewTextOpaqueBox", settings.General.MpvPreviewTextOpaqueBox.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("MpvPreviewTextOpaqueBoxMultiLine", settings.General.MpvPreviewTextOpaqueBoxMultiLine.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("MpvPreviewTextOpaqueBoxStyle", settings.General.MpvPreviewTextOpaqueBoxStyle);
|
||||||
textWriter.WriteElementString("MpvPreviewTextAlignment", settings.General.MpvPreviewTextAlignment);
|
textWriter.WriteElementString("MpvPreviewTextAlignment", settings.General.MpvPreviewTextAlignment);
|
||||||
textWriter.WriteElementString("MpvPreviewTextMarginVertical", settings.General.MpvPreviewTextMarginVertical.ToString(CultureInfo.InvariantCulture));
|
textWriter.WriteElementString("MpvPreviewTextMarginVertical", settings.General.MpvPreviewTextMarginVertical.ToString(CultureInfo.InvariantCulture));
|
||||||
textWriter.WriteElementString("MpcHcLocation", settings.General.MpcHcLocation);
|
textWriter.WriteElementString("MpcHcLocation", settings.General.MpcHcLocation);
|
||||||
|
@ -415,7 +415,7 @@ namespace Nikse.SubtitleEdit.Controls
|
|||||||
Background = gs.MpvPreviewTextBackgroundColor,
|
Background = gs.MpvPreviewTextBackgroundColor,
|
||||||
OutlineWidth = gs.MpvPreviewTextOutlineWidth,
|
OutlineWidth = gs.MpvPreviewTextOutlineWidth,
|
||||||
ShadowWidth = gs.MpvPreviewTextShadowWidth,
|
ShadowWidth = gs.MpvPreviewTextShadowWidth,
|
||||||
BorderStyle = gs.MpvPreviewTextOpaqueBox ? gs.MpvPreviewTextOpaqueBoxMultiLine ? "4" : "3" : "1",
|
BorderStyle = gs.MpvPreviewTextOpaqueBoxStyle,
|
||||||
Alignment = gs.MpvPreviewTextAlignment,
|
Alignment = gs.MpvPreviewTextAlignment,
|
||||||
MarginVertical = gs.MpvPreviewTextMarginVertical
|
MarginVertical = gs.MpvPreviewTextMarginVertical
|
||||||
};
|
};
|
||||||
|
230
src/ui/Forms/Options/Settings.Designer.cs
generated
230
src/ui/Forms/Options/Settings.Designer.cs
generated
@ -176,8 +176,19 @@
|
|||||||
this.labelCustomSearch = new System.Windows.Forms.Label();
|
this.labelCustomSearch = new System.Windows.Forms.Label();
|
||||||
this.comboBoxCustomSearch1 = new System.Windows.Forms.ComboBox();
|
this.comboBoxCustomSearch1 = new System.Windows.Forms.ComboBox();
|
||||||
this.groupBoxVideoPlayerDefault = new System.Windows.Forms.GroupBox();
|
this.groupBoxVideoPlayerDefault = new System.Windows.Forms.GroupBox();
|
||||||
this.labelVideoPlayerPreviewFontColor = new System.Windows.Forms.Label();
|
this.panelMpvBackColor = new System.Windows.Forms.Panel();
|
||||||
this.panelVideoPlayerPreviewFontColor = new System.Windows.Forms.Panel();
|
this.buttonMpvBackColor = new System.Windows.Forms.Button();
|
||||||
|
this.panelMpvOutlineColor = new System.Windows.Forms.Panel();
|
||||||
|
this.buttonMpvOutlineColor = new System.Windows.Forms.Button();
|
||||||
|
this.panelMpvPrimaryColor = new System.Windows.Forms.Panel();
|
||||||
|
this.buttonMpvPrimaryColor = new System.Windows.Forms.Button();
|
||||||
|
this.groupBoxMpvBorder = new System.Windows.Forms.GroupBox();
|
||||||
|
this.comboBoxOpaqueBoxStyle = new System.Windows.Forms.ComboBox();
|
||||||
|
this.radioButtonMpvOpaqueBox = new System.Windows.Forms.RadioButton();
|
||||||
|
this.radioButtonMpvOutline = new System.Windows.Forms.RadioButton();
|
||||||
|
this.numericUpDownMpvShadowWidth = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.numericUpDownMpvOutline = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.labelMpvShadow = new System.Windows.Forms.Label();
|
||||||
this.checkBoxAllowVolumeBoost = new System.Windows.Forms.CheckBox();
|
this.checkBoxAllowVolumeBoost = new System.Windows.Forms.CheckBox();
|
||||||
this.checkBoxVideoAutoOpen = new System.Windows.Forms.CheckBox();
|
this.checkBoxVideoAutoOpen = new System.Windows.Forms.CheckBox();
|
||||||
this.checkBoxVideoPlayerPreviewFontBold = new System.Windows.Forms.CheckBox();
|
this.checkBoxVideoPlayerPreviewFontBold = new System.Windows.Forms.CheckBox();
|
||||||
@ -185,7 +196,6 @@
|
|||||||
this.checkBoxVideoPlayerShowMuteButton = new System.Windows.Forms.CheckBox();
|
this.checkBoxVideoPlayerShowMuteButton = new System.Windows.Forms.CheckBox();
|
||||||
this.labelVideoPlayerPreviewFontName = new System.Windows.Forms.Label();
|
this.labelVideoPlayerPreviewFontName = new System.Windows.Forms.Label();
|
||||||
this.comboBoxVideoPlayerPreviewFontName = new System.Windows.Forms.ComboBox();
|
this.comboBoxVideoPlayerPreviewFontName = new System.Windows.Forms.ComboBox();
|
||||||
this.checkBoxMpvPreviewOpaqueBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.labelVideoPlayerPreviewFontSize = new System.Windows.Forms.Label();
|
this.labelVideoPlayerPreviewFontSize = new System.Windows.Forms.Label();
|
||||||
this.comboBoxlVideoPlayerPreviewFontSize = new System.Windows.Forms.ComboBox();
|
this.comboBoxlVideoPlayerPreviewFontSize = new System.Windows.Forms.ComboBox();
|
||||||
this.checkBoxVideoPlayerShowStopButton = new System.Windows.Forms.CheckBox();
|
this.checkBoxVideoPlayerShowStopButton = new System.Windows.Forms.CheckBox();
|
||||||
@ -442,6 +452,9 @@
|
|||||||
this.panelVideoPlayer.SuspendLayout();
|
this.panelVideoPlayer.SuspendLayout();
|
||||||
this.groupBoxMainWindowVideoControls.SuspendLayout();
|
this.groupBoxMainWindowVideoControls.SuspendLayout();
|
||||||
this.groupBoxVideoPlayerDefault.SuspendLayout();
|
this.groupBoxVideoPlayerDefault.SuspendLayout();
|
||||||
|
this.groupBoxMpvBorder.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMpvShadowWidth)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMpvOutline)).BeginInit();
|
||||||
this.groupBoxVideoEngine.SuspendLayout();
|
this.groupBoxVideoEngine.SuspendLayout();
|
||||||
this.panelWaveform.SuspendLayout();
|
this.panelWaveform.SuspendLayout();
|
||||||
this.groupBoxFfmpeg.SuspendLayout();
|
this.groupBoxFfmpeg.SuspendLayout();
|
||||||
@ -2157,9 +2170,9 @@
|
|||||||
this.groupBoxMainWindowVideoControls.Controls.Add(this.textBoxCustomSearchUrl1);
|
this.groupBoxMainWindowVideoControls.Controls.Add(this.textBoxCustomSearchUrl1);
|
||||||
this.groupBoxMainWindowVideoControls.Controls.Add(this.labelCustomSearch);
|
this.groupBoxMainWindowVideoControls.Controls.Add(this.labelCustomSearch);
|
||||||
this.groupBoxMainWindowVideoControls.Controls.Add(this.comboBoxCustomSearch1);
|
this.groupBoxMainWindowVideoControls.Controls.Add(this.comboBoxCustomSearch1);
|
||||||
this.groupBoxMainWindowVideoControls.Location = new System.Drawing.Point(0, 313);
|
this.groupBoxMainWindowVideoControls.Location = new System.Drawing.Point(0, 323);
|
||||||
this.groupBoxMainWindowVideoControls.Name = "groupBoxMainWindowVideoControls";
|
this.groupBoxMainWindowVideoControls.Name = "groupBoxMainWindowVideoControls";
|
||||||
this.groupBoxMainWindowVideoControls.Size = new System.Drawing.Size(851, 207);
|
this.groupBoxMainWindowVideoControls.Size = new System.Drawing.Size(851, 197);
|
||||||
this.groupBoxMainWindowVideoControls.TabIndex = 15;
|
this.groupBoxMainWindowVideoControls.TabIndex = 15;
|
||||||
this.groupBoxMainWindowVideoControls.TabStop = false;
|
this.groupBoxMainWindowVideoControls.TabStop = false;
|
||||||
this.groupBoxMainWindowVideoControls.Text = "Main window video controls";
|
this.groupBoxMainWindowVideoControls.Text = "Main window video controls";
|
||||||
@ -2347,8 +2360,13 @@
|
|||||||
//
|
//
|
||||||
this.groupBoxVideoPlayerDefault.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.groupBoxVideoPlayerDefault.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.labelVideoPlayerPreviewFontColor);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.panelMpvBackColor);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.panelVideoPlayerPreviewFontColor);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.buttonMpvBackColor);
|
||||||
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.panelMpvOutlineColor);
|
||||||
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.buttonMpvOutlineColor);
|
||||||
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.panelMpvPrimaryColor);
|
||||||
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.buttonMpvPrimaryColor);
|
||||||
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.groupBoxMpvBorder);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxAllowVolumeBoost);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxAllowVolumeBoost);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoAutoOpen);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoAutoOpen);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerPreviewFontBold);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerPreviewFontBold);
|
||||||
@ -2356,33 +2374,153 @@
|
|||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerShowMuteButton);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerShowMuteButton);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.labelVideoPlayerPreviewFontName);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.labelVideoPlayerPreviewFontName);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.comboBoxVideoPlayerPreviewFontName);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.comboBoxVideoPlayerPreviewFontName);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxMpvPreviewOpaqueBox);
|
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.labelVideoPlayerPreviewFontSize);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.labelVideoPlayerPreviewFontSize);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.comboBoxlVideoPlayerPreviewFontSize);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.comboBoxlVideoPlayerPreviewFontSize);
|
||||||
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerShowStopButton);
|
this.groupBoxVideoPlayerDefault.Controls.Add(this.checkBoxVideoPlayerShowStopButton);
|
||||||
this.groupBoxVideoPlayerDefault.Location = new System.Drawing.Point(0, 160);
|
this.groupBoxVideoPlayerDefault.Location = new System.Drawing.Point(0, 160);
|
||||||
this.groupBoxVideoPlayerDefault.Name = "groupBoxVideoPlayerDefault";
|
this.groupBoxVideoPlayerDefault.Name = "groupBoxVideoPlayerDefault";
|
||||||
this.groupBoxVideoPlayerDefault.Size = new System.Drawing.Size(851, 147);
|
this.groupBoxVideoPlayerDefault.Size = new System.Drawing.Size(851, 160);
|
||||||
this.groupBoxVideoPlayerDefault.TabIndex = 14;
|
this.groupBoxVideoPlayerDefault.TabIndex = 14;
|
||||||
this.groupBoxVideoPlayerDefault.TabStop = false;
|
this.groupBoxVideoPlayerDefault.TabStop = false;
|
||||||
//
|
//
|
||||||
// labelVideoPlayerPreviewFontColor
|
// panelMpvBackColor
|
||||||
//
|
//
|
||||||
this.labelVideoPlayerPreviewFontColor.AutoSize = true;
|
this.panelMpvBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
this.labelVideoPlayerPreviewFontColor.Location = new System.Drawing.Point(331, 111);
|
this.panelMpvBackColor.Location = new System.Drawing.Point(399, 125);
|
||||||
this.labelVideoPlayerPreviewFontColor.Name = "labelVideoPlayerPreviewFontColor";
|
this.panelMpvBackColor.Name = "panelMpvBackColor";
|
||||||
this.labelVideoPlayerPreviewFontColor.Size = new System.Drawing.Size(133, 13);
|
this.panelMpvBackColor.Size = new System.Drawing.Size(21, 20);
|
||||||
this.labelVideoPlayerPreviewFontColor.TabIndex = 12;
|
this.panelMpvBackColor.TabIndex = 19;
|
||||||
this.labelVideoPlayerPreviewFontColor.Text = "Subtitle preview font color";
|
this.panelMpvBackColor.Click += new System.EventHandler(this.buttonMpvBackColor_Click);
|
||||||
//
|
//
|
||||||
// panelVideoPlayerPreviewFontColor
|
// buttonMpvBackColor
|
||||||
//
|
//
|
||||||
this.panelVideoPlayerPreviewFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.buttonMpvBackColor.Location = new System.Drawing.Point(325, 124);
|
||||||
this.panelVideoPlayerPreviewFontColor.Location = new System.Drawing.Point(471, 107);
|
this.buttonMpvBackColor.Name = "buttonMpvBackColor";
|
||||||
this.panelVideoPlayerPreviewFontColor.Name = "panelVideoPlayerPreviewFontColor";
|
this.buttonMpvBackColor.Size = new System.Drawing.Size(69, 23);
|
||||||
this.panelVideoPlayerPreviewFontColor.Size = new System.Drawing.Size(21, 20);
|
this.buttonMpvBackColor.TabIndex = 18;
|
||||||
this.panelVideoPlayerPreviewFontColor.TabIndex = 11;
|
this.buttonMpvBackColor.Text = "Shadow";
|
||||||
this.panelVideoPlayerPreviewFontColor.Click += new System.EventHandler(this.panelVideoPlayerPreviewFontColor_Click);
|
this.buttonMpvBackColor.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonMpvBackColor.Click += new System.EventHandler(this.buttonMpvBackColor_Click);
|
||||||
|
//
|
||||||
|
// panelMpvOutlineColor
|
||||||
|
//
|
||||||
|
this.panelMpvOutlineColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panelMpvOutlineColor.Location = new System.Drawing.Point(387, 96);
|
||||||
|
this.panelMpvOutlineColor.Name = "panelMpvOutlineColor";
|
||||||
|
this.panelMpvOutlineColor.Size = new System.Drawing.Size(21, 20);
|
||||||
|
this.panelMpvOutlineColor.TabIndex = 17;
|
||||||
|
this.panelMpvOutlineColor.Click += new System.EventHandler(this.buttonMpvOutlineColor_Click);
|
||||||
|
//
|
||||||
|
// buttonMpvOutlineColor
|
||||||
|
//
|
||||||
|
this.buttonMpvOutlineColor.Location = new System.Drawing.Point(325, 95);
|
||||||
|
this.buttonMpvOutlineColor.Name = "buttonMpvOutlineColor";
|
||||||
|
this.buttonMpvOutlineColor.Size = new System.Drawing.Size(58, 23);
|
||||||
|
this.buttonMpvOutlineColor.TabIndex = 16;
|
||||||
|
this.buttonMpvOutlineColor.Text = "Outline";
|
||||||
|
this.buttonMpvOutlineColor.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonMpvOutlineColor.Click += new System.EventHandler(this.buttonMpvOutlineColor_Click);
|
||||||
|
//
|
||||||
|
// panelMpvPrimaryColor
|
||||||
|
//
|
||||||
|
this.panelMpvPrimaryColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panelMpvPrimaryColor.Location = new System.Drawing.Point(403, 67);
|
||||||
|
this.panelMpvPrimaryColor.Name = "panelMpvPrimaryColor";
|
||||||
|
this.panelMpvPrimaryColor.Size = new System.Drawing.Size(21, 20);
|
||||||
|
this.panelMpvPrimaryColor.TabIndex = 15;
|
||||||
|
this.panelMpvPrimaryColor.Click += new System.EventHandler(this.buttonMpvPrimaryColor_Click);
|
||||||
|
//
|
||||||
|
// buttonMpvPrimaryColor
|
||||||
|
//
|
||||||
|
this.buttonMpvPrimaryColor.Location = new System.Drawing.Point(325, 66);
|
||||||
|
this.buttonMpvPrimaryColor.Name = "buttonMpvPrimaryColor";
|
||||||
|
this.buttonMpvPrimaryColor.Size = new System.Drawing.Size(72, 23);
|
||||||
|
this.buttonMpvPrimaryColor.TabIndex = 14;
|
||||||
|
this.buttonMpvPrimaryColor.Text = "&Primary";
|
||||||
|
this.buttonMpvPrimaryColor.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonMpvPrimaryColor.Click += new System.EventHandler(this.buttonMpvPrimaryColor_Click);
|
||||||
|
//
|
||||||
|
// groupBoxMpvBorder
|
||||||
|
//
|
||||||
|
this.groupBoxMpvBorder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.comboBoxOpaqueBoxStyle);
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.radioButtonMpvOpaqueBox);
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.radioButtonMpvOutline);
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.numericUpDownMpvShadowWidth);
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.numericUpDownMpvOutline);
|
||||||
|
this.groupBoxMpvBorder.Controls.Add(this.labelMpvShadow);
|
||||||
|
this.groupBoxMpvBorder.Location = new System.Drawing.Point(547, 45);
|
||||||
|
this.groupBoxMpvBorder.Name = "groupBoxMpvBorder";
|
||||||
|
this.groupBoxMpvBorder.Size = new System.Drawing.Size(285, 105);
|
||||||
|
this.groupBoxMpvBorder.TabIndex = 13;
|
||||||
|
this.groupBoxMpvBorder.TabStop = false;
|
||||||
|
this.groupBoxMpvBorder.Text = "Border";
|
||||||
|
//
|
||||||
|
// comboBoxOpaqueBoxStyle
|
||||||
|
//
|
||||||
|
this.comboBoxOpaqueBoxStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxOpaqueBoxStyle.DropDownWidth = 300;
|
||||||
|
this.comboBoxOpaqueBoxStyle.FormattingEnabled = true;
|
||||||
|
this.comboBoxOpaqueBoxStyle.Location = new System.Drawing.Point(35, 69);
|
||||||
|
this.comboBoxOpaqueBoxStyle.Name = "comboBoxOpaqueBoxStyle";
|
||||||
|
this.comboBoxOpaqueBoxStyle.Size = new System.Drawing.Size(212, 21);
|
||||||
|
this.comboBoxOpaqueBoxStyle.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// radioButtonMpvOpaqueBox
|
||||||
|
//
|
||||||
|
this.radioButtonMpvOpaqueBox.AutoSize = true;
|
||||||
|
this.radioButtonMpvOpaqueBox.Location = new System.Drawing.Point(12, 50);
|
||||||
|
this.radioButtonMpvOpaqueBox.Name = "radioButtonMpvOpaqueBox";
|
||||||
|
this.radioButtonMpvOpaqueBox.Size = new System.Drawing.Size(84, 17);
|
||||||
|
this.radioButtonMpvOpaqueBox.TabIndex = 4;
|
||||||
|
this.radioButtonMpvOpaqueBox.Text = "Opaque bo&x";
|
||||||
|
this.radioButtonMpvOpaqueBox.UseVisualStyleBackColor = false;
|
||||||
|
//
|
||||||
|
// radioButtonMpvOutline
|
||||||
|
//
|
||||||
|
this.radioButtonMpvOutline.AutoSize = true;
|
||||||
|
this.radioButtonMpvOutline.Location = new System.Drawing.Point(12, 24);
|
||||||
|
this.radioButtonMpvOutline.Name = "radioButtonMpvOutline";
|
||||||
|
this.radioButtonMpvOutline.Size = new System.Drawing.Size(59, 17);
|
||||||
|
this.radioButtonMpvOutline.TabIndex = 0;
|
||||||
|
this.radioButtonMpvOutline.Text = "Outline";
|
||||||
|
this.radioButtonMpvOutline.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// numericUpDownMpvShadowWidth
|
||||||
|
//
|
||||||
|
this.numericUpDownMpvShadowWidth.DecimalPlaces = 1;
|
||||||
|
this.numericUpDownMpvShadowWidth.Increment = new decimal(new int[] {
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
65536});
|
||||||
|
this.numericUpDownMpvShadowWidth.Location = new System.Drawing.Point(134, 24);
|
||||||
|
this.numericUpDownMpvShadowWidth.Name = "numericUpDownMpvShadowWidth";
|
||||||
|
this.numericUpDownMpvShadowWidth.Size = new System.Drawing.Size(52, 21);
|
||||||
|
this.numericUpDownMpvShadowWidth.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// numericUpDownMpvOutline
|
||||||
|
//
|
||||||
|
this.numericUpDownMpvOutline.DecimalPlaces = 1;
|
||||||
|
this.numericUpDownMpvOutline.Increment = new decimal(new int[] {
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
65536});
|
||||||
|
this.numericUpDownMpvOutline.Location = new System.Drawing.Point(76, 24);
|
||||||
|
this.numericUpDownMpvOutline.Name = "numericUpDownMpvOutline";
|
||||||
|
this.numericUpDownMpvOutline.Size = new System.Drawing.Size(52, 21);
|
||||||
|
this.numericUpDownMpvOutline.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// labelMpvShadow
|
||||||
|
//
|
||||||
|
this.labelMpvShadow.AutoSize = true;
|
||||||
|
this.labelMpvShadow.Location = new System.Drawing.Point(134, 11);
|
||||||
|
this.labelMpvShadow.Name = "labelMpvShadow";
|
||||||
|
this.labelMpvShadow.Size = new System.Drawing.Size(45, 13);
|
||||||
|
this.labelMpvShadow.TabIndex = 2;
|
||||||
|
this.labelMpvShadow.Text = "Shadow";
|
||||||
//
|
//
|
||||||
// checkBoxAllowVolumeBoost
|
// checkBoxAllowVolumeBoost
|
||||||
//
|
//
|
||||||
@ -2407,7 +2545,7 @@
|
|||||||
// checkBoxVideoPlayerPreviewFontBold
|
// checkBoxVideoPlayerPreviewFontBold
|
||||||
//
|
//
|
||||||
this.checkBoxVideoPlayerPreviewFontBold.AutoSize = true;
|
this.checkBoxVideoPlayerPreviewFontBold.AutoSize = true;
|
||||||
this.checkBoxVideoPlayerPreviewFontBold.Location = new System.Drawing.Point(471, 67);
|
this.checkBoxVideoPlayerPreviewFontBold.Location = new System.Drawing.Point(660, 17);
|
||||||
this.checkBoxVideoPlayerPreviewFontBold.Name = "checkBoxVideoPlayerPreviewFontBold";
|
this.checkBoxVideoPlayerPreviewFontBold.Name = "checkBoxVideoPlayerPreviewFontBold";
|
||||||
this.checkBoxVideoPlayerPreviewFontBold.Size = new System.Drawing.Size(46, 17);
|
this.checkBoxVideoPlayerPreviewFontBold.Size = new System.Drawing.Size(46, 17);
|
||||||
this.checkBoxVideoPlayerPreviewFontBold.TabIndex = 9;
|
this.checkBoxVideoPlayerPreviewFontBold.TabIndex = 9;
|
||||||
@ -2437,35 +2575,25 @@
|
|||||||
// labelVideoPlayerPreviewFontName
|
// labelVideoPlayerPreviewFontName
|
||||||
//
|
//
|
||||||
this.labelVideoPlayerPreviewFontName.AutoSize = true;
|
this.labelVideoPlayerPreviewFontName.AutoSize = true;
|
||||||
this.labelVideoPlayerPreviewFontName.Location = new System.Drawing.Point(331, 16);
|
this.labelVideoPlayerPreviewFontName.Location = new System.Drawing.Point(324, 16);
|
||||||
this.labelVideoPlayerPreviewFontName.Name = "labelVideoPlayerPreviewFontName";
|
this.labelVideoPlayerPreviewFontName.Name = "labelVideoPlayerPreviewFontName";
|
||||||
this.labelVideoPlayerPreviewFontName.Size = new System.Drawing.Size(128, 13);
|
this.labelVideoPlayerPreviewFontName.Size = new System.Drawing.Size(136, 13);
|
||||||
this.labelVideoPlayerPreviewFontName.TabIndex = 5;
|
this.labelVideoPlayerPreviewFontName.TabIndex = 5;
|
||||||
this.labelVideoPlayerPreviewFontName.Text = "Subtitle preview font size";
|
this.labelVideoPlayerPreviewFontName.Text = "Subtitle preview font name";
|
||||||
//
|
//
|
||||||
// comboBoxVideoPlayerPreviewFontName
|
// comboBoxVideoPlayerPreviewFontName
|
||||||
//
|
//
|
||||||
this.comboBoxVideoPlayerPreviewFontName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.comboBoxVideoPlayerPreviewFontName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.comboBoxVideoPlayerPreviewFontName.FormattingEnabled = true;
|
this.comboBoxVideoPlayerPreviewFontName.FormattingEnabled = true;
|
||||||
this.comboBoxVideoPlayerPreviewFontName.Location = new System.Drawing.Point(471, 13);
|
this.comboBoxVideoPlayerPreviewFontName.Location = new System.Drawing.Point(465, 13);
|
||||||
this.comboBoxVideoPlayerPreviewFontName.Name = "comboBoxVideoPlayerPreviewFontName";
|
this.comboBoxVideoPlayerPreviewFontName.Name = "comboBoxVideoPlayerPreviewFontName";
|
||||||
this.comboBoxVideoPlayerPreviewFontName.Size = new System.Drawing.Size(188, 21);
|
this.comboBoxVideoPlayerPreviewFontName.Size = new System.Drawing.Size(188, 21);
|
||||||
this.comboBoxVideoPlayerPreviewFontName.TabIndex = 6;
|
this.comboBoxVideoPlayerPreviewFontName.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// checkBoxMpvPreviewOpaqueBox
|
|
||||||
//
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.AutoSize = true;
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.Location = new System.Drawing.Point(471, 87);
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.Name = "checkBoxMpvPreviewOpaqueBox";
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.Size = new System.Drawing.Size(85, 17);
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.TabIndex = 10;
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.Text = "Opaque box";
|
|
||||||
this.checkBoxMpvPreviewOpaqueBox.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// labelVideoPlayerPreviewFontSize
|
// labelVideoPlayerPreviewFontSize
|
||||||
//
|
//
|
||||||
this.labelVideoPlayerPreviewFontSize.AutoSize = true;
|
this.labelVideoPlayerPreviewFontSize.AutoSize = true;
|
||||||
this.labelVideoPlayerPreviewFontSize.Location = new System.Drawing.Point(331, 43);
|
this.labelVideoPlayerPreviewFontSize.Location = new System.Drawing.Point(324, 43);
|
||||||
this.labelVideoPlayerPreviewFontSize.Name = "labelVideoPlayerPreviewFontSize";
|
this.labelVideoPlayerPreviewFontSize.Name = "labelVideoPlayerPreviewFontSize";
|
||||||
this.labelVideoPlayerPreviewFontSize.Size = new System.Drawing.Size(128, 13);
|
this.labelVideoPlayerPreviewFontSize.Size = new System.Drawing.Size(128, 13);
|
||||||
this.labelVideoPlayerPreviewFontSize.TabIndex = 7;
|
this.labelVideoPlayerPreviewFontSize.TabIndex = 7;
|
||||||
@ -2499,9 +2627,9 @@
|
|||||||
"28",
|
"28",
|
||||||
"29",
|
"29",
|
||||||
"30"});
|
"30"});
|
||||||
this.comboBoxlVideoPlayerPreviewFontSize.Location = new System.Drawing.Point(471, 40);
|
this.comboBoxlVideoPlayerPreviewFontSize.Location = new System.Drawing.Point(465, 40);
|
||||||
this.comboBoxlVideoPlayerPreviewFontSize.Name = "comboBoxlVideoPlayerPreviewFontSize";
|
this.comboBoxlVideoPlayerPreviewFontSize.Name = "comboBoxlVideoPlayerPreviewFontSize";
|
||||||
this.comboBoxlVideoPlayerPreviewFontSize.Size = new System.Drawing.Size(121, 21);
|
this.comboBoxlVideoPlayerPreviewFontSize.Size = new System.Drawing.Size(70, 21);
|
||||||
this.comboBoxlVideoPlayerPreviewFontSize.TabIndex = 8;
|
this.comboBoxlVideoPlayerPreviewFontSize.TabIndex = 8;
|
||||||
//
|
//
|
||||||
// checkBoxVideoPlayerShowStopButton
|
// checkBoxVideoPlayerShowStopButton
|
||||||
@ -5094,6 +5222,10 @@
|
|||||||
this.groupBoxMainWindowVideoControls.PerformLayout();
|
this.groupBoxMainWindowVideoControls.PerformLayout();
|
||||||
this.groupBoxVideoPlayerDefault.ResumeLayout(false);
|
this.groupBoxVideoPlayerDefault.ResumeLayout(false);
|
||||||
this.groupBoxVideoPlayerDefault.PerformLayout();
|
this.groupBoxVideoPlayerDefault.PerformLayout();
|
||||||
|
this.groupBoxMpvBorder.ResumeLayout(false);
|
||||||
|
this.groupBoxMpvBorder.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMpvShadowWidth)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMpvOutline)).EndInit();
|
||||||
this.groupBoxVideoEngine.ResumeLayout(false);
|
this.groupBoxVideoEngine.ResumeLayout(false);
|
||||||
this.groupBoxVideoEngine.PerformLayout();
|
this.groupBoxVideoEngine.PerformLayout();
|
||||||
this.panelWaveform.ResumeLayout(false);
|
this.panelWaveform.ResumeLayout(false);
|
||||||
@ -5298,7 +5430,6 @@
|
|||||||
private System.Windows.Forms.ComboBox comboBoxVideoPlayerPreviewFontName;
|
private System.Windows.Forms.ComboBox comboBoxVideoPlayerPreviewFontName;
|
||||||
private System.Windows.Forms.Label labelVideoPlayerPreviewFontSize;
|
private System.Windows.Forms.Label labelVideoPlayerPreviewFontSize;
|
||||||
private System.Windows.Forms.ComboBox comboBoxlVideoPlayerPreviewFontSize;
|
private System.Windows.Forms.ComboBox comboBoxlVideoPlayerPreviewFontSize;
|
||||||
private System.Windows.Forms.CheckBox checkBoxMpvPreviewOpaqueBox;
|
|
||||||
private System.Windows.Forms.GroupBox groupBoxShortcuts;
|
private System.Windows.Forms.GroupBox groupBoxShortcuts;
|
||||||
private System.Windows.Forms.Button buttonUpdateShortcut;
|
private System.Windows.Forms.Button buttonUpdateShortcut;
|
||||||
private System.Windows.Forms.TreeView treeViewShortcuts;
|
private System.Windows.Forms.TreeView treeViewShortcuts;
|
||||||
@ -5520,8 +5651,6 @@
|
|||||||
private System.Windows.Forms.ToolStripMenuItem moveToBottomToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem moveToBottomToolStripMenuItem;
|
||||||
private System.Windows.Forms.Panel panelShortcuts;
|
private System.Windows.Forms.Panel panelShortcuts;
|
||||||
private System.Windows.Forms.CheckBox checkBoxLiveSpellCheck;
|
private System.Windows.Forms.CheckBox checkBoxLiveSpellCheck;
|
||||||
private System.Windows.Forms.Label labelVideoPlayerPreviewFontColor;
|
|
||||||
private System.Windows.Forms.Panel panelVideoPlayerPreviewFontColor;
|
|
||||||
private System.Windows.Forms.CheckBox checkBoxDarkThemeShowListViewGridLines;
|
private System.Windows.Forms.CheckBox checkBoxDarkThemeShowListViewGridLines;
|
||||||
private System.Windows.Forms.GroupBox groupBoxFontInUI;
|
private System.Windows.Forms.GroupBox groupBoxFontInUI;
|
||||||
private System.Windows.Forms.GroupBox groupBoxToolsMisc;
|
private System.Windows.Forms.GroupBox groupBoxToolsMisc;
|
||||||
@ -5559,5 +5688,18 @@
|
|||||||
private System.Windows.Forms.ComboBox comboBoxCustomToggleEnd;
|
private System.Windows.Forms.ComboBox comboBoxCustomToggleEnd;
|
||||||
private System.Windows.Forms.ComboBox comboBoxCustomToggleStart;
|
private System.Windows.Forms.ComboBox comboBoxCustomToggleStart;
|
||||||
private System.Windows.Forms.Label labelShortcutCustomToggle;
|
private System.Windows.Forms.Label labelShortcutCustomToggle;
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxMpvBorder;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxOpaqueBoxStyle;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonMpvOpaqueBox;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonMpvOutline;
|
||||||
|
private System.Windows.Forms.NumericUpDown numericUpDownMpvShadowWidth;
|
||||||
|
private System.Windows.Forms.NumericUpDown numericUpDownMpvOutline;
|
||||||
|
private System.Windows.Forms.Label labelMpvShadow;
|
||||||
|
private System.Windows.Forms.Panel panelMpvBackColor;
|
||||||
|
private System.Windows.Forms.Button buttonMpvBackColor;
|
||||||
|
private System.Windows.Forms.Panel panelMpvOutlineColor;
|
||||||
|
private System.Windows.Forms.Button buttonMpvOutlineColor;
|
||||||
|
private System.Windows.Forms.Panel panelMpvPrimaryColor;
|
||||||
|
private System.Windows.Forms.Button buttonMpvPrimaryColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -154,6 +154,11 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
comboBoxFrameRate.Items.Add(59.94.ToString(CultureInfo.CurrentCulture));
|
comboBoxFrameRate.Items.Add(59.94.ToString(CultureInfo.CurrentCulture));
|
||||||
comboBoxFrameRate.Items.Add(60.00.ToString(CultureInfo.CurrentCulture));
|
comboBoxFrameRate.Items.Add(60.00.ToString(CultureInfo.CurrentCulture));
|
||||||
|
|
||||||
|
comboBoxOpaqueBoxStyle.Items.Clear();
|
||||||
|
comboBoxOpaqueBoxStyle.Items.Add(LanguageSettings.Current.SubStationAlphaStyles.BoxPerLine);
|
||||||
|
comboBoxOpaqueBoxStyle.Items.Add(LanguageSettings.Current.SubStationAlphaStyles.BoxMultiLine);
|
||||||
|
comboBoxOpaqueBoxStyle.SelectedIndex = 0;
|
||||||
|
|
||||||
checkBoxShowFrameRate.Checked = gs.ShowFrameRate;
|
checkBoxShowFrameRate.Checked = gs.ShowFrameRate;
|
||||||
comboBoxFrameRate.Text = gs.DefaultFrameRate.ToString(CultureInfo.CurrentCulture);
|
comboBoxFrameRate.Text = gs.DefaultFrameRate.ToString(CultureInfo.CurrentCulture);
|
||||||
|
|
||||||
@ -251,7 +256,7 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
checkBoxVideoPlayerShowMuteButton.Checked = gs.VideoPlayerShowMuteButton;
|
checkBoxVideoPlayerShowMuteButton.Checked = gs.VideoPlayerShowMuteButton;
|
||||||
checkBoxVideoPlayerShowFullscreenButton.Checked = gs.VideoPlayerShowFullscreenButton;
|
checkBoxVideoPlayerShowFullscreenButton.Checked = gs.VideoPlayerShowFullscreenButton;
|
||||||
|
|
||||||
int videoPlayerPreviewFontSizeIndex = gs.VideoPlayerPreviewFontSize - int.Parse(comboBoxlVideoPlayerPreviewFontSize.Items[0].ToString());
|
var videoPlayerPreviewFontSizeIndex = gs.VideoPlayerPreviewFontSize - int.Parse(comboBoxlVideoPlayerPreviewFontSize.Items[0].ToString());
|
||||||
if (videoPlayerPreviewFontSizeIndex >= 0 && videoPlayerPreviewFontSizeIndex < comboBoxlVideoPlayerPreviewFontSize.Items.Count)
|
if (videoPlayerPreviewFontSizeIndex >= 0 && videoPlayerPreviewFontSizeIndex < comboBoxlVideoPlayerPreviewFontSize.Items.Count)
|
||||||
{
|
{
|
||||||
comboBoxlVideoPlayerPreviewFontSize.SelectedIndex = videoPlayerPreviewFontSizeIndex;
|
comboBoxlVideoPlayerPreviewFontSize.SelectedIndex = videoPlayerPreviewFontSizeIndex;
|
||||||
@ -261,9 +266,23 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
comboBoxlVideoPlayerPreviewFontSize.SelectedIndex = 3;
|
comboBoxlVideoPlayerPreviewFontSize.SelectedIndex = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numericUpDownMpvOutline.Value = gs.MpvPreviewTextOutlineWidth;
|
||||||
|
numericUpDownMpvShadowWidth.Value = gs.MpvPreviewTextShadowWidth;
|
||||||
checkBoxVideoPlayerPreviewFontBold.Checked = gs.VideoPlayerPreviewFontBold;
|
checkBoxVideoPlayerPreviewFontBold.Checked = gs.VideoPlayerPreviewFontBold;
|
||||||
checkBoxMpvPreviewOpaqueBox.Checked = gs.MpvPreviewTextOpaqueBox;
|
radioButtonMpvOpaqueBox.Checked = gs.MpvPreviewTextOpaqueBox;
|
||||||
panelVideoPlayerPreviewFontColor.BackColor = gs.MpvPreviewTextPrimaryColor;
|
radioButtonMpvOutline.Checked = !gs.MpvPreviewTextOpaqueBox;
|
||||||
|
if (gs.MpvPreviewTextOpaqueBox && gs.MpvPreviewTextOpaqueBoxStyle == "3")
|
||||||
|
{
|
||||||
|
comboBoxOpaqueBoxStyle.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
else if (gs.MpvPreviewTextOpaqueBox)
|
||||||
|
{
|
||||||
|
comboBoxOpaqueBoxStyle.SelectedIndex = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
panelMpvPrimaryColor.BackColor = gs.MpvPreviewTextPrimaryColor;
|
||||||
|
panelMpvOutlineColor.BackColor = gs.MpvPreviewTextOutlineColor;
|
||||||
|
panelMpvBackColor.BackColor = gs.MpvPreviewTextBackgroundColor;
|
||||||
|
|
||||||
checkBoxVideoAutoOpen.Checked = !gs.DisableVideoAutoLoading;
|
checkBoxVideoAutoOpen.Checked = !gs.DisableVideoAutoLoading;
|
||||||
checkBoxAllowVolumeBoost.Checked = gs.AllowVolumeBoost;
|
checkBoxAllowVolumeBoost.Checked = gs.AllowVolumeBoost;
|
||||||
@ -604,6 +623,11 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
labelMpvSettings.Left = buttonMpvSettings.Left + buttonMpvSettings.Width + 5;
|
labelMpvSettings.Left = buttonMpvSettings.Left + buttonMpvSettings.Width + 5;
|
||||||
checkBoxMpvHandlesPreviewText.Text = language.MpvHandlesPreviewText;
|
checkBoxMpvHandlesPreviewText.Text = language.MpvHandlesPreviewText;
|
||||||
|
|
||||||
|
groupBoxMpvBorder.Text = LanguageSettings.Current.SubStationAlphaStyles.Border;
|
||||||
|
labelMpvShadow.Text = LanguageSettings.Current.SubStationAlphaStyles.Shadow;
|
||||||
|
radioButtonMpvOutline.Text = LanguageSettings.Current.SubStationAlphaStyles.Outline;
|
||||||
|
radioButtonMpvOpaqueBox.Text = LanguageSettings.Current.SubStationAlphaStyles.OpaqueBox;
|
||||||
|
|
||||||
radioButtonVideoPlayerVLC.Text = language.VlcMediaPlayer;
|
radioButtonVideoPlayerVLC.Text = language.VlcMediaPlayer;
|
||||||
labelVideoPlayerVLC.Text = language.VlcMediaPlayerDescription;
|
labelVideoPlayerVLC.Text = language.VlcMediaPlayerDescription;
|
||||||
gs.VlcLocation = textBoxVlcPath.Text;
|
gs.VlcLocation = textBoxVlcPath.Text;
|
||||||
@ -614,16 +638,18 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
|
|
||||||
labelVideoPlayerPreviewFontName.Text = language.PreviewFontName;
|
labelVideoPlayerPreviewFontName.Text = language.PreviewFontName;
|
||||||
labelVideoPlayerPreviewFontSize.Text = language.PreviewFontSize;
|
labelVideoPlayerPreviewFontSize.Text = language.PreviewFontSize;
|
||||||
labelVideoPlayerPreviewFontColor.Text = language.SubtitleFontColor;
|
buttonMpvPrimaryColor.Text = LanguageSettings.Current.SubStationAlphaStyles.Primary;
|
||||||
|
buttonMpvOutlineColor.Text = LanguageSettings.Current.SubStationAlphaStyles.Outline;
|
||||||
|
buttonMpvBackColor.Text = LanguageSettings.Current.SubStationAlphaStyles.Shadow;
|
||||||
checkBoxVideoPlayerPreviewFontBold.Text = language.SubtitleBold;
|
checkBoxVideoPlayerPreviewFontBold.Text = language.SubtitleBold;
|
||||||
checkBoxMpvPreviewOpaqueBox.Text = language.SsaOpaqueBox;
|
|
||||||
var left = labelVideoPlayerPreviewFontName.Left + 5 +
|
var left = labelVideoPlayerPreviewFontName.Left + 5 +
|
||||||
Math.Max(labelVideoPlayerPreviewFontName.Width, Math.Max(labelVideoPlayerPreviewFontSize.Width, labelVideoPlayerPreviewFontColor.Width));
|
Math.Max(labelVideoPlayerPreviewFontName.Width, labelVideoPlayerPreviewFontSize.Width);
|
||||||
comboBoxVideoPlayerPreviewFontName.Left = left;
|
comboBoxVideoPlayerPreviewFontName.Left = left;
|
||||||
comboBoxlVideoPlayerPreviewFontSize.Left = left;
|
comboBoxlVideoPlayerPreviewFontSize.Left = left;
|
||||||
checkBoxVideoPlayerPreviewFontBold.Left = left;
|
panelMpvPrimaryColor.Left = buttonMpvPrimaryColor.Right + 5;
|
||||||
checkBoxMpvPreviewOpaqueBox.Left = left;
|
panelMpvOutlineColor.Left = buttonMpvOutlineColor.Right + 5;
|
||||||
panelVideoPlayerPreviewFontColor.Left = left;
|
panelMpvBackColor.Left = buttonMpvBackColor.Right + 5;
|
||||||
|
checkBoxVideoPlayerPreviewFontBold.Left = comboBoxVideoPlayerPreviewFontName.Right + 6;
|
||||||
|
|
||||||
checkBoxVideoAutoOpen.Text = language.VideoAutoOpen;
|
checkBoxVideoAutoOpen.Text = language.VideoAutoOpen;
|
||||||
checkBoxAllowVolumeBoost.Text = language.AllowVolumeBoost;
|
checkBoxAllowVolumeBoost.Text = language.AllowVolumeBoost;
|
||||||
@ -1958,10 +1984,31 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
gs.VideoPlayerPreviewFontName = comboBoxVideoPlayerPreviewFontName.SelectedItem.ToString();
|
gs.VideoPlayerPreviewFontName = comboBoxVideoPlayerPreviewFontName.SelectedItem.ToString();
|
||||||
gs.VideoPlayerPreviewFontSize = int.Parse(comboBoxlVideoPlayerPreviewFontSize.Items[0].ToString()) + comboBoxlVideoPlayerPreviewFontSize.SelectedIndex;
|
gs.VideoPlayerPreviewFontSize = int.Parse(comboBoxlVideoPlayerPreviewFontSize.Items[0].ToString()) + comboBoxlVideoPlayerPreviewFontSize.SelectedIndex;
|
||||||
gs.VideoPlayerPreviewFontBold = checkBoxVideoPlayerPreviewFontBold.Checked;
|
gs.VideoPlayerPreviewFontBold = checkBoxVideoPlayerPreviewFontBold.Checked;
|
||||||
gs.MpvPreviewTextPrimaryColor = panelVideoPlayerPreviewFontColor.BackColor;
|
gs.MpvPreviewTextPrimaryColor = panelMpvPrimaryColor.BackColor;
|
||||||
|
gs.MpvPreviewTextOutlineColor = panelMpvOutlineColor.BackColor;
|
||||||
|
gs.MpvPreviewTextBackgroundColor = panelMpvBackColor.BackColor;
|
||||||
|
|
||||||
gs.DisableVideoAutoLoading = !checkBoxVideoAutoOpen.Checked;
|
gs.DisableVideoAutoLoading = !checkBoxVideoAutoOpen.Checked;
|
||||||
gs.AllowVolumeBoost = checkBoxAllowVolumeBoost.Checked;
|
gs.AllowVolumeBoost = checkBoxAllowVolumeBoost.Checked;
|
||||||
gs.MpvPreviewTextOpaqueBox = checkBoxMpvPreviewOpaqueBox.Checked;
|
gs.MpvPreviewTextOpaqueBox = radioButtonMpvOpaqueBox.Checked;
|
||||||
|
gs.MpvPreviewTextOutlineWidth = numericUpDownMpvOutline.Value;
|
||||||
|
gs.MpvPreviewTextShadowWidth = numericUpDownMpvShadowWidth.Value;
|
||||||
|
|
||||||
|
if (radioButtonMpvOpaqueBox.Checked)
|
||||||
|
{
|
||||||
|
if (comboBoxOpaqueBoxStyle.SelectedIndex == 0)
|
||||||
|
{
|
||||||
|
gs.MpvPreviewTextOpaqueBoxStyle = "3";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gs.MpvPreviewTextOpaqueBoxStyle = "4";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gs.MpvPreviewTextOpaqueBoxStyle = "1";
|
||||||
|
}
|
||||||
|
|
||||||
Configuration.Settings.VideoControls.CustomSearchText1 = comboBoxCustomSearch1.Text;
|
Configuration.Settings.VideoControls.CustomSearchText1 = comboBoxCustomSearch1.Text;
|
||||||
Configuration.Settings.VideoControls.CustomSearchText2 = comboBoxCustomSearch2.Text;
|
Configuration.Settings.VideoControls.CustomSearchText2 = comboBoxCustomSearch2.Text;
|
||||||
@ -2824,16 +2871,25 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
private void radioButtonVideoPlayerMPV_CheckedChanged(object sender, EventArgs e)
|
private void radioButtonVideoPlayerMPV_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
checkBoxMpvHandlesPreviewText.Enabled = radioButtonVideoPlayerMPV.Checked;
|
checkBoxMpvHandlesPreviewText.Enabled = radioButtonVideoPlayerMPV.Checked;
|
||||||
checkBoxMpvPreviewOpaqueBox.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
groupBoxMpvBorder.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
panelVideoPlayerPreviewFontColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
buttonMpvPrimaryColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
labelVideoPlayerPreviewFontColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
panelMpvPrimaryColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
buttonMpvOutlineColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
panelMpvOutlineColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
buttonMpvBackColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
panelMpvBackColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkBoxMpvHandlesPreviewText_CheckedChanged(object sender, EventArgs e)
|
private void checkBoxMpvHandlesPreviewText_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
checkBoxMpvPreviewOpaqueBox.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
checkBoxMpvHandlesPreviewText.Enabled = radioButtonVideoPlayerMPV.Checked;
|
||||||
panelVideoPlayerPreviewFontColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
groupBoxMpvBorder.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
labelVideoPlayerPreviewFontColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
buttonMpvPrimaryColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
panelMpvPrimaryColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
buttonMpvOutlineColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
panelMpvOutlineColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
buttonMpvBackColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
|
panelMpvBackColor.Visible = radioButtonVideoPlayerMPV.Checked && checkBoxMpvHandlesPreviewText.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonClearShortcut_Click(object sender, EventArgs e)
|
private void buttonClearShortcut_Click(object sender, EventArgs e)
|
||||||
@ -3154,15 +3210,6 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
listBoxSection.Update();
|
listBoxSection.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void panelVideoPlayerPreviewFontColor_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
colorDialogSSAStyle.Color = panelVideoPlayerPreviewFontColor.BackColor;
|
|
||||||
if (colorDialogSSAStyle.ShowDialog() == DialogResult.OK)
|
|
||||||
{
|
|
||||||
panelVideoPlayerPreviewFontColor.BackColor = colorDialogSSAStyle.Color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkBoxDarkThemeEnabled_CheckedChanged(object sender, EventArgs e)
|
private void checkBoxDarkThemeEnabled_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var enabled = checkBoxDarkThemeEnabled.Checked;
|
var enabled = checkBoxDarkThemeEnabled.Checked;
|
||||||
@ -3530,5 +3577,32 @@ namespace Nikse.SubtitleEdit.Forms.Options
|
|||||||
File.WriteAllText(saveFileDialog1.FileName, html.ToString());
|
File.WriteAllText(saveFileDialog1.FileName, html.ToString());
|
||||||
UiUtil.OpenFolderFromFileName(saveFileDialog1.FileName);
|
UiUtil.OpenFolderFromFileName(saveFileDialog1.FileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void buttonMpvPrimaryColor_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
colorDialogSSAStyle.Color = panelMpvPrimaryColor.BackColor;
|
||||||
|
if (colorDialogSSAStyle.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
panelMpvPrimaryColor.BackColor = colorDialogSSAStyle.Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonMpvOutlineColor_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
colorDialogSSAStyle.Color = panelMpvOutlineColor.BackColor;
|
||||||
|
if (colorDialogSSAStyle.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
panelMpvOutlineColor.BackColor = colorDialogSSAStyle.Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonMpvBackColor_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
colorDialogSSAStyle.Color = panelMpvBackColor.BackColor;
|
||||||
|
if (colorDialogSSAStyle.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
panelMpvBackColor.BackColor = colorDialogSSAStyle.Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user