Make picon display customizable
authorWolfgang Jenkner <wjenkner@inode.at>
Mon, 11 Jun 2012 21:30:19 +0000 (23:30 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jun 2012 21:30:19 +0000 (23:30 +0200)
* lisp/gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.

* texi/gnus.texi (Picons): Document gnus-picon-properties.

lisp/ChangeLog
lisp/gnus-picon.el
texi/ChangeLog
texi/gnus.texi

index 5bfe294..b09d0eb 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-04  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * gnus-picon.el (gnus-picon-properties): New defcustom.
+       (gnus-picon-create-glyph): Use it.
+
 2012-06-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-group.el (gnus-group-get-new-news): Respect
index 2f347ef..3b335b3 100644 (file)
@@ -75,6 +75,12 @@ Some people may want to add \"unknown\" to this list."
   :type '(repeat string)
   :group 'gnus-picon)
 
+(defcustom gnus-picon-properties '(:color-symbols (("None" . "white")))
+  "List of image properties applied to picons."
+  :type 'list
+  :version "24.2"
+  :group 'gnus-picon)
+
 (defcustom gnus-picon-style 'inline
   "How should picons be displayed.
 If `inline', the textual representation is replaced.  If `right', picons are
@@ -157,9 +163,9 @@ replacement is added."
 
 (defun gnus-picon-create-glyph (file)
   (or (cdr (assoc file gnus-picon-glyph-alist))
-      (cdar (push (cons file (gnus-create-image
-                             file nil nil
-                             :color-symbols '(("None" . "white"))))
+      (cdar (push (cons file (apply 'gnus-create-image
+                                   file nil nil
+                                   gnus-picon-properties))
                  gnus-picon-glyph-alist))))
 
 ;;; Functions that does picon transformations:
index f6fe6bf..a3f57aa 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-04  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * gnus.texi (Picons): Document gnus-picon-properties.
+
 2012-06-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.texi (Group Timestamp): Mention where to find documentation for
index 7bafe30..ff2c416 100644 (file)
@@ -23541,6 +23541,10 @@ The variable @code{gnus-picon-style} controls how picons are displayed.
 If @code{inline}, the textual representation is replaced.  If
 @code{right}, picons are added right to the textual representation.
 
+@vindex gnus-picon-properties
+The value of the variable @code{gnus-picon-properties} is a list of
+properties applied to picons.
+
 The following variables offer control over where things are located.
 
 @table @code