From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55887: global-whitespace-mode and WCAG Accessibility Standards Date: Sat, 11 Jun 2022 16:13:04 +0300 Message-ID: <87tu8rmjhb.fsf@tcd.ie> References: <871qvwvnze.fsf@gnus.org> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32811"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 55887@debbugs.gnu.org To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 15:14:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o00wM-0008Ko-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 15:14:10 +0200 Original-Received: from localhost ([::1]:42398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o00wL-0002S1-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 09:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o00wD-0002Rn-VP for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:14:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o00wD-0004fO-NF for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o00wD-0001RN-Ig for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 09:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55887 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 55887-submit@debbugs.gnu.org id=B55887.16549531975478 (code B ref 55887); Sat, 11 Jun 2022 13:14:01 +0000 Original-Received: (at 55887) by debbugs.gnu.org; 11 Jun 2022 13:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:52137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o00vS-0001QE-6P for submit@debbugs.gnu.org; Sat, 11 Jun 2022 09:13:17 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:41873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o00vQ-0001Q2-Nx for 55887@debbugs.gnu.org; Sat, 11 Jun 2022 09:13:13 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id 25so2004261edw.8 for <55887@debbugs.gnu.org>; Sat, 11 Jun 2022 06:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ZOEuWiU44eCrvOxrFYg2D9cnU4P4ny1KrqUYm4M9RPE=; b=DOLUy3sasaoUMSHhvc7dYV9cN7MXQYx+V2TmI1SbsFMrCE4WLOWy4kBW90Tvug0RIM z5Eqq/eu/QrePwFEtiRiSGNU2TRSybfnzP+mdkQUpcBWvgnQwCPDF93C9E++MuB2oQ0L xS/4NyqXdKGWurnCdQ7meOI9xrBW/5mZRCPyuqXcLp6OgaTcqilMg2tRirKkkMsWLrip jW/JlLlkw/bczLrilwOn91AqxXnd1GsN8rzAjVaL9MJVSN6n9f4PC9kw/FIXTZFeRHEF DZt5guLwbg5hddbDGZplhjiJyn7aKSGj4zuZpYBedSlzJzNudrJCEhX3XPQ1pNmB/brv zzrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ZOEuWiU44eCrvOxrFYg2D9cnU4P4ny1KrqUYm4M9RPE=; b=NtIG8Kah+F9H8cUpPM2sr/5ysU1LCLCUYlaW0eFSHkZJwr+SEQDJRz5YBEKzy6BhWw KCbBfCq7MqouR6GWF2hTufI4052SUMvwqt1uQVq9wWvhg/q+UUgejuT4V4WxwnXWZbKe G3oVyuA1al3afoy3ii7AxAWFowDw+v9e2nMM47EMm48Rpkx2pOpISEw9HkDjeYAWyNiY tscymNOKmS3zwsDh358vNVYCnkek9Mk0YiI+dSPW9C5Uippq1/NU7rnKG7f4Rr11GDOd 2DApf1nqPuWcjrtEe7GZb9XyKF2/p21dc+rEflYPME1unnf5NIYJWjMb1UBdOwwGVqQ3 BbHQ== X-Gm-Message-State: AOAM533XXONTG3wfp+p32Oi+c2siUc75TPY3wQwVjLCqzXDprgz4DLGs 5Byv3JbiUbYqBEzWKO7l/Zclyw== X-Google-Smtp-Source: ABdhPJzlQTL/xE5g3Kg5RKIILBaxgC6UfUNk2fp+eDdev2Tyg8DUHzNQZcrLfsnDp0CLcKN7EaoMcw== X-Received: by 2002:aa7:c990:0:b0:42d:e15f:e65a with SMTP id c16-20020aa7c990000000b0042de15fe65amr5390441edt.221.1654953186774; Sat, 11 Jun 2022 06:13:06 -0700 (PDT) Original-Received: from localhost ([2a02:587:322b:6f5e:dc92:136a:a7c4:dc8c]) by smtp.gmail.com with ESMTPSA id f21-20020a170906391500b006feec47dae9sm1011260eje.157.2022.06.11.06.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 06:13:06 -0700 (PDT) In-Reply-To: (goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors"'s message of "Fri, 10 Jun 2022 17:54:33 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234280 Archived-At: goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text edi= tors" [2022-06-10 17:54 +0000] wrote: > ------- Original Message ------- > On Friday, June 10th, 2022 at 9:58 PM, Lars Ingebrigtsen = wrote: > > >> goncholden goncholden@protonmail.com writes: >> >> > I have been using global-whitespace-mode to highlight tabs and trailin= g spaces. >> > >> > Trailing spaces look good in red, but the colour used for highlighting >> > tabs does not look good when one is using a dark background. Can the >> > contrast ratio be changed so that it adheres to WCAG Standard used for >> > Colour Accessibility? >> >> The colours look fine to me: > > If you look at the contrast ratio, you will find that it is very low, a m= ere > 1.59. You should do some homework to ensure a contrast ratio of at least= 4.5:1 > exists between text and background behind the text. > > Because it looks good to you, it does not necessarily mean it is good. > Insisting that it looks good because it is good for you means that the pr= oject > does not care about accessibility. I cannot see it at all and the thing = that > saved me was having the tab marks showing up. At a contrast of 3.5, I ca= n see > it, confirming that the WCAG Standard in a very good standard to use. Have you tried using one of the Modus themes? They are bundled with Emacs since Emacs 28, or you can install them from GNU[-devel] ELPA: https://elpa.gnu.org/packages/modus-themes.html https://elpa.gnu.org/devel/modus-themes.html Quoth (info "(modus-themes) Overview"): The Modus themes are designed for accessible readability. They conform with the highest standard for color contrast between any given combination of background and foreground values. This corresponds to the WCAG AAA standard, which specifies a minimum rate of distance in relative luminance of 7:1. Modus Operandi (=E2=80=98modus-operandi=E2=80=99) is a light theme, wh= ile Modus Vivendi (=E2=80=98modus-vivendi=E2=80=99) is dark. Each theme=E2=80=99s = color palette is designed to meet the needs of the numerous interfaces that are possible in the Emacs computing environment. For more, see https://protesilaos.com/emacs/modus-themes. > Rather than simply using grey, the thing to de is select colours from the= colour > wheel (e.g triadic colours) so you can have an adequate colour vibrancy. > Because whilst you use a vibrant red for trailing spaces, whitespace-mode= does > not continue with the colour vibrancy for highlighting the rest. > >> >> If you want a different colour, then change the colour of that face. HTH, --=20 Basil