-
Notifications
You must be signed in to change notification settings - Fork 71
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
High contrast option changes all colors to black and white instead of simply increasing contrast #97
Comments
Weird, I just tested the following but it works fine:
The dark theme gets disabled correctly. Can you look at localStorage in the HN home page and show us what's there? |
Just reinstalled the extension and I still have a dark theme stuck independent of the option value. How do I look into its local storage? |
Ok, I found it: hnspecial-defaults: {"visual_theme":true,"dark_theme":false,"high_contrast":false,"gray_visited_links":false,"infinite_scrolling":true,"open_links_in_new_tabs":false,"highlight_links_when_returning":true,"accurate_domain_names":true,"mark_as_read":false,"sticky_header":false,"user_tooltips":false,"hide_downvote":false} hnspecial-settings: {"visual_theme":true,"dark_theme":false,"high_contrast":true,"gray_visited_links":true,"infinite_scrolling":true,"open_links_in_new_tabs":true,"highlight_links_when_returning":true,"accurate_domain_names":true,"mark_as_read":false,"sticky_header":false,"user_tooltips":true,"hide_downvote":false} hnspecial-settings-version: 11 |
I did some more playing with options and turns out its the "high contrast" option that changes everything to black and white. Previously it just increased the contrast. |
I have the same problem. I believe the problem is the combination of Dark theme OFF and High contrast ON, since it works when High contrast is OFF. |
Here's the formatted hn_theme_light_contrast.css I see in the Chrome developer tools: https://gist.github.com/bobmichael/a59737558f06de0c1bfdeb43aec91c10 |
@gabrielecirulli yep, that's what I'm referring to. |
Yeah that's the new high contrast theme. I guess we have a different question to ask then: do we 1) make high contrast a modifier to each theme, or 2) should it be its own theme? I think option 1 is what people are expecting and it makes sense to me. |
Yes, it should be (1). Because non-contrast regular theme is way too low contrast, almost unusable, I can barely read anything. But I also don't want black-and-white theme. |
This should be fairly simple to do by refactoring |
Yes, this is the color I'd like to see. By the way, I find your definition of "high contrast" a bit strange. The image above is normal contrast and default theme is very low contrast. I'm not sure what monitor setup do you have, but default colors make the text very hard to read. Please apply these guidelines: http://webaim.org/blog/wcag-2-0-and-link-colors/ |
Fair point. The default theme is kinda calibrated to my personal vision, also based on my Macbook's monitor. It probably shows very differently on other monitors. |
Repro steps:
The text was updated successfully, but these errors were encountered: