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

Include new high-resolution icons #405

Open
gudvinr opened this issue Jul 23, 2024 · 0 comments
Open

Include new high-resolution icons #405

gudvinr opened this issue Jul 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gudvinr
Copy link

gudvinr commented Jul 23, 2024

Is your feature request related to a problem? Please describe.

Currently included icon is low-res and ugly. It doesn't scale and doesn't work well in current predominantly monochrome trays.

Describe the solution you'd like

Jellyfin has UX repo with icons.

You can use SVG icon for tray:

As fallback, any png icon can be included, e.g. modern-install.png.

SVG can be enabled with python-cairosvg:

image = io.BytesIO(svg2png(url=get_resource("icon-transparent-white.svg"), output_height=40, output_width=40))
icon.icon = Image.open(image)

Something like darkdetect or self-made trickery can be used to determine value of negate_colors argument of svg2png and switch white icon depending on user theme.

@gudvinr gudvinr added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant