Merge pull request #5051 from OmrSi/bridge-duration-list-view-green-batch

Fix list view green color for bridge duration in dark theme
This commit is contained in:
Nikolaj Olsson 2021-05-18 18:58:25 +02:00 committed by GitHub
commit 7aedc79f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ namespace Nikse.SubtitleEdit.Forms
set => numericUpDownMinMsBetweenLines.Value = value;
}
private static readonly Color _listViewGreen = Configuration.Settings.General.UseDarkTheme ? Color.Green : Color.LightGreen;
public bool PreviousSubtitleTakesAllTime => radioButtonProlongEndTime.Checked;
public DurationsBridgeGaps(Subtitle subtitle)
@ -179,7 +181,7 @@ namespace Nikse.SubtitleEdit.Forms
foreach (var index in fixedIndexes)
{
SubtitleListview1.SetBackgroundColor(index, Color.LightGreen);
SubtitleListview1.SetBackgroundColor(index, _listViewGreen);
}
SubtitleListview1.EndUpdate();