diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2013-11-01 16:47:10 +0100 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2013-11-01 16:47:10 +0100 |
commit | 3c334c1412e708585fddba61b7f91e0902a830f4 (patch) | |
tree | fb063b9f306719816335d12601735648e4fbba41 /lisp/faces.el | |
parent | 9bc236c8263bc81f1b540579a9f98d872ab2da46 (diff) | |
download | emacs-3c334c1412e708585fddba61b7f91e0902a830f4.tar.gz |
Add :distant-foreground to faces.
* doc/lispref/display.texi (Face Attributes): Document :distant-foreground.
* etc/NEWS: Mention :distant-foreground.
* lisp/faces.el (face-x-resources): Add :distant-foreground.
(region): Use :distant-foreground for gtk and ns.
* src/dispextern.h (lface_attribute_index): Add
LFACE_DISTANT_FOREGROUND_INDEX.
* src/xfaces.c: Declare color_distance.
(QCdistant_foreground): New variable.
(NEAR_SAME_COLOR_THRESHOLD): New define.
(load_color2): New function.
(load_color): Call load_color2.
(load_face_colors): Call load_color2 and if distant-color is specified
calculate distant and use distant-color if colors are near.
(LFACE_DISTANT_FOREGROUND): New define.
(merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_get_lisp_face_attribute)
(x_supports_face_attributes_p): Handle distant-foreground similar to
foreground.
(syms_of_xfaces): DEFSYM QCdistant_foreground.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r-- | lisp/faces.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 9aef744b037..8ff93874de0 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -274,6 +274,8 @@ If FRAME is omitted or nil, use the selected frame." (:weight (".attributeWeight" . "Face.AttributeWeight")) (:slant (".attributeSlant" . "Face.AttributeSlant")) (:foreground (".attributeForeground" . "Face.AttributeForeground")) + (:distant-foreground + (".attributeDistantForeground" . "Face.AttributeDistantForeground")) (:background (".attributeBackground" . "Face.AttributeBackground")) (:overline (".attributeOverline" . "Face.AttributeOverline")) (:strike-through (".attributeStrikeThrough" . "Face.AttributeStrikeThrough")) @@ -2255,10 +2257,10 @@ terminal type to a different value." '((((class color) (min-colors 88) (background dark)) :background "blue3") (((class color) (min-colors 88) (background light) (type gtk)) - :foreground "gtk_selection_fg_color" + :distant-foreground "gtk_selection_fg_color" :background "gtk_selection_bg_color") (((class color) (min-colors 88) (background light) (type ns)) - :foreground "ns_selection_fg_color" + :distant-foreground "ns_selection_fg_color" :background "ns_selection_bg_color") (((class color) (min-colors 88) (background light)) :background "lightgoldenrod2") |