GNU bug report logs - #66538
29.1; Green is darker with PGTK

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Peter Oliver <lists.gnu.org@HIDDEN>; dated Sat, 14 Oct 2023 13:07:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 66538 <at> debbugs.gnu.org:


Received: (at 66538) by debbugs.gnu.org; 14 Oct 2023 19:25:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 14 15:25:19 2023
Received: from localhost ([127.0.0.1]:50550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qrkGF-0007OY-D0
	for submit <at> debbugs.gnu.org; Sat, 14 Oct 2023 15:25:19 -0400
Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:43160)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qrkGB-0007OH-Sp
 for 66538 <at> debbugs.gnu.org; Sat, 14 Oct 2023 15:25:17 -0400
Received: by mail-lf1-x12e.google.com with SMTP id
 2adb3069b0e04-50481a0eee7so5143864e87.0
 for <66538 <at> debbugs.gnu.org>; Sat, 14 Oct 2023 12:24:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1697311486; x=1697916286; darn=debbugs.gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :references:in-reply-to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=buJaL53AqFa4ZdJx1WIgj2000UhKR70Hlq6JkeFvoIs=;
 b=AzODDxY7vvB34PMRFNtcIRGd87WmqAe8ZxTRPYpAqbvfzoN57CVwf0n6KWet0dnmWW
 qg/LaFywR0ngbsw7sUS5hMBTNTt2/HTQKFQBaYWfVuTSZ4rffXRCSyhcML8zSTCz8qCf
 UnZC/Ocf8EMWOpb3su8XpvdaRyNRM3VH6ZA91Bxt8nXBMLS35yAYfeYEb5VRn7TTk69G
 Gd5rU+sgAymFvutqMeuaHqfrQMKIqDMw/mJsVq12vVZNfsXePdP1//UqMDTR3XQNLSpV
 i9N6Fsdyfw9jIBat990yoDJhH2yK8IOUQZid+6eBFcxtKdznb31MDuqyugrnqOIInfQS
 Dl1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1697311486; x=1697916286;
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=buJaL53AqFa4ZdJx1WIgj2000UhKR70Hlq6JkeFvoIs=;
 b=g26ZT6NklHgj1HjfiPEGsWf4jR+cxb9Xm87j1sKk2zJCQFX+YATSKRfgsSQpBp4bjg
 3DyP2OnAwW/jscRlx1RSf1my9V4655TVxyH931EmkiySrjICtzTqs6OMTXBWlGg1SsRS
 eaafusB0o9HtI5Z4nRcrp60FVJy125/9dzkGNRtpoDq+l06fCItgpAx78ecXOdibNjC+
 jNhBMw/38nSnrYYBqqa46+DRZGuyOVCBwqYwxz1nkYiTVwmAs25jqRCWASttThmzEUst
 D8BWN2qMRJ77smULdm2VLFWn38OIOktM5JrqSL1im4WItb+pMaa2YVUBPyp/JZgjIVrx
 pvHw==
X-Gm-Message-State: AOJu0YwDHoJMN3mlHL3uDtxSpH3eFqSNoocn2FDc46ECQ/uzBTV9LZ9O
 C3G1bWeURlnx+Qt9mlKuafKS5U7RaAewqZsVwuy8U/Vb+NY=
X-Google-Smtp-Source: AGHT+IHXca5nUV1GcD5afCfQ51jYbKvCQCjpkh+GoSu+TatSeeWdOzq5aWF26rY7ArB3gqWyUXtblKqCqe+NDkOM4Ho=
X-Received: by 2002:a05:6512:b87:b0:507:9768:d4d5 with SMTP id
 b7-20020a0565120b8700b005079768d4d5mr2798036lfv.14.1697311485457; Sat, 14 Oct
 2023 12:24:45 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 14 Oct 2023 12:24:45 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <1da78a3e-1dbe-7719-8e92-df4099274053@HIDDEN>
References: <1da78a3e-1dbe-7719-8e92-df4099274053@HIDDEN>
MIME-Version: 1.0
Date: Sat, 14 Oct 2023 12:24:45 -0700
Message-ID: <CADwFkmntjp3H2XTE4wRSBXmTQ90e-JCTAg+b1AcMkiBLWYo73g@HIDDEN>
Subject: Re: bug#66538: 29.1; Green is darker with PGTK
To: Peter Oliver <lists.gnu.org@HIDDEN>, 66538 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66538
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Peter Oliver <lists.gnu.org@HIDDEN> writes:

> I notice that X.org=E2=80=99s rgb.txt now contains a number of new colour=
s
> 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=3D11f10dc0d0b4b1d6=
af828102421eac9f79e0fcba




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66538; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Oct 2023 13:06:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 14 09:06:17 2023
Received: from localhost ([127.0.0.1]:48145 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qreLQ-0007fK-Vk
	for submit <at> debbugs.gnu.org; Sat, 14 Oct 2023 09:06:17 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41978)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lists.gnu.org@HIDDEN>) id 1qreLP-0007f5-B0
 for submit <at> debbugs.gnu.org; Sat, 14 Oct 2023 09:06:16 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <lists.gnu.org@HIDDEN>)
 id 1qreKt-0004R7-S1
 for bug-gnu-emacs@HIDDEN; Sat, 14 Oct 2023 09:05:43 -0400
Received: from mail-wm1-f51.google.com ([209.85.128.51])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <lists.gnu.org@HIDDEN>)
 id 1qreKp-0005nk-Rw
 for bug-gnu-emacs@HIDDEN; Sat, 14 Oct 2023 09:05:43 -0400
Received: by mail-wm1-f51.google.com with SMTP id
 5b1f17b1804b1-40566f89f6eso34728395e9.3
 for <bug-gnu-emacs@HIDDEN>; Sat, 14 Oct 2023 06:05:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1697288724; x=1697893524;
 h=mime-version:message-id:subject:to:from:date:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=gLxspycON+fkuiSXmB8Bt5v6LiG+iTkxHOhicZATspk=;
 b=h1WiYU3jgUhom7OskYrvLvlncuHLBvKr19sah4FN5owI2bLOpjd1tRitzRJW0UaVwf
 faP0bfz1/B1YuZTn35ibp6xWIJHp+uqvxUkJCGC5/jE10YcjkH1KnGwu047OYlDyc9T9
 HM1AuKC35ZhVpnQOC8Y4gYc+ws8t5B6t3OF6wF6rvu6NA/4HfIeGensNCQvsVlARFfbN
 B+7UOTraHvEIx21B6ayfM4ik1CfYwyHkXZkcztiTpYKuC4+s8m5sgswkU/bEE8Jo1Lux
 F+nAyko3F3IG48O5qv+m5aHs83F4l5q81lEkYQhHRq+MQVYqNj1oK2VjC0g2BsBnjtcV
 ltAA==
X-Gm-Message-State: AOJu0YzvyjD9O8CC5tOK4FZ7m+17QYd4VZ+JtfXraoswcYRj10QZDgBQ
 MXp1hWI1oP/j4AVvNlK66EB2VXx2xU1c4OCkUMo=
X-Google-Smtp-Source: AGHT+IEmvrF8TZADx3ZAyLtokAGmD823VFIujSdEYD+XU2tulRPL+GbVXPGWGTPJ6C79WM5oALuBVw==
X-Received: by 2002:a05:600c:468d:b0:407:4944:76dc with SMTP id
 p13-20020a05600c468d00b00407494476dcmr15925246wmo.20.1697288723316; 
 Sat, 14 Oct 2023 06:05:23 -0700 (PDT)
Received: from froglet.home.mavit.org.uk
 (dudl-14-b2-v4wan-165814-cust1925.vm31.cable.virginm.net. [82.34.135.134])
 by smtp.gmail.com with ESMTPSA id
 fb12-20020a05600c520c00b004063c9f68f2sm1911094wmb.26.2023.10.14.06.05.22
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 14 Oct 2023 06:05:22 -0700 (PDT)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
 by froglet.home.mavit.org.uk (8.17.1/8.17.1) with ESMTPS id 39ED5LK9017076
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
 for <bug-gnu-emacs@HIDDEN>; Sat, 14 Oct 2023 14:05:21 +0100
Received: from localhost (mavit@localhost)
 by froglet.home.mavit.org.uk (8.17.1/8.17.1/Submit) with ESMTP id
 39ED5KG2017073
 for <bug-gnu-emacs@HIDDEN>; Sat, 14 Oct 2023 14:05:21 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
 -bs
Date: Sat, 14 Oct 2023 14:05:20 +0100 (BST)
From: Peter Oliver <lists.gnu.org@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.1; Green is darker with PGTK
Message-ID: <1da78a3e-1dbe-7719-8e92-df4099274053@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="-1463811583-538386269-1697288721=:16982"
Received-SPF: pass client-ip=209.85.128.51;
 envelope-from=lists.gnu.org@HIDDEN; helo=mail-wm1-f51.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811583-538386269-1697288721=:16982
Content-Type: text/plain; format=flowed; charset=UTF-8
Content-Transfer-Encoding: 8BIT

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
---1463811583-538386269-1697288721=:16982--




Acknowledgement sent to Peter Oliver <lists.gnu.org@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#66538; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 22 Oct 2023 20:00:02 UTC

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