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

Allow website to override color of ONLY THUMB or ONLY TRACK #220

Open
e-t-l opened this issue Aug 24, 2023 · 2 comments
Open

Allow website to override color of ONLY THUMB or ONLY TRACK #220

e-t-l opened this issue Aug 24, 2023 · 2 comments
Labels
chromium-desktop This issue or pull request applies to Chromium-based browsers enhancement New feature or request P4 This issue is considered low priority

Comments

@e-t-l
Copy link

e-t-l commented Aug 24, 2023

In the settings for "Allow website to override," could the only color radio option be split into 3 options: thumb and track colors, only thumb color, and only track color? (Maybe also a checkbox for do not override alpha values?)

Use case: I like the clean look of having a completely transparent scrollbar track, and a semi-transparent thumb. I would be fine with a website overriding the color of the thumb to better match the site theme, but I would always want the track to be 100% transparent.

(An additional enhancement, though I don't know if this would be harder to implement, would be to allow/disallow the website overriding the color hue values but not transparency/alpha values. Example use case: My default thumb is gray and 50% transparent, aka HSVA(0,0,50,50). A purple-themed website might override the thumb to be purple, but its alpha value would remain, aka HSVA(100,0,100,50). Incidentally, the retain-alpha-values enhancement by itself would address my personal use case of always wanting a transparent track. To serve the most users, though, both of these suggestions should be considered.)

@WesleyBranton WesleyBranton added enhancement New feature or request P4 This issue is considered low priority chromium-desktop This issue or pull request applies to Chromium-based browsers labels Aug 24, 2023
@WesleyBranton WesleyBranton changed the title [Feature Request] Allow website to override color of ONLY THUMB or ONLY TRACK Allow website to override color of ONLY THUMB or ONLY TRACK Aug 24, 2023
@WesleyBranton
Copy link
Owner

This feature would only be possible for Chrome browsers, since Firefox sets the two colours in a single value. Allowing a website to only override the alpha value would not be possible in any browser.

I do like the idea of having more control over what websites can override though.

@e-t-l
Copy link
Author

e-t-l commented Aug 24, 2023

Ah, I am on Firefox. What does setting both colors in one value look like? Is it possible to read the value that the website wants to set, extract the relevant color data (e.g. the thumb color value), then use it to write a new combined-value that's passed to the browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chromium-desktop This issue or pull request applies to Chromium-based browsers enhancement New feature or request P4 This issue is considered low priority
Projects
None yet
Development

No branches or pull requests

2 participants