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

Respect iOS/macOS accent color by using a monochrome toolbar icon for… #2162

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

strafe
Copy link
Contributor

@strafe strafe commented Nov 29, 2024

… Safari

  • I agree to license my contribution under GPL-3.0 and agree to allow distribution on app stores as outlined in LICENSE-APPSTORE

To test this pull request, follow the instructions in the wiki.


This change would resolve #1324. To recap, Safari on macOS has a feature where active extensions are given the system's chosen accent colour, and inactive extensions are given a translucent appearance. Many (but not all) extensions support this, creating a consistent aesthetic.

For some reason this actually started working on earlier versions of macOS, my screenshot on the issue (#1324 (comment)) shows this, but as of Sequoia, the old behaviour returned and the extension is now red when active. The real fix for this is as mentioned in Jeff Johnson's blog is to use a monochrome (usually just all black) transparent icon for the toolbar, this behaviour is seemingly completely undocumented by Apple. iOS also supports this behaviour, but since you cannot change the accent colour, it is always blue when active.

I figured since Safari already has some manifest overrides, the easiest way would be to override the toolbar icon using that. Below is how it looks during tested on macOS and iOS:

image image image image

@ajayyy ajayyy merged commit 266508c into ajayyy:master Nov 29, 2024
2 checks passed
@ajayyy
Copy link
Owner

ajayyy commented Nov 29, 2024

nice, looks good

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.

Consider respecting the system accent colour on Safari's toolbar icon
2 participants