Skip to content

Dark mode #5733

Answered by The-Compiler
Aster89 asked this question in Q&A
Sep 20, 2020 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

There are generally four ways to get dark websites:

  • colors.webpage.prefers_color_scheme_dark which asks the page for a dark stylesheet, so the page will need to provide a dark CSS (requires QtWebEngine, Qt 5.14 and a restart after setting)
  • colors.webpage.darkmode.* which adds a "filter" to make all websites dark. It also requires QtWebEngine, Qt 5.14 and a restart. If changing it didn't have any effect, I'm guessing you didn't restart qutebrowser or you have an older/different backend.
  • content.user_stylesheets which can be used with e.g. solarized everything CSS to restyle websites - it generally doesn't work as well as the above, but it works with all Qt versions and can be set at runtime

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Aster89
Comment options

@The-Compiler
Comment options

@Aster89
Comment options

Answer selected by The-Compiler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@The-Compiler
Comment options

@goyalyashpal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants