Change marked lines color in Remove HI

This commit is contained in:
OmrSi 2021-06-10 20:11:20 +03:00
parent 2a8fb4867b
commit aebae5a9b7

View File

@ -22,6 +22,7 @@ namespace Nikse.SubtitleEdit.Forms
private readonly List<Paragraph> _unchecked = new List<Paragraph>(); private readonly List<Paragraph> _unchecked = new List<Paragraph>();
private readonly List<Paragraph> _edited = new List<Paragraph>(); private readonly List<Paragraph> _edited = new List<Paragraph>();
private readonly List<Paragraph> _editedOld = new List<Paragraph>(); private readonly List<Paragraph> _editedOld = new List<Paragraph>();
private static readonly Color _listBackMarkColor = Configuration.Settings.General.UseDarkTheme? Color.PaleVioletRed : Color.PeachPuff;
public FormRemoveTextForHearImpaired(Main main, Subtitle subtitle) public FormRemoveTextForHearImpaired(Main main, Subtitle subtitle)
{ {
@ -145,7 +146,7 @@ namespace Nikse.SubtitleEdit.Forms
if (_removeTextForHiLib.Warnings != null && _removeTextForHiLib.Warnings.Contains(_removeTextForHiLib.WarningIndex)) if (_removeTextForHiLib.Warnings != null && _removeTextForHiLib.Warnings.Contains(_removeTextForHiLib.WarningIndex))
{ {
item.UseItemStyleForSubItems = true; item.UseItemStyleForSubItems = true;
item.BackColor = Color.PeachPuff; item.BackColor = _listBackMarkColor;
} }
item.SubItems.Add(p.Number.ToString(CultureInfo.InvariantCulture)); item.SubItems.Add(p.Number.ToString(CultureInfo.InvariantCulture));
item.SubItems.Add(UiUtil.GetListViewTextFromString(p.Text)); item.SubItems.Add(UiUtil.GetListViewTextFromString(p.Text));