XEmacs now has a "foreback" face property
By xemacs on Tuesday, December 27 2011, 16:50 - (X)Emacs - Permalink
Here's another new face property in XEmacs. This one is probably not going to be used ever, but still it fixes one particular problem. Until now, XEmacs used the background and foreground colors to display a face background bitmap (as opposed to a regular pixmap). This basically rendered the text unreadable.
The new face property is called "foreback" (I'm running short of sensible property names these days). It's the "foreground of the background" if you will. When a face has a background bitmap, it uses the regular background color for bitmap's background, but the foreback color for the bitmap's foreground. See the attached screenshot for a concrete example of the problem it fixes.
The bitmap I used for this example is X11's xsnow
bitmap. Nice Christmas XEmacs screenshot, isn't it? :-)
In order to set a face's foreback color, either use the Custom interface, or the set-face-foreback
function.
Comments
Didier,
Thank you for adding this attribute!
Really nice.
I am able to get this to work within a custom buffer, ie setting the foreback and background pixmap, and the absolute setting, for the default face.
However, when I set the same settings for the menu-bar face, or the tab-bar face, or for the toolbar-face, I don't get any changes on the screen. I do get the "sample" box by each of those faces in the custom buffer to show the background to be part of the pixmap I selected, but not on the actual menu-bar, tab-bar, or tool-bar.
Are you able to get the foreback or pixmap properties to work in any of those locations?
It's expected that this will not work on widgets (I didn't touch that code). I actually hadn't thought someone would be interested in using this property on widgets...
The integration between faces and widgets is not complete and I'm not even sure we could make this work with every toolkit.
Sorry!
Awesome article.
Awesome blog! Is your theme custom made or did you download it from somewhere?
A theme like yours with a few simple tweeks would really make my blog jump
out. Please let me know where you got your design. With thanks