jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.17k stars 949 forks source link

Add "disabled" style class for Int and Float Progress #2550

Open sbrugman opened 5 years ago

sbrugman commented 5 years ago

The current bar_style options for the progress widgets are too limited, at least for my use. A simple extension of the bar_style would solve the issue for me. I would propose to add a bar_style disabled.

https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#IntProgress https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#FloatProgress

My current workaround is overwriting the color for the info class.

display(HTML('<style>.progress-bar-info{background-color: #ddd;}</style>'))
pbugnion commented 4 years ago

Thanks for raising this.

@zerline if you're writing a summary of what custom styling we would need, maybe this should go into it?