v0.24.0

Prerelease

Page darkening

  • Page darkening now draws each colour of a page by the role it plays: background, text, border, SVG or selection. Before, it inverted the lightness of every colour, so a darkened page looked inverted rather than drawn dark.
  • With a dark Browser theme, a darkened page lands on the theme's own background and foreground, so it matches the browser's chrome. Before, white always became #121212, whatever the theme.
  • With a light Browser theme, a darkened page lands on #181a1b for its background and #e8e6e3 for its text.
  • Text on a darkened page is raised to a contrast of at least 4.5:1 against what is behind it.
  • A theme change reaches an open darkened page without a reload.
  • A Private window's pages take the theme its chrome is drawn in. An Auxiliary window takes its opener's.
  • The cover shown over a darkened page now uses the same background mapping as the page, so the two agree.
  • Omaweb turns this on by passing --dark-mode-settings=InversionAlgorithm=4 to the engine. If you pass your own --dark-mode-settings, Omaweb keeps your other values but replaces any InversionAlgorithm you named, so the cover and the page always use the same algorithm.
  • Page darkening is still off by default. A page whose own background is already dark is still left as written, and you can still turn darkening off for one site from Site information.
  • Omaweb now requires omaweb-qtwebengine 6.140.0-3, the first engine build that can draw pages this way. pacman installs it with the upgrade. On an engine without it, Omaweb darkens pages as before.

Full changelog: https://github.com/villekivela/omaweb/compare/v0.23.0...v0.24.0

This release on GitHub