Update code for icon sets

This commit is contained in:
Sasha Koshka 2024-07-25 14:15:32 -04:00
parent c55b28bfb8
commit 7ba19e7110
2 changed files with 3 additions and 3 deletions

View File

@ -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)
} }

View File

@ -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),