settings

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WindowName = "Settings"
)

Variables

View Source
var (
	Prefs *sync.Map
)
View Source
var (
	RunnerShortcut = &shortcut{
		Command: &Command{
			ID:   commandRunnerName,
			Name: commandRunnerName,
			icon: func() []byte { return theme.RadioButtonCheckedIcon().Content() },
			run:  func() { global.ShowRunner() },
		},
		KeyNames: []fyne.KeyName{desktop.KeyAltLeft, fyne.KeySpace},
	}
)

Functions

func Load

func Load() error

func RegisterDefined

func RegisterDefined()

func RegisterShortcut added in v0.9.0

func RegisterShortcut(s *shortcut)

func Save

func Save() error

func Show

func Show()

func ToHotkey

func ToHotkey(keyNames []fyne.KeyName) (m []hotkey.Modifier, k hotkey.Key, ok bool)

Types

type Command

type Command struct {
	ID   string
	Name string
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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