Open ShalokShalom opened 6 years ago
I think this could be achieved using already supported userscripts. A dark mode is indeed useful so it is very likely that a script is already available somewhere.
Currently Otter has support for:
So, I think it already have everything needed.
A dark style that was popular a decade ago is http://usercss.ru/styles/night/
I tried several scripts and add ons and currently I am quite happy with the mentioned dark mode. What we can work on is a white list for pages who req. special treatment.
Webengine in QT5.14+ has a built in dark mode. All Otterbrowser needs is a GUI option to toggle this.
More info: https://github.com/qutebrowser/qutebrowser/issues/5394
@travankor, interesting, but so far it's more like a hack, not a proper option, just a global toggle, and requires restart too… I'll think about that, presence of similar option for QtWebKit would really help to decide what to about it. BTW, I I understand correctly you can enable it by passing command line arguments too.
WebKit supports dark mode for a while: https://webkit.org/blog/8840/dark-mode-support-in-webkit/ However adding it would inevitably interfere with support of system palette / widget style.
So the good news is that WK support is superior (can be simply toggled per page, even using user stylesheets), but the bad news is that it is not available in 5.212…
And not intelligent, it is just a reversing of the colors.
What "intelligent" one is supposed to do?
Analyze the website and then decide on an individual basis, like the add-on Darkreader does.
Such behavior may be acceptable for plugin but not for generic web browser. It can alter page in a ways which are not intended by page author resulting in ugly or unreadable content if some heuristic goes wrong. Imagine consequences if you are browsing site of the bank and miss important conditions because of bad text color in fine prints.
It's actually exactly the other way around. I switched to Darkreader since this seems to happen regularly with the generic methods, and not having Darkreader available - after one year of constant use - renders a Webbrowser unfeasible to me. It can change so much, not having to deal with the issue of badly inverted webpages anymore.
An absolute astonishing add on for an absolute astonishing browser :D https://chrome.google.com/webstore/detail/dark-mode/dmghijelimhndkbmpgbldicpogfkceaj?hl=en