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

Dark/Light theme or UI colour improvements #8

Open
tuurep opened this issue Jul 5, 2024 · 1 comment
Open

Dark/Light theme or UI colour improvements #8

tuurep opened this issue Jul 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tuurep
Copy link
Contributor

tuurep commented Jul 5, 2024

Ideas:

  1. Default light theme and using dark/light theme on system preference with https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
  2. Customizing beyond the defaults

However, CSS is already customizable through userContent.css, if you know how. Could that be enough and do we want to add any of the above?

@AsciiJakob AsciiJakob added the enhancement New feature or request label Jul 7, 2024
@AsciiJakob
Copy link
Owner

Dark/Light theme is something that might be worth considering. Custom CSS is something that I don't think is suitable for this extension, though. This is due to the fact that it's not worth complicating the settings page (and codebase) over something few people will use. And just like you said, for the few users that do want that (such as the one and only you), it is always possible to use userContent.css.

There are three problems I can think of with light/dark theme:

  1. Some people (such as myself) might have their system preference to light, but actually do prefer dark themes for many things. Of course this is kind of a non-issue since we could have a radio dial with the options: system preference, dark and light. But I still thought it was worth writing down
  2. There isn't really a good way to preview themes in the settings page. With Discord, for instance, the theme change is immediately visible, but our users would have to change the setting and then click the popup and then go to the blocked page etc. It's a bit annoying and unintuitive. One way we could resolve this would be to make a settings open its own thing outside of the Firefox extension settings page, where we would have custom CSS to make it look like the blocked page. I think it's uncommon to do this though.
  3. Most people don't care about how the blocked page looks, they just want it to not make their eyes bleed late at night or with too extreme colours.

In conclusion, and in regard to point 3, I think the best thing is to have just one theme that is the best of both worlds. One thing I am interested in, though, is doing some UI improvements, specifically related to how the colours on the blocked page can be improved.

Now that I am reflecting over this, I'm a little troubled over the fact that the ND popup is white, but the blocked page is darker and more colourful. I really like the way the popup works, but maybe that would be even better with some colours? But I also like how clean it looks when it's white. Something interesting here is that the whiteness from the popup probably doesn't blind people nearly as much at night as a full webpage would.

There are obviously some interesting ideas here, so I'm keeping the issue open

@AsciiJakob AsciiJakob changed the title Customizability of the blocked page CSS Dark/Light theme or UI colour improvements Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants