mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
More on last commit
This commit is contained in:
parent
8312edac43
commit
566c52aabb
@ -1095,7 +1095,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
|
||||
private static string GetSsaColorString(Color c)
|
||||
{
|
||||
return Color.FromArgb(0, c.B, c.G, c.R).ToArgb().ToString(); ;
|
||||
return Color.FromArgb(0, c.B, c.G, c.R).ToArgb().ToString();
|
||||
}
|
||||
|
||||
private void buttonCopy_Click(object sender, EventArgs e)
|
||||
@ -1143,19 +1143,6 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
_currentFileStyles.Remove(_currentFileStyles.Find(p => p.Name == name));
|
||||
}
|
||||
|
||||
private void ReplaceStyleInHeader(SsaStyle style)
|
||||
{
|
||||
var hit = _currentFileStyles.Find(p => p.Name == style.Name);
|
||||
if (hit == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var index = _currentFileStyles.IndexOf(hit);
|
||||
_currentFileStyles.RemoveAt(index);
|
||||
_currentFileStyles.Insert(index, style);
|
||||
}
|
||||
|
||||
private void buttonAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var name = LanguageSettings.Current.SubStationAlphaStyles.New;
|
||||
@ -1237,7 +1224,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
foreach (ListViewItem selectedItem in listViewStyles.SelectedItems)
|
||||
{
|
||||
var name = selectedItem.Text;
|
||||
|
||||
|
||||
var currentStyle = _currentFileStyles.FirstOrDefault(p => p.Name == name);
|
||||
if (currentStyle != null)
|
||||
{
|
||||
@ -1522,11 +1509,6 @@ namespace Nikse.SubtitleEdit.Forms.Styles
|
||||
SetLastColumnWidth();
|
||||
}
|
||||
|
||||
private void listViewStorage_ClientSizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
SetLastColumnWidth();
|
||||
}
|
||||
|
||||
private void SubStationAlphaStyles_ResizeEnd(object sender, EventArgs e)
|
||||
{
|
||||
_backgroundImage?.Dispose();
|
||||
|
Loading…
Reference in New Issue
Block a user