Update code for icon sets
This commit is contained in:
parent
c55b28bfb8
commit
7ba19e7110
@ -417,7 +417,7 @@ type iconTheme struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new fallback icon theme.
|
// New creates a new fallback icon theme.
|
||||||
func New () tomo.Icons {
|
func New () tomo.IconSet {
|
||||||
return new(iconTheme)
|
return new(iconTheme)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@ import "git.tebibyte.media/tomo/tomo/canvas"
|
|||||||
|
|
||||||
type iconTheme struct {
|
type iconTheme struct {
|
||||||
xdg xdgIconTheme.Theme
|
xdg xdgIconTheme.Theme
|
||||||
fallback tomo.Icons
|
fallback tomo.IconSet
|
||||||
texturesSmall map[tomo.Icon] canvas.Texture
|
texturesSmall map[tomo.Icon] canvas.Texture
|
||||||
texturesMedium map[tomo.Icon] canvas.Texture
|
texturesMedium map[tomo.Icon] canvas.Texture
|
||||||
texturesLarge map[tomo.Icon] canvas.Texture
|
texturesLarge map[tomo.Icon] canvas.Texture
|
||||||
}
|
}
|
||||||
|
|
||||||
func FindThemeWarn (name string, fallback tomo.Icons, path ...string) (tomo.Icons, error) {
|
func FindThemeWarn (name string, fallback tomo.IconSet, path ...string) (tomo.IconSet, error) {
|
||||||
this := &iconTheme {
|
this := &iconTheme {
|
||||||
fallback: fallback,
|
fallback: fallback,
|
||||||
texturesLarge: make(map[tomo.Icon] canvas.Texture),
|
texturesLarge: make(map[tomo.Icon] canvas.Texture),
|
||||||
|
Loading…
Reference in New Issue
Block a user