]> code.delx.au - gnu-emacs/commitdiff
Add a frame around the placeholder image in shr
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 20 Feb 2016 07:48:40 +0000 (18:48 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 20 Feb 2016 07:48:40 +0000 (18:48 +1100)
* lisp/net/shr.el (shr-make-placeholder-image): Add a frame
around the image.

lisp/net/shr.el

index 78862b373d425914328ec18fb32e9543ff1cc9a7..6352d3841841fa96c094344029fc7355b338a16a 100644 (file)
@@ -1548,7 +1548,8 @@ The preference is a float determined from `shr-prefer-media-type'."
             height max-height))
     (setq svg (svg-create width height))
     (svg-gradient svg "background" 'linear '((0 . "#b0b0b0") (100 . "#808080")))
-    (svg-rectangle svg 0 0 width height :gradient "background")
+    (svg-rectangle svg 0 0 width height :gradient "background"
+                   :stroke-width 2 :stroke-color "black")
     (let ((image (svg-image svg)))
       (image-set-property image :ascent 100))))