From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.emacs.devel Subject: Re: "modern" colors Re: Changes for emacs 28 Date: Mon, 14 Sep 2020 18:46:20 +0200 Message-ID: <87o8m8xq5f.fsf@elephly.net> References: <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> <20200912153723.ymnq3i5pugqf7lsy@Ergus> <871rj628mq.fsf@elephly.net> <20200912195358.3zjct7gsogjtlh3n@Ergus> <87y2lezrbp.fsf@elephly.net> <83pn6pbtni.fsf@gnu.org> <87mu1tzlxo.fsf@elephly.net> <83mu1tbp7a.fsf@gnu.org> <87h7s1zccb.fsf@elephly.net> <83bli8beyy.fsf@gnu.org> 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="11045"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 27.1 Cc: spacibba@aol.com, casouri@gmail.com, emacs-devel@gnu.org, ams@gnu.org, monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 18:46:52 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kHrcy-0002ls-9c for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 18:46:52 +0200 Original-Received: from localhost ([::1]:49870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHrcx-0000qT-AB for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 12:46:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHrbP-0007SB-TJ for emacs-devel@gnu.org; Mon, 14 Sep 2020 12:45:17 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHrbM-0000iC-IW; Mon, 14 Sep 2020 12:45:15 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600101907; cv=none; d=zohomail.com; s=zohoarc; b=SEj9ekeM6dz1hEJKcDpZJdEQ3yNtJIagW9cfyLX/0nms4RD8x5rNLsp61jVKVmpDx1Di5to64vrcISJvuWku1doDvIksMWSAh7pjsecF2R+1Ht7u05GPUO/bvys4ibO8R0TYeONrDWQFfN3rbCN8Dj9+Mgj/VIvv9TBRfhXaKN0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600101907; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=y+MRZ+cI6oBjnimivS+J0F7bByYQ6OsnwUsOG1L1VyE=; b=Up9xeuG91STHQa6N7tz16iCgXXJBAmMFnURvENGrHCjqZ9ww7UrIHyzejaE76mnpWRccBs+ZLAjODVxlraYw4HutoSXcmMp5ov36nlx/96WMbm1c+kUojohp5SX1J2I6oJ84r3rX+4qDx/b+2POrupePkbZ2esoIS0SWGYWwnkc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600101907; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=y+MRZ+cI6oBjnimivS+J0F7bByYQ6OsnwUsOG1L1VyE=; b=bQMFxQpSCEnPX4iWF1Nw/V1/P9fyJBTCo7du/Dqd5M6aYgIj4IRDNGp2gRmXVDW0 7bWEm1QSInu4lA6hpuA7BclXmziC10NscXp75bqdTFx5GzQ4Qhi/oELFCCENaYiKLgt 3CrSraraU+7JSPXBxBx7LvNLCjQLKlbFiBFbH4W4= Original-Received: from localhost (p54ad4c23.dip0.t-ipconnect.de [84.173.76.35]) by mx.zohomail.com with SMTPS id 1600101903705762.7353289635251; Mon, 14 Sep 2020 09:45:03 -0700 (PDT) In-reply-to: <83bli8beyy.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 12:44:04 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255664 Archived-At: Eli Zaretskii writes: >> From: Ricardo Wurmus >> Cc: spacibba@aol.com, casouri@gmail.com, emacs-devel@gnu.org, ams@gnu.or= g, >> monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com >> Date: Sun, 13 Sep 2020 21:49:24 +0200 >>=20 >> > Then it's a mystery only you can solve. Look at the definition of the >> > 'region' face in faces.el: the only case where we use :inverse-video >> > is on monochrome TTYs. If that is not your case, then I don't know >> > how to explain the fact that you see the region in reverse video. I >> > guess I'm missing something, but what? >>=20 >> The =E2=80=99region=E2=80=99 face has these settings: >>=20 >> DistantForeground: gtk_selection_fg_color >> Background: gtk_selection_bg_color >>=20 >> I switch to a light GTK theme and run Emacs: >>=20 >> $ dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" >> $ emacs -Q >>=20 >> Now the selected region has a light gray background. >>=20 >> I switch to a dark GTK theme and run Emacs: >>=20 >> $ dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita-dark'" >> $ emacs -Q >>=20 >> Now the selected region has a very dark background and the text is >> bright. >>=20 >> I suppose that=E2=80=99s exactly what gtk_selection_bg_color and >> gtk_selection_fg_color are supposed to do: take the colours from the GTK >> theme. > > Thanks for investigating. So this explains the colors that you see, > but AFAIU, they are not exactly the default colors inverted, they just > look similar to that. Your original description said the region was > shown in inverse video, which is what puzzled me. Yes, it is not inverse video, but it looks very much like it with the Adwaita-dark theme. I could not know the true cause prior to investigating the issue :) --=20 Ricardo