From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: checking for light or dark background Date: Wed, 02 Feb 2022 13:25:38 +0000 Message-ID: References: <838rut77h2.fsf@gnu.org> 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="22147"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 14:51:08 2022 Return-path: Envelope-to: geh-help-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 1nFG2O-0005Tq-AT for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 14:51:08 +0100 Original-Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFG2K-0008BS-PZ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 08:51:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFFdq-0008BB-Lg for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 08:25:47 -0500 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:59403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFFdm-0006z9-Mm for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 08:25:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643808340; bh=f4j4EX6CtkCs4i6aIlHzH/ytL/s2spDFVOn9ayo7neI=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=itRr8vaQB9f4JwuyEaIsfu2EBEty6y4As5DQvv0W3vjOOwDCPgq0uwN0GxorrpRci HmwrFF81QDa5et/w9gZfZYoPPmnczTlo7YPtwjg9LZGg1PLMjLYAF4NExIQxGuu+5E Ce97RjdB1QJYEG3jQK7uxvNzTkZkfv0DcAHPnsJ8eomyKyYXNE/D+w4TvNka4UHONc yOTxKxp+/8vhL4zbTfsP201LH2dAQ3JbBbEsiMM3Y8qtHHP6BNjv/SicEQuKnWtNIP YmLjirq1M2S//zApmUe1QfKcQ689Cl+U4syRp47xw7fDk7PeCuHwc4gWOw1z+9XyK0 Wh1loi2q/YE7Q== In-Reply-To: <838rut77h2.fsf@gnu.org> Received-SPF: pass client-ip=185.70.43.18; envelope-from=goncholden@protonmail.com; helo=mail-4318.protonmail.ch 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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135656 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, February 2nd, 2022 at 12:56 PM, Eli Zaretskii = wrote: > Date: Wed, 02 Feb 2022 09:26:02 +0000 > > From: goncholden via Users list for the GNU Emacs text editor help-gnu-em= acs@gnu.org > > I want to determine whether emacs is using a light or dark background. Th= is could be set up by emacs itself > > or by a theme. Like this: (frame-parameter nil 'background-mode) This evaluates to either light or dark. Very neat compared to what I was p= laying with initially.