1
0
mirror of synced 2024-09-25 03:58:22 +02:00

Fix color selector hue bar moving improperly from picker.

This commit is contained in:
KillzXGaming 2019-08-19 19:34:51 -04:00
parent 8b68c749d3
commit d46c3bc7ec
2 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -257,19 +257,25 @@ namespace FirstPlugin
}
}
private bool _UpdateSelector = true;
private void colorSelector1_ColorChanged(object sender, EventArgs e)
{
if (!IsColorsLoaded)
return;
_UpdateSelector = false;
hexTB.Text = Utils.ColorToHex(colorSelector1.Color);
pictureBox4.BackColor = colorSelector1.Color;
if (ActivePanel != null)
ActivePanel.SetColor(colorSelector1.Color);
_UpdateSelector = true;
}
private void UpdateColorSelector(Color color) {
if (_UpdateSelector)
colorSelector1.Color = color;
}
}