Function: tree-widget-set-theme
tree-widget-set-theme is a byte-compiled function defined in
tree-widget.el.gz.
Signature
(tree-widget-set-theme &optional NAME)
Documentation
In the current buffer, set the theme to use for images.
The current buffer must be where the tree widget is drawn.
Optional argument NAME is the name of the theme to use. It defaults
to the value of the variable tree-widget-theme.
Does nothing if NAME is already the current theme.
If there is a "tree-widget-theme-setup" library in the theme directory, load it to setup a parent theme or the images properties. Typically it should contain something like this:
(tree-widget-set-parent-theme "my-parent-theme")
(tree-widget-set-image-properties
'(:ascent center :mask (heuristic t)))
Source Code
;; Defined in /usr/src/emacs/lisp/tree-widget.el.gz
(defun tree-widget-set-theme (&optional name)
"In the current buffer, set the theme to use for images.
The current buffer must be where the tree widget is drawn.
Optional argument NAME is the name of the theme to use. It defaults
to the value of the variable `tree-widget-theme'.
Does nothing if NAME is already the current theme.
If there is a \"tree-widget-theme-setup\" library in the theme
directory, load it to setup a parent theme or the images properties.
Typically it should contain something like this:
(tree-widget-set-parent-theme \"my-parent-theme\")
(tree-widget-set-image-properties
\\='(:ascent center :mask (heuristic t)))"
(or name (setq name (or tree-widget-theme "default")))
(unless (string-equal name (tree-widget-theme-name))
(setq-local tree-widget--theme (make-vector 4 nil))
(tree-widget-set-parent-theme name)
(tree-widget-set-parent-theme "default")))