Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fallback = registry["swapoff"]
Fallback style. Reassign to change the default fallback style.
Functions ¶
func GetForMode ¶
GetForMode returns the named style if it already matches mode, otherwise its registered counterpart if one exists and matches mode. If neither matches, the originally-requested style is returned (or Fallback if the name is unknown), so callers always get something usable.
func RegisterPair ¶
RegisterPair links two styles as light/dark counterparts of each other.
Both styles are also registered if they are not already present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.