From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden 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 19:48:37 +0000 Message-ID: References: <871qvwvnze.fsf@gnus.org> <87tu8rmjhb.fsf@tcd.ie> Reply-To: goncholden 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="36200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 55887@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 21:49:21 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 1o076m-0009Be-ER for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 21:49:20 +0200 Original-Received: from localhost ([::1]:41152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o076k-000482-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 15:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o076U-00047t-Nj for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o076U-0003MT-G3 for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o076U-0005pA-B8 for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: goncholden Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 19:49:02 +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.165497693422373 (code B ref 55887); Sat, 11 Jun 2022 19:49:02 +0000 Original-Received: (at 55887) by debbugs.gnu.org; 11 Jun 2022 19:48:54 +0000 Original-Received: from localhost ([127.0.0.1]:54077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o076L-0005on-JN for submit@debbugs.gnu.org; Sat, 11 Jun 2022 15:48:53 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:16287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o076I-0005oS-1D for 55887@debbugs.gnu.org; Sat, 11 Jun 2022 15:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1654976923; x=1655236123; bh=VO89d0/S6lsTg7Z6NO0SX3fFj3id9ubbVwQS9yGKsBI=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=JEVg8C2/L6Wo9eAYJzekv/YKCwQPF9hIuEnX32SK/WQ2zonWBxIp7upHjhmpHsal5 mjDAjC4OV6NKVeAwZ6AvF/mwXaFpGHwWSvw32/flVSNQGmKa+QEvI5jPeL+sTdNI92 kklKux+ZEj+cBpJvieO8QAI9YO3JmxludSZSIMlJHyK5XONXymhPQKsHO3hXodreL2 EIXukuKEGCCqN4LKSDEi0wPqDKvwQ1Ls/h9zdYQ11ZyuFtWgRjul/+GHN5JucCrVLn 1liVnZqk4n7KHC8VLwUbnc2AMsLD8M/puwWXDpgY76dwEj8z9uN0yaORaptKbQLo1Z AFM6m8GGkkqMA== In-Reply-To: <87tu8rmjhb.fsf@tcd.ie> Feedback-ID: 43053548:user:proton 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" X-ACL-Warn: , goncholden Xref: news.gmane.io gmane.emacs.bugs:234304 Archived-At: ------- Original Message ------- On Sunday, June 12th, 2022 at 1:13 AM, Basil L. Contovounesios wrote: > goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text e= ditors" [2022-06-10 17:54 +0000] wrote: > > > ------- Original Message ------- > > On Friday, June 10th, 2022 at 9:58 PM, Lars Ingebrigtsen larsi@gnus.org= wrote: > > > > > goncholden goncholden@protonmail.com writes: > > > > > > > I have been using global-whitespace-mode to highlight tabs and trai= ling spaces. > > > > > > > > Trailing spaces look good in red, but the colour used for highlight= ing > > > > tabs does not look good when one is using a dark background. Can th= e > > > > 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= mere > > 1.59. You should do some homework to ensure a contrast ratio of at leas= t 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 = project > > 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 c= an 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: Modus-Themes is a good start. But it usually sets accessible colours to pa= ckages that have never been concerned with accessibility. Things should wo= rk the other way round, with different levels of accessibility in the own d= esign. There are so many pacakages and customisations that one cannot expe= ct Modus-Themes to take care of all of them. Am not saying that accessibi= lity levels should be forced on all users. But certainly that each package= should include accessible modes. > 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, while= Modus > Vivendi (=E2=80=98modus-vivendi=E2=80=99) is dark. Each theme=E2=80=99s c= olor 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 t= he 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-mo= de 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, > > -- > Basil