ubports / morph-browser

Moved to https://gitlab.com/ubports/core/morph-browser
https://gitlab.com/ubports/core/morph-browser
GNU General Public License v3.0
45 stars 35 forks source link

Dark net: implement a night mode that shows content on a dark background #175

Open hummlbach opened 5 years ago

hummlbach commented 5 years ago

Can we somehow display the content in a dark manner? Similar as its done in the document viewer. Should this night mode automatically be switched on, when SuruDark is the used theme?

UniversalSuperBox commented 5 years ago

There are various Chromium addons to do this, but they can break the display of some pages. Then you need to keep a database of pages that are broken to not apply the filter and so on...

Probably better to rally around webextension installation support than that.

mateosalta commented 4 years ago

this is now easily possible with qtwebengine 5.14 that landed in ota 13, with QTWEBENGINE_CHROMIUM_FLAGS --blink-settings=darkMode=4,darkModeImagePolicy=2

perhaps we could set a variable, and put the setting in somewhere :)

options for this setting: https://paste.the-compiler.org/view/d2f97ea9

but for now a test with it turned on: com.ubports.morph.browser_0.1_arm64.zip