Relative Content

Tag Archive for pythondarkmodepy-shiny

How to dynamically adjust colors depending on the dark mode?

The default header color for DataFrames (render.DataGrid(), render.DataTable()) is a very light grey (probably gainsboro). If I switch an app to dark mode using and DataFrame the header becomes unreadable. Is there any way to make a dict to tell shiny what color to use for the color gainsboro or for a specific object, if I switch to dark mode?

How to dynamically adjust colors depending on the dark mode?

The default header color for DataFrames (render.DataGrid(), render.DataTable()) is a very light grey (probably gainsboro). If I switch an app to dark mode using and DataFrame the header becomes unreadable. Is there any way to make a dict to tell shiny what color to use for the color gainsboro or for a specific object, if I switch to dark mode?