settings

package
v0.0.0-...-f0707d8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OSDefault = iota
	LightTheme
	DarkTheme
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	PomodoroLength     time.Duration `json:"pomodoroLength"`
	SmallBreakLength   time.Duration `json:"smallBreakLength"`
	BigBreakLength     time.Duration `json:"bigBreakLength"`
	MinimizeAfterStart bool          `json:"minimizeAfterStart"`
	Theme              int8          `json:"theme"`
}

func GetInstance

func GetInstance() *Settings

func (*Settings) Save

func (s *Settings) Save()

Jump to

Keyboard shortcuts

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