Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add support for monochrome provider icons #1911

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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