utils

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Paquete que se encarga de leer, administrar y actualizar las configuraciones

del usuario

TODO: refactor the logic for thumbnails and loading

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteCards added in v1.2.7

func CompleteCards(c *fyne.Container)

fills the container with the correspondent content

func DefineLayout added in v1.2.7

func DefineLayout() fyne.Layout

Fill the grid with images and refresh the container on each step

func GetConfiguredPaths added in v1.2.4

func GetConfiguredPaths() []string

Return all folders configured by the user in the configuration file

func GetCurrentWallpaper

func GetCurrentWallpaper() (string, error)

returns the current wallpaper

func SetConfig added in v1.2.4

func SetConfig(paths ...string) *os.File

Creates the config folder and the config.json if is not created yet

func SetGridSize added in v1.1.5

func SetGridSize() fyne.Size

Return a new size depending on the users config

func SetWallpaper

func SetWallpaper(imageDir string) error

func WallpaperFitMode added in v1.2.0

func WallpaperFitMode() wallpaper.Mode

Types

type Path

type Path struct {
	Paths []string
}

Jump to

Keyboard shortcuts

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