Warning Bar Color Options?

does the classpyrevit.forms.WarningBar(height=32, **kwargs) support different colors?

i started to use this as a move tool like Pick A, then Pick B, Pick New A, Pick New B, etc.
i was thinking it would change colors to do a visual que that now this other thing needs to happen.

Try this:

from pyrevit import forms, revit
from pyrevit.framework import Media

wb = forms.WarningBar(title="title")

wb.Resources["pyRevitAccentBrush"] = Media.SolidColorBrush(Media.Color.FromArgb(0xFF, 0x2C, 0x3E, 0x5))

with wb:
    revit.pick_element()
2 Likes

All I gotta say…wonderful!

1 Like