--- #<buffer eww.el.gz>
+++ #<buffer eww.el.new>
@@ -855,6 +855,7 @@
["List cookies" url-cookie-list t]
["Toggle fonts" eww-toggle-fonts t]
["Toggle colors" eww-toggle-colors t]
+ ["Toggle background colors" eww-toggle-bg-colors t]
["Character Encoding" eww-set-character-encoding]
["Toggle Paragraph Direction" eww-toggle-paragraph-direction]))
map))
@@ -1699,6 +1700,15 @@
(message "Proportional fonts are now %s"
(if shr-use-fonts "on" "off")))
+(defun eww-toggle-bg-colors ()
+ "Toggle whether to use HTML-specified background colors or not."
+ (interactive)
+ (message "Colors are now %s"
+ (if (setq shr-use-bg-colors (not shr-use-bg-colors))
+ "on"
+ "off"))
+ (eww-reload))
+
(defun eww-toggle-colors ()
"Toggle whether to use HTML-specified colors or not."
(interactive)