+2004-01-05 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-vars.el (wl-demo-image-filter-alist): Set default value to nil.
+ (wl-demo-background-color): Changed default value.
+
+ * wl-highlight.el (wl-highlight-demo-face): Changed default foreground
+ color.
+
+ * wl-demo.el (wl-demo-set-background-color): New function.
+ (wl-demo): Call it.
+
2004-01-03 Yoichi NAKAYAMA <yoichi@geiin.org>
* wl-address.el (wl-address-delete): Avoid mis-deleting.
(max 0 (/ (1+ (- (window-width) width)) 2)))
(count-lines (point-min) (goto-char (point-max))))))
+(defun wl-demo-set-background-color ()
+ "Set background color of the demo buffer."
+ (cond
+ (wl-on-emacs21
+ ;; I think there should be a better way to set face background in the
+ ;; buffer local way. But I don't know how to do it on Emacs21.
+ (goto-char (point-max))
+ (dotimes (i (- (window-height)
+ (count-lines (point-min) (point)) 1)) ; 1 means modeline
+ (insert ?\n))
+ (put-text-property (point-min) (point-max)
+ 'face 'wl-highlight-demo-face)
+ (set-face-background 'wl-highlight-demo-face
+ wl-demo-background-color))
+ ((featurep 'xemacs)
+ (set-face-background 'default wl-demo-background-color
+ (current-buffer)))))
+
(defun wl-demo-insert-text (height)
"Insert a version and the copyright message after a logo image. HEIGHT
should be a number of lines that an image occupies in the buffer."
(set (make-local-variable 'tab-stop-list)
'(8 16 24 32 40 48 56 64 72 80 88 96 104 112 120))
(wl-demo-insert-text (wl-demo-insert-image image-type))
+ (when wl-demo-background-color
+ (wl-demo-set-background-color))
(set-buffer-modified-p nil)
(goto-char (point-min))
(sit-for (if (featurep 'lisp-float-type)
(:foreground "green"))
(((class color)
(background dark))
- (:foreground "GreenYellow"))
+ (:foreground "#006600"))
(((class color)
(background light))
- (:foreground "blue2")))
+ (:foreground "#006600")))
"Face used for displaying demo."
:group 'wl-faces)
(symbol :tag "file name")))
:group 'wl-pref)
-(defcustom wl-demo-image-filter-alist
- '((xpm . wl-demo-xpm-set-background))
+(defcustom wl-demo-image-filter-alist nil
"An alist of image type and filter function."
:type '(repeat (cons symbol function))
:group 'wl-pref)
-(defcustom wl-demo-background-color "None"
+(defcustom wl-demo-background-color "#d9ffd9"
"The color name for demo background.
-Used in the filter function `wl-demo-filter-xpm-background'."
+If nil, the default face background is used."
:type '(string :tag "Color name")
:group 'wl-pref)