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

updateIcon: Respect system colour scheme #71

Merged
merged 1 commit into from
May 18, 2024
Merged

updateIcon: Respect system colour scheme #71

merged 1 commit into from
May 18, 2024

Conversation

tsukasa
Copy link
Contributor

@tsukasa tsukasa commented May 14, 2024

Currently, the extension toolbar icon does not respect the selected colour scheme (light/dark mode). This causes the light-mode icon to be used on a dark-mode toolbar, making it almost unreadable.

The underlying cause is the static reference to the icons within the background-script.js, which always points to the light-mode version of the icons.

This change implements a simple check that instead picks the icon set based on the system's reported dark/light mode and defaults to light mode if no determination can be made.

Currently the extension toolbar icon does not respect the selected colour scheme (light/dark mode). This causes the light-mode icon to be used on a dark mode toolbar, thus making the icon almost unreadable.

This change implements a simple check that picks the correct icon based on the system's colour scheme instead.
Copy link
Member

@fmartingr fmartingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @tsukasa ! Honestly I didn't notice that we already had the icons in there, appreciated.

@fmartingr fmartingr merged commit cff781d into go-shiori:master May 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants