diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-12-04 14:25:50 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-12-04 14:28:22 +0100 |
commit | 8cd06741bb56cdca49f5cdc0542da97681154315 (patch) | |
tree | e0f9f0fa7907648f2b7014e93d3ca235ece6d505 /doc | |
parent | 2a10461ca473838cbc3bf6b92501324470d4f521 (diff) | |
download | qutebrowser-8cd06741bb56cdca49f5cdc0542da97681154315.tar.gz qutebrowser-8cd06741bb56cdca49f5cdc0542da97681154315.zip |
Expose QtWebEngine 6.6 dark mode image classifier policy
Implemented as a separate setting in Chromium, but exposed to qutebrowser users
as a value for `policy.images`, as it's a simple toggle that does not have any
effect when `policy.images` is not set to `smart` anyways.
To support this, the _Settings.mapping value now supports None values,
which leads to _Setting.chromium_tuple to return None, which means that
no switch is added in this case.
See #7646
Diffstat (limited to 'doc')
-rw-r--r-- | doc/changelog.asciidoc | 7 | ||||
-rw-r--r-- | doc/help/settings.asciidoc | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 3bc1dbd7d..f18a28814 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -25,6 +25,13 @@ Removed - The darkmode settings `grayscale.all`, `grayscale.images` and `increase_text_contrast` got removed, following removals in Chromium. +Added +~~~~~ + +- New `smart-simple` value for `colors.webpage.darkmode.policy.images`, which on + QtWebEngine 6.6+ uses a simpler classification algorithm to decide whether to + invert images. + Changed ~~~~~~~ diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 8a39b5e68..95f844b15 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1695,7 +1695,6 @@ Default: +pass:[false]+ [[colors.webpage.darkmode.policy.images]] === colors.webpage.darkmode.policy.images Which images to apply dark mode to. -With QtWebEngine 5.15.0, this setting can cause frequent renderer process crashes due to a https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/304211[bug in Qt]. This setting requires a restart. @@ -1708,6 +1707,7 @@ Valid values: * +always+: Apply dark mode filter to all images. * +never+: Never apply dark mode filter to any images. * +smart+: Apply dark mode based on image content. Not available with Qt 5.15.0. + * +smart-simple+: On QtWebEngine 6.6, use a simpler algorithm for smart mode (based on numbers of colors and transparency), rather than an ML-based model. Same as 'smart' on older QtWebEnigne versions. Default: +pass:[smart]+ |