config

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFyneSettings

func GetFyneSettings() fyne.Settings

func GetPaths

func GetPaths() []string

func GetWallpFillMode

func GetWallpFillMode() modes.FillStyle

func GetWindow

func GetWindow() fyne.Window

func SetFyneSettings

func SetFyneSettings(s fyne.Settings)

func SetGridSize

func SetGridSize(s GridSize)

func SetWallpFillMode

func SetWallpFillMode(m modes.FillStyle)

func SetWindow

func SetWindow(w fyne.Window)

func WriteConfig

func WriteConfig()

Types

type Configuration

type Configuration struct {
	WallpfillMode modes.FillStyle `json:"FillStyle"`
	GridSize      GridSize        `json:"GridSize"`
	Paths         []string        `json:"Paths"`
	// contains filtered or unexported fields
}

type GridSize

type GridSize int
const (
	NORMAL GridSize = iota
	SMALL
	LARGE
)

func GetGridSize

func GetGridSize() GridSize

type Image

type Image struct {
	Thumbnail string
	Path      string
}

func ListImages

func ListImages() []Image

func (Image) GenerateThumbnail

func (i Image) GenerateThumbnail() error

Lazyly generate thumbnails If a thumbnail already exists just do nothing.

Jump to

Keyboard shortcuts

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