otter-browser icon indicating copy to clipboard operation
otter-browser copied to clipboard

Dark Mode

Open ShalokShalom opened this issue 6 years ago • 13 comments

An absolute astonishing add on for an absolute astonishing browser :D https://chrome.google.com/webstore/detail/dark-mode/dmghijelimhndkbmpgbldicpogfkceaj?hl=en

ShalokShalom avatar Jan 01 '18 18:01 ShalokShalom

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.

pierreporte avatar Jan 05 '18 21:01 pierreporte

Currently Otter has support for:

  • Custom colors (but CSS is often overriding it, sometimes very badly)
  • Userscripts
  • Userstyles (per-website AFAIK)

So, I think it already have everything needed.

lanodan avatar Jan 30 '18 18:01 lanodan

A dark style that was popular a decade ago is http://usercss.ru/styles/night/

Frenzie avatar Jan 30 '18 18:01 Frenzie

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.

ShalokShalom avatar Jan 30 '18 20:01 ShalokShalom

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 avatar Sep 14 '20 13:09 travankor

@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.

Emdek avatar Sep 15 '20 15:09 Emdek

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.

annulen avatar Sep 15 '20 15:09 annulen

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…

Emdek avatar Sep 15 '20 15:09 Emdek

And not intelligent, it is just a reversing of the colors.

ShalokShalom avatar Sep 16 '20 20:09 ShalokShalom

What "intelligent" one is supposed to do?

annulen avatar Sep 16 '20 20:09 annulen

Analyze the website and then decide on an individual basis, like the add-on Darkreader does.

ShalokShalom avatar Sep 17 '20 10:09 ShalokShalom

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.

annulen avatar Sep 17 '20 10:09 annulen

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.

ShalokShalom avatar Sep 17 '20 23:09 ShalokShalom