Documentation
¶
Index ¶
Constants ¶
View Source
const ( WallPapersFolder = "/Library/Wallpaper/" DefaultWallpapersPlistGlob = "DefaultWallpapers~*.plist" CollectionsFolder = "/Library/Wallpaper/Collections/" CollectionsPlistGlob = "Collections~*.plist" CapPlayWallpapers = "/System/Library/PrivateFrameworks/CarPlayUIServices.framework/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assets ¶
type Assets struct {
LockAndHome LockAndHome `plist:"lockAndHome"`
}
type Collection ¶
type Collection struct {
Meta WallpaperCollectionPlist
Wallpapers []Wallpaper
}
type DefaultAsset ¶
type DefaultWallpaper ¶
type DefaultWallpaper struct {
Default WallpaperID `plist:"default,omitempty"`
}
type LockAndHome ¶
type LockAndHome struct {
Default DefaultAsset `plist:"default"`
}
type ProminentColors ¶
type Wallpaper ¶
type Wallpaper struct {
Path string
Meta WallpaperPlist
}
type WallpaperCollections ¶
type WallpaperCollections struct {
Order []string `plist:"order,omitempty"`
}
type WallpaperID ¶
type WallpaperPlist ¶
type WallpaperPlist struct {
AppearanceAware bool `plist:"appearanceAware,omitempty"`
Assets map[string]any `plist:"assets,omitempty"`
ContentVersion float64 `plist:"contentVersion,omitempty"`
Family string `plist:"family,omitempty"`
ID any `plist:"identifier,omitempty"`
LogicalScreenClass string `plist:"logicalScreenClass,omitempty"`
Name string `plist:"name,omitempty"`
PreferredProminentColor ProminentColors `plist:"preferredProminentColor,omitempty"`
Version any `plist:"version,omitempty"`
}
type Wallpapers ¶
type Wallpapers struct {
DefaultWallpaper
CollectionsOrder WallpaperCollections
Collections []Collection
CarPlays []string
}
func ParseFolder ¶
func ParseFolder(mountPoint string) (*Wallpapers, error)
Click to show internal directories.
Click to hide internal directories.