Skip to content

Commit

Permalink
Feat: add support for monochrome provider icons (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmaxim345 authored Jan 30, 2025
1 parent cd0833d commit 631e6ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions music_assistant/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ async def load_provider_manifest(provider_domain: str, provider_path: str) -> No
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:
Expand Down

0 comments on commit 631e6ce

Please sign in to comment.