mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
More SSA
This commit is contained in:
parent
893385e823
commit
a31f1ba2a9
@ -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")
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user