From fc41696b5e2bc4dea0f0ce0668aa33a7bbc228e6 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 28 May 2024 22:00:06 -0400 Subject: [PATCH] Wintergreen icon theme returns nil if there is no suitable icon --- internal/theme/default/icon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/theme/default/icon.go b/internal/theme/default/icon.go index b272a33..d8bf213 100644 --- a/internal/theme/default/icon.go +++ b/internal/theme/default/icon.go @@ -436,7 +436,7 @@ func (this *iconTheme) Icon (icon tomo.Icon, size tomo.IconSize) canvas.Texture if texture, ok := source[icon]; ok { return texture } - return source[tomo.IconUnknown] + return nil } func (this *iconTheme) MimeIcon (mime data.Mime, size tomo.IconSize) canvas.Texture {