Documentation
¶
Overview ¶
Package icontheme resolves freedesktop icon theme names into rasters for programs that draw icons without widgets, such as a compositor drawing the icon a window names. Lookups follow the icon theme spec with the same theme chain, unthemed fallback and bundled icons as a Cache of package icons.
Index ¶
Constants ¶
const DefaultTheme = icons.DefaultTheme
DefaultTheme is the theme a Theme starts on when none is named: GTK's default, Adwaita, inheriting hicolor.
Variables ¶
var ErrNotFound = icons.ErrNotFound
ErrNotFound reports that no theme of the chain, no unthemed directory and no bundled icon holds the requested name.
Functions ¶
This section is empty.
Types ¶
type Theme ¶
type Theme struct {
// contains filtered or unexported fields
}
Theme resolves and caches icons of one theme. It is safe for concurrent use.
func New ¶
New returns a theme called name, DefaultTheme when name is empty, searching the base directories searchPaths in priority order, or the XDG data directories when searchPaths is nil.