theme

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT, Unlicense Imports: 1 Imported by: 2

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

func IsDarkMode() (bool, error)

IsDarkMode returns "true" if the end-user prefers dark-mode theme.

func IsReducedMotion

func IsReducedMotion() (bool, error)

IsReducedMotion returns "true" if the end-user prefers reduced-motion/disabled-animations.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL