GNU bug report logs - #46493
[feature/pgtk] Low contrast region face

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Sat, 13 Feb 2021 16:57:01 UTC

Severity: wishlist

Tags: moreinfo

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: contovob <at> tcd.ie, 46493 <at> debbugs.gnu.org, Yuuki Harano <masm+emacs <at> masm11.me>
Subject: bug#46493: [feature/pgtk] Low contrast region face
Date: Mon, 20 Jun 2022 00:41:45 +0200
Po Lu <luangruo <at> yahoo.com> writes:

>> However, we ignore the theme for everything else, so "emacs -Q" gives me
>> an Emacs with a white background -- and a very dark region face.
>
> That shouldn't be problematic, right? Because we have the distant
> foreground set to the GTK region foreground color, so there will always
> be sufficient contrast.

It's nonsensical of Emacs to use the Gtk theme for just one colour here.
It should either use the Gtk theme for the background/foreground
colours, too, or not use it at all.

> Users using a non-default GTK stylesheet should know of the
> consequences, and can simply customize the region face to use a
> different background color.

Emacs composes the colours we use here, and we choose colours that have
the mixture we want.  Our current approach leads to two bugs: With a
dark theme, we get a nonsensically dramatic region face, and with a
light theme, we get a region face that has too low contrast.  That's an
Emacs bug, and not something the user should have to deal with.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.