You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. however when I switch to dark mode, the styled rows does not update (of course they wouldnt), but the rest of the grid does:
I thought I might be able to use CSS variables to get around this, but trying to use, e.g. var(--ipydatagrid-layout-color2) results in a black background:
which suggests the variables aren't available to the canvas (or whatever is coloring the rows).
Describe the solution you'd like
I'd like to be able to theme my grid with variables so it works in both light and dark mode.
Describe alternatives you've considered
The python widget does not have the attribute _isLightTheme that the javascript side has, otherwise I might be able to manually set different TextRenderers based on whether or not the widget was experiencing dark mode.
Additional context
n/a
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
There's currently no built-in way to color rows in a
row % 2
fashion (see #379).Rolling our own is relatively simple:
.. however when I switch to dark mode, the styled rows does not update (of course they wouldnt), but the rest of the grid does:
I thought I might be able to use CSS variables to get around this, but trying to use, e.g.
var(--ipydatagrid-layout-color2)
results in a black background:which suggests the variables aren't available to the canvas (or whatever is coloring the rows).
Describe the solution you'd like
I'd like to be able to theme my grid with variables so it works in both light and dark mode.
Describe alternatives you've considered
The python widget does not have the attribute
_isLightTheme
that the javascript side has, otherwise I might be able to manually set different TextRenderers based on whether or not the widget was experiencing dark mode.Additional context
n/a
The text was updated successfully, but these errors were encountered: