mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Merge pull request #4355 from OmrSi/color-single-line-length-label
Work on "Single Line Length" label color
This commit is contained in:
commit
df360d2588
@ -639,14 +639,13 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
|
|
||||||
if (i > max)
|
if (i > max)
|
||||||
{
|
{
|
||||||
label.ForeColor = Color.Red;
|
|
||||||
sb.Append("...");
|
sb.Append("...");
|
||||||
label.Text = sb.ToString();
|
label.Text = sb.ToString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.Append(line.Length);
|
sb.Append(line.Length);
|
||||||
if (line.Length > Configuration.Settings.General.SubtitleLineMaximumLength)
|
if (line.Length > Configuration.Settings.General.SubtitleLineMaximumLength || i >= Configuration.Settings.General.MaxNumberOfLines)
|
||||||
{
|
{
|
||||||
label.ForeColor = Color.Red;
|
label.ForeColor = Color.Red;
|
||||||
}
|
}
|
||||||
@ -670,7 +669,6 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
|
|
||||||
if (i > max)
|
if (i > max)
|
||||||
{
|
{
|
||||||
label.ForeColor = Color.Red;
|
|
||||||
sb.Append("...");
|
sb.Append("...");
|
||||||
label.Text = sb.ToString();
|
label.Text = sb.ToString();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user