Fix frame color - thx OmrSi :)

Fix #4499
This commit is contained in:
Nikolaj Olsson 2020-11-14 20:29:16 +01:00
parent afb21eaddc
commit 5476733383
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ namespace Nikse.SubtitleEdit.Controls
BorderStyle = BorderStyle.None;
Padding = new Padding(1);
BackColor = SystemColors.ActiveBorder;
BackColor = SystemColors.WindowFrame;
Controls.Clear();
_textBox?.Dispose();
@ -81,7 +81,7 @@ namespace Nikse.SubtitleEdit.Controls
Controls.Add(textBox);
textBox.Dock = DockStyle.Fill;
textBox.Enter += (sender, args) => { BackColor = SystemColors.Highlight; };
textBox.Leave += (sender, args) => { BackColor = SystemColors.ActiveBorder; };
textBox.Leave += (sender, args) => { BackColor = SystemColors.WindowFrame; };
textBox.TextChanged += (sender, args) => { TextChanged?.Invoke(sender, args); };
}

View File

@ -4740,8 +4740,8 @@ namespace Nikse.SubtitleEdit.Forms
{
textBoxListViewText.Initialize(Configuration.Settings.General.SubtitleTextBoxSyntaxColor);
textBoxListViewTextAlternate.Initialize(Configuration.Settings.General.SubtitleTextBoxSyntaxColor);
textBoxListViewText.BackColor = SystemColors.ActiveBorder;
textBoxListViewTextAlternate.BackColor = SystemColors.ActiveBorder;
textBoxListViewText.BackColor = SystemColors.WindowFrame;
textBoxListViewTextAlternate.BackColor = SystemColors.WindowFrame;
RefreshSelectedParagraph();
}