private void UpdateToolStrip(ToolStrip toolStrip, Color newBackColor)
{
if (toolStrip == null) return;
toolStrip.BackColor = newBackColor;
foreach (ToolStripItem control in toolStrip.Items)
{
control.BackColor = newBackColor;
if (control is MaterialToolStripMenuItem && (control as MaterialToolStripMenuItem).HasDropDown)
{
//recursive call
UpdateToolStrip((control as MaterialToolStripMenuItem).DropDown, newBackColor);
}
}
}