globals

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIZE_DEFAULT = "Default"
	SIZE_SMALL   = "Small"
	SIZE_LARGE   = "Large"
)

Grid cards sizes.

View Source
const (
	FILL_ZOOM     = "Zoom Fill"
	FILL_SCALE    = "Scale"
	FILL_CENTER   = "Center"
	FILL_ORIGINAL = "Original"
	FILL_TILE     = "Tile"
)

wallpaper fill strategies.

Variables

View Source
var (
	MyApp        = app.NewWithID("walldo")
	Window       = MyApp.NewWindow("Walldo in go")
	WindowHeight = MyApp.Preferences().FloatWithFallback("WindowHeight", 600)
	WindowWidth  = MyApp.Preferences().FloatWithFallback("WindowWidth", 1020)
)

App initializers.

View Source
var (
	ConfigFile     string
	ConfigPath     string
	ThumbnailsPath string
)

Config files.

View Source
var (
	FillStrategy = MyApp.Preferences().StringWithFallback("FillStrategy", FILL_ZOOM)
)
View Source
var (
	GridSize = MyApp.Preferences().StringWithFallback("GridSize", SIZE_DEFAULT)
)
View Source
var Sizes map[string]Size = map[string]Size{
	SIZE_LARGE:   {Width: 195, Height: 175},
	SIZE_DEFAULT: {Width: 115, Height: 105},
	SIZE_SMALL:   {Width: 90, Height: 80},
}

Functions

func SetupEnvVariables added in v1.3.1

func SetupEnvVariables()

Thise are the used config files ~/.config/walldo/config.json (unix) ~/AppData/Local/walldo/config.json (windows)

Types

type Size added in v1.3.4

type Size struct {
	Width  float32
	Height float32
}

Jump to

Keyboard shortcuts

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