GNU bug report logs -
#66538
29.1; Green is darker with PGTK
Previous Next
To reply to this bug, email your comments to 66538 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66538
; Package
emacs
.
(Sat, 14 Oct 2023 13:07:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Peter Oliver <lists.gnu.org <at> mavit.org.uk>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 14 Oct 2023 13:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In X11 Emacs builds, Emacs uses colours as defined by X11.
With PGTK, gdk_rgba_parse is called, which calls pango_color_parse_with_alpha, which uses the colour specifications from CSS (https://www.w3.org/TR/css-color-4/#named-colors).
The CSS colours are almost but not quite the same as the X11 colours (https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme discusses this). Most notably, I find that X11 green is easy to read on a dark background, whereas CSS green is not.
I notice that X.org’s rgb.txt now contains a number of new colours related to this, compared to the rgb.txt bundled with Emacs. For example:
0 255 0 green
+ 0 255 0 lime
+ 0 255 0 x11 green
+ 0 255 0 X11Green
+ 0 128 0 web green
+ 0 128 0 WebGreen
Possible ideas:
- Replace references in the Emacs source code to “green” with “lime”, “purple” with “x11 purple”, etc. (but would this work for users with old X servers?)
- Replace references in the Emacs source code to green with #00ff00, etc.
- Hack function color-values, say, to hard-code green to be #00ff00, etc.
--
Peter Oliver
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66538
; Package
emacs
.
(Sat, 14 Oct 2023 19:26:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 66538 <at> debbugs.gnu.org (full text, mbox):
Peter Oliver <lists.gnu.org <at> mavit.org.uk> writes:
> I notice that X.org’s rgb.txt now contains a number of new colours
> related to this, compared to the rgb.txt bundled with Emacs. For
> example:
>
> 0 255 0 green
> + 0 255 0 lime
> + 0 255 0 x11 green
> + 0 255 0 X11Green
> + 0 128 0 web green
> + 0 128 0 WebGreen
I updated the version in our tree (on the master branch) to match the
one in X.Org.
[1: 11f10dc0d0b]: 2023-10-14 21:23:57 +0200
Update etc/rgb.txt from X.Org upstream
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=11f10dc0d0b4b1d6af828102421eac9f79e0fcba
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 22 Oct 2023 19:49:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.