Fix EBU color picker in dark mode - thx Vasilis :)

This commit is contained in:
niksedk 2022-01-10 11:07:31 +01:00
parent 0672d0daff
commit c45d9cb364

View File

@ -19,7 +19,7 @@ namespace Nikse.SubtitleEdit.Forms
{ {
buttonBlack.Visible = false; buttonBlack.Visible = false;
buttonBlue.Top -= buttonBlue.Height; buttonBlue.Top -= buttonBlue.Height;
buttonCyan .Top -= buttonBlue.Height; buttonCyan.Top -= buttonBlue.Height;
buttonGreen.Top -= buttonBlue.Height; buttonGreen.Top -= buttonBlue.Height;
buttonMagenta.Top -= buttonBlue.Height; buttonMagenta.Top -= buttonBlue.Height;
buttonRed.Top -= buttonBlue.Height; buttonRed.Top -= buttonBlue.Height;
@ -27,6 +27,15 @@ namespace Nikse.SubtitleEdit.Forms
buttonYellow.Top -= buttonBlue.Height; buttonYellow.Top -= buttonBlue.Height;
Height -= buttonBlue.Height; Height -= buttonBlue.Height;
} }
buttonBlack.BackColor = System.Drawing.Color.Black;
buttonBlue.BackColor = System.Drawing.Color.DarkBlue;
buttonCyan.BackColor = System.Drawing.Color.Cyan;
buttonGreen.BackColor = System.Drawing.Color.DarkGreen;
buttonMagenta.BackColor = System.Drawing.Color.DarkMagenta;
buttonRed.BackColor = System.Drawing.Color.Red;
buttonWhite.BackColor = System.Drawing.Color.White;
buttonYellow.BackColor = System.Drawing.Color.Yellow;
} }
private void EbuColorPicker_KeyDown(object sender, KeyEventArgs e) private void EbuColorPicker_KeyDown(object sender, KeyEventArgs e)