Fix color selector hue bar moving improperly from picker.
This commit is contained in:
parent
8b68c749d3
commit
d46c3bc7ec
Binary file not shown.
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user