globals

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 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: 145, Height: 125},
	SIZE_DEFAULT: {Width: 115, Height: 105},
	SIZE_SMALL:   {Width: 90, Height: 80},
}

Functions

func InitApp added in v1.4.1

func InitApp()

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

func RestoreWindowSize added in v1.4.1

func RestoreWindowSize()

Restores the window size of the last time the app has oppened.

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