Update some color picker options toupdate lightbar with preview

This commit is contained in:
Travis Nickles 2019-03-23 01:27:05 -05:00
parent 19854a00cf
commit 83628f8849

View File

@ -1379,6 +1379,7 @@ namespace DS4Windows
advColorDialog.OnUpdateColor += tempDel; advColorDialog.OnUpdateColor += tempDel;
advColorDialog.Color = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value); advColorDialog.Color = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
advColorDialog_OnUpdateColor(main, e); advColorDialog_OnUpdateColor(main, e);
advColorDialog.FullOpen = true;
if (advColorDialog.ShowDialog() == DialogResult.OK) if (advColorDialog.ShowDialog() == DialogResult.OK)
{ {
main = advColorDialog.Color; main = advColorDialog.Color;
@ -2556,7 +2557,9 @@ namespace DS4Windows
else else
advColorDialog.Color = Color.Black; advColorDialog.Color = Color.Black;
advColorDialog.FullOpen = true;
advColorDialog_OnUpdateColor(lbPercentFlashBar.ForeColor, e); advColorDialog_OnUpdateColor(lbPercentFlashBar.ForeColor, e);
advColorDialog.OnUpdateColor += advColorDialog_OnUpdateColor;
if (advColorDialog.ShowDialog() == DialogResult.OK) if (advColorDialog.ShowDialog() == DialogResult.OK)
{ {
if (advColorDialog.Color.GetBrightness() > 0) if (advColorDialog.Color.GetBrightness() > 0)