utils

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

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

del usuario

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewContentGrid

func NewContentGrid() (*fyne.Container, *fyne.Container)

Returns a new Grid (this grid is an empty frame)

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 SetNewContent added in v1.1.5

func SetNewContent(contenedor *fyne.Container)

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

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