systheme

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 4 Imported by: 1

README

systheme

Get system theme

License

Licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = fmt.Errorf("unsupported platform")

Functions

This section is empty.

Types

type Theme

type Theme int

Theme represents the theme of the system.

const (
	Unknown Theme = iota
	Light
	Dark
)

func GetAppTheme

func GetAppTheme() (Theme, error)

GetAppTheme returns the current theme of the system.

func GetSystemTheme

func GetSystemTheme() (Theme, error)

GetSystemTheme returns the current theme of the system.

func GetTheme

func GetTheme() (Theme, error)

GetTheme returns the current theme of the system.

func (Theme) String

func (i Theme) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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