flag color changes in toolbars

this commit resolves RequestPolicy#429 and RequestPolicy#291

Until now, the flag didn't change its color if placed on some toolbars.
With this fix, the flag should change colors on whatever toolbar.