int color = !tp->isauto ? -1 : auto_colors[tp->ref];
GWindowToggle *toggle = new GWindowToggle(mwindow, this, x, y, label, color, tp);
add_tool(toggles[i] = toggle);
int color = !tp->isauto ? -1 : auto_colors[tp->ref];
GWindowToggle *toggle = new GWindowToggle(mwindow, this, x, y, label, color, tp);
add_tool(toggles[i] = toggle);