preferences

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	MenuItem() *systray.MenuItem
	GetTitle() string
	UpdateTitle()
	Prompt() error
}

type LocalFile

type LocalFile struct {
	*systray.MenuItem
	// contains filtered or unexported fields
}

func NewLocalFile

func NewLocalFile(conf *config.Config, parent *systray.MenuItem) LocalFile

func (LocalFile) Toggle

func (l LocalFile) Toggle() error

type Preferences added in v0.1.0

type Preferences struct {
	*systray.MenuItem
	URL          URL
	Token        Token
	Units        Units
	StartOnLogin *systray.MenuItem
	LocalFile    LocalFile
}

func New added in v0.1.0

func New(conf *config.Config) Preferences

type Token

type Token struct {
	*systray.MenuItem
	// contains filtered or unexported fields
}

func NewToken

func NewToken(config *config.Config, parent *systray.MenuItem) Token

func (Token) GetTitle

func (n Token) GetTitle() string

func (Token) Prompt

func (n Token) Prompt() error

func (Token) UpdateTitle

func (n Token) UpdateTitle()

type URL added in v0.1.0

type URL struct {
	*systray.MenuItem
	// contains filtered or unexported fields
}

func NewURL added in v0.1.0

func NewURL(conf *config.Config, parent *systray.MenuItem) URL

func (URL) GetTitle added in v0.1.0

func (n URL) GetTitle() string

func (URL) Prompt added in v0.1.0

func (n URL) Prompt() error

func (URL) UpdateTitle added in v0.1.0

func (n URL) UpdateTitle()

type Units

type Units struct {
	*systray.MenuItem
	// contains filtered or unexported fields
}

func NewUnits

func NewUnits(config *config.Config, parent *systray.MenuItem) Units

func (Units) GetTitle

func (n Units) GetTitle() string

func (Units) Prompt

func (n Units) Prompt() error

func (Units) UpdateTitle

func (n Units) UpdateTitle()

Jump to

Keyboard shortcuts

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