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 ¶
Click to show internal directories.
Click to hide internal directories.