Dark mode #5733
-
I've seen several opened/closed issues regarding, at least marginally, dark mode, but I still have to understand if it is something that can be set by me, or that only works for sites that have provided CSS sheets that define a darkmode. I've also seen that there are several options like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
There are generally four ways to get dark websites:
|
Beta Was this translation helpful? Give feedback.
-
My conclusion is that the 3rd solution, settting |
Beta Was this translation helpful? Give feedback.
-
it ain't working. the system mode of website is working well in normal browsers. i have removed the config.py before doing all these restarts etc, and here's the autoconfig.yaml: $ ls "$APPDATA"/qutebrowser/config/
autoconfig.yml bookmarks greasemonkey quickmarks
$ bat -pP "$APPDATA"/qutebrowser/config/autoconfig.yml
# If a config.py file exists, this file is ignored unless it's explicitly loaded
# via config.load_autoconfig(). For more information, see:
# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml
# DO NOT edit this file by hand, qutebrowser will overwrite it.
# Instead, create a config.py - see :help for details.
config_version: 2
settings:
auto_save.session:
global: true
qt.highdpi:
global: true
also, there's no |
Beta Was this translation helpful? Give feedback.
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