From 631e6ce7f3748c38bca919aa9f441ded15bc8098 Mon Sep 17 00:00:00 2001 From: Maxim Raznatovski Date: Thu, 30 Jan 2025 12:46:21 +0100 Subject: [PATCH] Feat: add support for monochrome provider icons (#1911) --- music_assistant/mass.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/music_assistant/mass.py b/music_assistant/mass.py index 9b081c0e..36697714 100644 --- a/music_assistant/mass.py +++ b/music_assistant/mass.py @@ -695,6 +695,11 @@ class MusicAssistant: icon_path = os.path.join(provider_path, "icon_dark.svg") if await isfile(icon_path): provider_manifest.icon_svg_dark = await get_icon_string(icon_path) + # check for icon_monochrome file + if not provider_manifest.icon_svg_monochrome: + icon_path = os.path.join(provider_path, "icon_monochrome.svg") + if await isfile(icon_path): + provider_manifest.icon_svg_monochrome = await get_icon_string(icon_path) self._provider_manifests[provider_manifest.domain] = provider_manifest LOGGER.debug("Loaded manifest for provider %s", provider_manifest.name) except Exception as exc: -- 2.34.1