icons
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| KindIconCache cutepandas.utils.icons Per-owner cache of `Kind` icons for models / delegates that paint them often. |
🛈 DocStrings¶
Icons for dtypes and indexes (any backend).
See https://pictogrammers.com/library/mdi/ for the names.
KindIconCache
¶
Per-owner cache of Kind icons for models / delegates that paint them often.
Without an explicit colour the icons follow the application palette: the cache
is dropped when the palette changes (QPalette.cacheKey()). Explicit colours are
cached per (kind, colour); clear() drops everything (e.g. on a restyle).
Source code in src/cutepandas/utils/icons.py
default_icon_color
¶
Muted foreground hex colour for icons, from palette or the app palette.
None without a QGuiApplication (the icon provider's default colour then).
Source code in src/cutepandas/utils/icons.py
icon_for_kind
¶
icon_for_kind(kind: Kind, color: str | None = None) -> QIcon
Icon for a Kind, tinted color (default: default_icon_color()).
Not cached here: views asking per paint use a KindIconCache.
Source code in src/cutepandas/utils/icons.py
kind_of_dtype
¶
kind_of_dtype(dtype: Any) -> Kind
Kind of a pandas / NumPy, pyarrow or polars dtype.