This commit is contained in:
niksedk 2021-08-28 23:25:48 +02:00
parent 893385e823
commit a31f1ba2a9
2 changed files with 6 additions and 6 deletions

View File

@ -145,11 +145,11 @@ namespace Nikse.SubtitleEdit.Core.Common
}
else if (f == "outline")
{
sb.Append(ColorTranslator.ToWin32(Outline));
sb.Append(OutlineWidth.ToString(CultureInfo.InvariantCulture));
}
else if (f == "shadow")
{
sb.Append(OutlineWidth.ToString(CultureInfo.InvariantCulture));
sb.Append(ShadowWidth.ToString(CultureInfo.InvariantCulture));
}
else if (f == "marginl")
{

View File

@ -1551,7 +1551,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
{
if (listViewStyles.SelectedItems.Count == 1 && _doUpdate)
{
string name = listViewStyles.SelectedItems[0].Text;
var name = listViewStyles.SelectedItems[0].Text;
SetSsaStyle(name, "outline", numericUpDownOutline.Value.ToString(CultureInfo.InvariantCulture));
GeneratePreview();
}
@ -1561,7 +1561,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
{
if (listViewStyles.SelectedItems.Count == 1 && _doUpdate)
{
string name = listViewStyles.SelectedItems[0].Text;
var name = listViewStyles.SelectedItems[0].Text;
SetSsaStyle(name, "shadow", numericUpDownShadowWidth.Value.ToString(CultureInfo.InvariantCulture));
GeneratePreview();
}
@ -1571,7 +1571,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
{
if (sender is RadioButton rb && listViewStyles.SelectedItems.Count == 1 && _doUpdate && rb.Checked)
{
string name = listViewStyles.SelectedItems[0].Text;
var name = listViewStyles.SelectedItems[0].Text;
SetSsaStyle(name, "outline", numericUpDownOutline.Value.ToString(CultureInfo.InvariantCulture));
SetSsaStyle(name, "borderstyle", "1");
GeneratePreview();
@ -1582,7 +1582,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
{
if (sender is RadioButton rb && listViewStyles.SelectedItems.Count == 1 && _doUpdate && rb.Checked)
{
string name = listViewStyles.SelectedItems[0].Text;
var name = listViewStyles.SelectedItems[0].Text;
SetSsaStyle(name, "outline", numericUpDownOutline.Value.ToString(CultureInfo.InvariantCulture));
SetSsaStyle(name, "borderstyle", "3");
GeneratePreview();