Skip to main content

Module themes

Module themes 

Source
Expand description

Named themes: the two built in, and every *.toml in the config directory’s themes/, each a set of theme.colors slots named by its file. theme.dark and theme.light pick one per mode; theme.colors lies over whichever is in use.

Structs§

Broken
A theme file left out for a mistake.
Library
Every theme there is: the built-ins, and what themes/ holds.
ThemeFile
A theme file that parsed.

Enums§

Source
Where a theme comes from.

Constants§

DAY_MARKET
The built-in light theme: Tokyo Night’s day variant.
FOLDER
The config directory’s folder of theme files.
NIGHT_MARKET
The built-in dark theme: Tokyo Night with one cyan accent.

Functions§

built_in_name
The built-in theme for a mode, by name.
command
What datui theme ACTION prints, and its exit code. config is the configuration in effect, or why it could not be read.
parse
A theme file’s text, checked: its keys are slots, extends or description, and every slot is a color theme.colors would take.
show
A theme file with every slot, each under what it colors: a starting point to save into themes/ and edit.
slots
A slot table for colors.