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)
|
private void colorSelector1_ColorChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsColorsLoaded)
|
if (!IsColorsLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_UpdateSelector = false;
|
||||||
|
|
||||||
hexTB.Text = Utils.ColorToHex(colorSelector1.Color);
|
hexTB.Text = Utils.ColorToHex(colorSelector1.Color);
|
||||||
pictureBox4.BackColor = colorSelector1.Color;
|
pictureBox4.BackColor = colorSelector1.Color;
|
||||||
|
|
||||||
if (ActivePanel != null)
|
if (ActivePanel != null)
|
||||||
ActivePanel.SetColor(colorSelector1.Color);
|
ActivePanel.SetColor(colorSelector1.Color);
|
||||||
|
|
||||||
|
_UpdateSelector = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateColorSelector(Color color) {
|
private void UpdateColorSelector(Color color) {
|
||||||
|
if (_UpdateSelector)
|
||||||
colorSelector1.Color = color;
|
colorSelector1.Color = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user