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: Po Lu <luangruo <at> yahoo.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
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: Sun, 19 Jun 2022 20:51:19 +0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Testing this on my laptop, I get the same colour in pgtk and not -- a
> very dark grey.  And that's because I use a dark theme in Gnome Shell,
> presumably?

I guess so, yes.  Though the GNOME Shell theme is separate from the GTK
stylesheet itself, as GNOME Shell uses a different toolkit.

> 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 to heed Gtk's settings for the region face when we
> don't heed it for the default background colour, so again I'm back to
> the same point: We should probably just remove that code and use the
> normal Emacs-determined face colours on (p)gtk, too.

I don't think so: it seems unduly harsh, since we also do the same on
other platforms such as Mac OS.

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.




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.