visualdynamics.theme¶
theme
¶
Light/dark theme colors shared by the 3D view, 2D plots, and the GUI.
Qt's native style already follows the OS appearance for widgets; the things visualdynamics draws itself (the VTK scene and pyqtgraph plots) have to be told, which is what these colors are for.
Functions:
| Name | Description |
|---|---|
theme |
Resolve a theme name (or a colors dict) to a colors dict. |
colormap |
|
system_scheme |
'dark' or 'light' from the OS appearance, via Qt. |
Functions:¶
theme
¶
Resolve a theme name (or a colors dict) to a colors dict.
Source code in src/visualdynamics/theme.py
colormap
¶
values in 0..1 as an (N, 3) array of RGB, on VIRIDIS.
Source code in src/visualdynamics/theme.py
system_scheme
¶
'dark' or 'light' from the OS appearance, via Qt.
Falls back to the default theme when Qt or an application instance is unavailable (e.g. plain scripting use).