Q: How do I programmatically instruct Emacs to change a displayed image (XPM) on mouse-over in the header-line-format
?
For example, the following image has a black circle with a white letter X. On mouse-over, I would like to modify the header-line-format
and substitute the existing XPM image with one using different colors.
(setq header-line-format (propertize " " 'display
'(image :type xpm :data "/* XPM */
static char * close_tab_xpm[] = {
\"14 11 3 1\",
\" c None\",
\". c #000000\",
\"+ c #FFFFFF\",
\" ..... \",
\" ....... \",
\" ......... \",
\" ...+...+... \",
\" ....+.+.... \",
\" .....+..... \",
\" ....+.+.... \",
\" ...+...+... \",
\" ......... \",
\" ....... \",
\" ..... \"};" :ascent center :mask (heuristic t) :margin 0)))