emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* need to increase contrast in all emacs faces for legibility
@ 2019-12-11  3:39 Samuel Wales
  2019-12-11  8:56 ` Marco
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Samuel Wales @ 2019-12-11  3:39 UTC (permalink / raw)
  To: emacs-orgmode

at night, i need much more contrast in my emacs faces in order to
increase legibility.

during the day i want the same faces i currently have.

is it possible to programmatically increase foreground contrast
against their background in all faces?

i already have the background black or close to it.

i have heard that in practice, it is not a question of just increasing
brightness.  there is an accessibility website that can calculate it
but i don't know the url.

but even if nobody knows the theory of contrast perception, or
whatever applies here, even just increasing foreground brightness of
all faces would probably increase legibility.

thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need to increase contrast in all emacs faces for legibility
  2019-12-11  3:39 need to increase contrast in all emacs faces for legibility Samuel Wales
@ 2019-12-11  8:56 ` Marco
  2019-12-11 12:04 ` Pankaj Jangid
  2019-12-12  1:42 ` wry
  2 siblings, 0 replies; 5+ messages in thread
From: Marco @ 2019-12-11  8:56 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

> is it possible to programmatically increase foreground contrast
> against their background in all faces?

While I can't answer your question, which is an interesting one (don't
think it's org related, though), I just wanted to ask: can't you just
adjust the temperature of your display with a tool such as redshift
(for linux) or f.lux (windows)?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need to increase contrast in all emacs faces for legibility
  2019-12-11  3:39 need to increase contrast in all emacs faces for legibility Samuel Wales
  2019-12-11  8:56 ` Marco
@ 2019-12-11 12:04 ` Pankaj Jangid
  2019-12-12  1:42 ` wry
  2 siblings, 0 replies; 5+ messages in thread
From: Pankaj Jangid @ 2019-12-11 12:04 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

> is it possible to programmatically increase foreground contrast
> against their background in all faces?


For shr (the built-in browser), there is something. But in general I am
not aware if there is something related to this.

shr-color-visible-distance-min, shr-color-visible-luminance-min

These two variables are used for shr.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Need to increase contrast in all emacs faces for legibility
@ 2019-12-11 19:03 Bruce Russell
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Russell @ 2019-12-11 19:03 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Protesilaos Stavrou has uploaded two (light and dark) “accessibility” themes with “consistent minimum contrast ratio between background and foreground values of 7:1 or higher" to Melpa. See https://www.youtube.com/watch?v=zofd0O12XWE <https://www.youtube.com/watch?v=zofd0O12XWE>. The source code is on GitLab at https://gitlab.com/protesilaos/modus-themes <https://gitlab.com/protesilaos/modus-themes>.

[-- Attachment #2: Type: text/html, Size: 664 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need to increase contrast in all emacs faces for legibility
  2019-12-11  3:39 need to increase contrast in all emacs faces for legibility Samuel Wales
  2019-12-11  8:56 ` Marco
  2019-12-11 12:04 ` Pankaj Jangid
@ 2019-12-12  1:42 ` wry
  2 siblings, 0 replies; 5+ messages in thread
From: wry @ 2019-12-12  1:42 UTC (permalink / raw)
  To: emacs-orgmode

On 12/10, Samuel Wales wrote:
>at night, i need much more contrast in my emacs faces in order to
>increase legibility.

This is counterintuitive, normally you need to increase contrast
during the day and decrease contrast (and lower brightness) at night
to prevent eye strain. Unless you're using an E Ink display or
something crazy, decreased ambient light should not affect legibility
(pixels are backlit), only eye strain.

>is it possible to programmatically increase foreground contrast
>against their background in all faces?

>i already have the background black or close to it.

Studies have suggested that light text on dark background is less
legible than dark text on light background, so you could change
that. Anecdotally this is true for me in Emacs and on the web, but the
decreased eye strain at night is worth the tradeoff of using a dark
background.

I doubt Emacs has this contrast functionality built in. You can always
change themes (M-x customize-themes). A quick Google of "Emacs high
contrast themes" yields at least one theme you could try.

You can even manually modify themes. Just go to the Elisp file and
play around with the theme definition. Use Gimp or Google "HTML color
picker" to find new colors to replace whichever color you're not
satisfied with.

If you're actually trying to reduce eye strain at night, there are
several tools at your disposal.

- Redshift has already been mentioned; I consider my computer
  basically unusable at night without it
- Decrease display brightness using software
  (e.g. https://github.com/haikarainen/light )
- Change brightness or color settings at the hardware level (by
  clicking buttons on your monitor)
- Add more ambient light around your monitor
- Computer blue-light filtering glasses (I don't know if they're effective or not)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-12  1:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11  3:39 need to increase contrast in all emacs faces for legibility Samuel Wales
2019-12-11  8:56 ` Marco
2019-12-11 12:04 ` Pankaj Jangid
2019-12-12  1:42 ` wry
  -- strict thread matches above, loose matches on Subject: below --
2019-12-11 19:03 Need " Bruce Russell

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).