unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Matt Armstrong <matt@rfc20.org>
Cc: 46396@debbugs.gnu.org
Subject: bug#46396: 27.1.90; Ediff's non-focused diff section, background too light in --reverse
Date: Wed, 10 Feb 2021 21:39:35 +0200	[thread overview]
Message-ID: <87wnvfwwfg.fsf@mail.linkov.net> (raw)
In-Reply-To: <m2sg63hjcq.fsf@matts-mbp-2016.lan> (Matt Armstrong's message of "Wed, 10 Feb 2021 10:24:05 -0800")

tags 46396 fixed
close 46396 28.0.50
thanks

>> Do you see more problems with the following patch?
>
> Juri, this is a definite improvement, thank you. Committing it as it is
> seems reasonable since it makes unreadable text readable again.

Thanks for confirming, now committed to master for Emacs 28.

> I applied this patch and played around with applying various light and
> dark themes.
>
> Some comments:
>
> In the "tango-dark" theme:
>
>  a) the non-current diff backgrounds are quite close to the theme's dark
>     background color, so they are not very noticeable.
>  b) the current diff (such as `ediff-current-diff-B`) is also quite close
>     to the theme's background color.
>
> In the "tango-light" theme:
>
>  c) `ediff-current-diff-A' is quite dark (a darker blue/purple), and the
>     foreground color is hard to read over it. This is a little odd,
>     because `ediff-current-diff-B' is a fairly bright yellow background.
>
> I saw similar issues in the various other standard themes (loading up
> the mater branch with src/emacs -Q).
>
> The issues I see with ediff-current-* faces are arguably a tangent to
> this bug. Perhaps those faces could use :distant-foreground as well, for
> similar reasons?

I'm not sure if it's possible to find such default colors that would
work well for all standard themes.  But there is no need to use
:distant-foreground in themes, because the authors of themes can find
the right combination of the default/ediff colors and adjust their themes
accordingly.

> As for the background colors possibly being quite similar to the theme's
> background, I'm not sure what to do about that.

Implementing something like :distant-background is less important than
:distant-foreground, because :distant-foreground is important to
make the text readable, while :distant-background would only help
making the background color differ from the default background color.





  reply	other threads:[~2021-02-10 19:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09  9:19 bug#46396: 27.1.90; Ediff's non-focused diff section, background too light in --reverse bug-gnu-emacs_at_gnu.org
2021-02-10  6:46 ` Matt Armstrong
2021-02-10  7:24   ` Matt Armstrong
2021-02-10 17:01     ` Juri Linkov
2021-02-10 18:24       ` Matt Armstrong
2021-02-10 19:39         ` Juri Linkov [this message]
2021-02-10 20:28           ` Matt Armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnvfwwfg.fsf@mail.linkov.net \
    --to=juri@jurta.org \
    --cc=46396@debbugs.gnu.org \
    --cc=matt@rfc20.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).