mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-21 05:00:47 -08:00
Add a predicate, color-dark-p, for deciding whether a colour is more readable with black or white as contrast. It has experimentally been shown to be more accurate and robust than the various methods currently employed. The new predicate compares the relative luminance of the colour to an empirically determined cut-off value, and it seems to get it right in almost all cases, with no value leading to outright bad results. * lisp/faces.el (readable-foreground-color): Use color-dark-p. (color-dark-p): New function. * lisp/facemenu.el (list-colors-print): Use readable-foreground-color, improving readability of list-colors-display. * lisp/textmodes/css-mode.el (css--contrasty-color): Remove. (css--fontify-region): Use readable-foreground-color. |
||
|---|---|---|
| .. | ||
| artist.el | ||
| bib-mode.el | ||
| bibtex-style.el | ||
| bibtex.el | ||
| conf-mode.el | ||
| css-mode.el | ||
| dns-mode.el | ||
| enriched.el | ||
| fill.el | ||
| flyspell.el | ||
| ispell.el | ||
| less-css-mode.el | ||
| makeinfo.el | ||
| mhtml-mode.el | ||
| nroff-mode.el | ||
| page-ext.el | ||
| page.el | ||
| paragraphs.el | ||
| picture.el | ||
| po.el | ||
| refbib.el | ||
| refer.el | ||
| refill.el | ||
| reftex-auc.el | ||
| reftex-cite.el | ||
| reftex-dcr.el | ||
| reftex-global.el | ||
| reftex-index.el | ||
| reftex-parse.el | ||
| reftex-ref.el | ||
| reftex-sel.el | ||
| reftex-toc.el | ||
| reftex-vars.el | ||
| reftex.el | ||
| remember.el | ||
| rst.el | ||
| sgml-mode.el | ||
| table.el | ||
| tex-mode.el | ||
| texinfmt.el | ||
| texinfo.el | ||
| texnfo-upd.el | ||
| text-mode.el | ||
| tildify.el | ||
| two-column.el | ||
| underline.el | ||