Hi,
We run into this bug when trying to set a few colors using Rhino.ApplicationSettings.AppearanceSettings class.
If we set NormalEnd to Red and then PanelBackground to Blue, then asking for NormalEnd retrieves a Blue color instead Red. Tested on 7.23.22255.7001 but I’m pretty sure this bug comes from previous versions.
Here is the code to test it:
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
AppearanceSettings.SetPaintColor(PaintColor.NormalEnd, Color.Red);
var normalEnd = AppearanceSettings.GetPaintColor(PaintColor.NormalEnd);
AppearanceSettings.SetPaintColor(PaintColor.PanelBackground, Color.Blue);
var normalEndAfter = AppearanceSettings.GetPaintColor(PaintColor.NormalEnd);
RhinoApp.WriteLine($"NormalEnd: {normalEnd}, NormalEndAfter: {normalEndAfter}");
return Result.Success;
}
It will print “NormalEnd: Color [A=255, R=255, G=0, B=0], NormalEndAfter: Color [A=255, R=0, G=0, B=255]”
Regards,