ZBrushCentral

Question: Is it possible to have a custom icon change colour similar to draw,move,rotate, scale?

I’ve been making buttons and switches with custom icons but I am running into the issue with the switches icon looking difficult to see when they are on as the switch background becomes bright.

Is there a way to have the icon change or is there some other kind of work around? The base zbrush buttons are able to do it with Draw, Move, Rotate, Scale, Perspective, Floor all have black and white versions.

This was what I thought might work, making a variable for the icon and setting the variable when pressed and unpressed, it doesn’t seem to update the icons but the note is certainly updating.

[VarDef,zscriptLocation,"ZPlugin:TestIconColour]
[ISubpalette, zscriptLocation]
[VarDef,icon,"Data/CogBlack.psd"]

[IButton, [StrMerge, zscriptLocation,":Close"],
	/*Popup*/"Close",
	/*Command*/[IClose, [Var, zscriptLocation]],
	/*Disabled*/0,/*Width */200,
	/*Hotkey*/,/*Icon*/,/*Height*/50]

[ISwitch, [StrMerge, zscriptLocation,":Invert"],
	/*InitalState*/0,
	/*Popup*/"",
	/*CommandOn*/[VarSet,icon,"Data/CogBlack.psd"]
	[Note, icon]
	,
	/*CommmandOff*/[VarSet,icon,"Data/CogWhite.psd"]
	[Note, icon],
	/*Disabled*/0,/*Width*/80,
	/*Height*/50,/*Icon*/[Var, icon]]