settings

package
v0.0.0-...-097b59e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LightTheme = iota
	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) IsLightTheme

func (s *Settings) IsLightTheme() bool

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