diff --git a/internal/icons/fallback/icon.go b/internal/icons/fallback/icon.go index 27c5104..b408527 100644 --- a/internal/icons/fallback/icon.go +++ b/internal/icons/fallback/icon.go @@ -417,7 +417,7 @@ type iconTheme struct { } // New creates a new fallback icon theme. -func New () tomo.Icons { +func New () tomo.IconSet { return new(iconTheme) } diff --git a/internal/icons/xdg/icon.go b/internal/icons/xdg/icon.go index 1a2dbbf..a546fd9 100644 --- a/internal/icons/xdg/icon.go +++ b/internal/icons/xdg/icon.go @@ -14,13 +14,13 @@ import "git.tebibyte.media/tomo/tomo/canvas" type iconTheme struct { xdg xdgIconTheme.Theme - fallback tomo.Icons + fallback tomo.IconSet texturesSmall map[tomo.Icon] canvas.Texture texturesMedium 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 { fallback: fallback, texturesLarge: make(map[tomo.Icon] canvas.Texture),