-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Show dark or light screenshot for address bar search #59
Comments
Hi...i would like to take a shot on this pls. |
Okay, feel free to take this. 😃 |
hey @rugk would you please tell me how I actually use this search bar feature to reproduce the issue ? Also, where is this screenshot shown to the user ?because I see there's a separate folder of screenshots in the repo. I don't understand where I actually do the work as i can't find the relevant files or place to work on. |
Sure, no problem. Thus, you need use the master branch. Then you'll find that feature in the settings of the add-on. I'd suggest you to play around with it a little and see what it does. 😃 |
The places to work on are the options (it's a dir) and there you can also find the image in the @silvererudite If you need any pointers/help or have questions, feel free to ask. |
@rugk sorry haven't been much active. I do understand now what needs to be done but need a slight clarification. Do we change the screenshots based on users' browser preference or his OS preference? The CSS property preferes-color-scheme only detects the users' preference on OS not the theme set on browser. |
Yes, for technical reasons we can only detect/change this based on the OS preference, because of the reasons you've mentioned. I guess, there is just no other way, so just do it in this way. 😃 |
@rugk actually there is a way to detect theme on Firefox browser. Check out this the Firefox's theme Api for addons would you like me to try sth with this( if you think it's suitable for your project)? I can ofcourse do it for the OS preference. I'm saying so because to me OS preference seems not so integral when it comes to browser addons. But that's just my opinion, would love to have your perspective on this. |
I think this does not work for the built-in themes and you also hardly can detect whether the theme you get back there is actually dark or light. I've asked this in the forums before. |
oh...didn't thjnk of that issue. Thanks for pointing that out. |
BTW, also feel free to make a better screenshot of the current English thing there. 😄 E.g. the back button at the left is cropped, this is not so nice. Just make sure to use the same search, because the alt text is used for the image. 😄 |
Fixed by #65 |
In the settings:
![image](https://user-images.githubusercontent.com/11966684/64923965-b2dcbb80-d7df-11e9-8bf6-95460c124fd6.png)
Currently we show a screenshot for the dark version.
IMHO, the screenshot shown should be dependent on whether the user (likely) uses a dark Firefox/OS theme or a light one.
Tip: use https://developer.mozilla.org/docs/Web/CSS/@media/prefers-color-scheme and https://developer.mozilla.org/docs/Web/API/Window/matchMedia
The text was updated successfully, but these errors were encountered: