Skip to content

tux.utils.constants

Functions

_load_colors() -> dict[str, int]

Load embed colors from TOML file.

Source code in tux/utils/constants.py
Python
def _load_colors() -> dict[str, int]:
    """Load embed colors from TOML file."""
    colors_file = _ASSETS_DATA_PATH / "embed_colors.toml"
    with colors_file.open("rb") as f:
        data = tomllib.load(f)
    return data["colors"]

_load_icons() -> dict[str, str]

Load embed icons from TOML file.

Source code in tux/utils/constants.py
Python
def _load_icons() -> dict[str, str]:
    """Load embed icons from TOML file."""
    icons_file = _ASSETS_DATA_PATH / "embed_icons.toml"
    with icons_file.open("rb") as f:
        data = tomllib.load(f)
    return data["icons"]