Documentation ¶
Overview ¶
Package theme provides functions to retrieve user preferences related to theme and accessibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotAvailableAPI indicates that the current device doesn't support such function. ErrNotAvailableAPI = errors.New("pref: not available api") )
Functions ¶
func IsDarkMode ¶
IsDarkMode returns "true" if the end-user prefers dark-mode theme.
func IsReducedMotion ¶
IsReducedMotion returns "true" if the end-user prefers reduced-motion/disabled-animations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.