From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Lucid menu faces Date: Wed, 20 Jul 2022 19:05:20 +0300 Message-ID: <83mtd3lqgv.fsf@gnu.org> References: <874jzbhm0z.fsf@elite.giraud> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8167"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 20 18:07:26 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 1oECEQ-0001vq-KP for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 18:07:26 +0200 Original-Received: from localhost ([::1]:51496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oECEP-0004vF-JA for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 12:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECCX-0004nj-Si for help-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:05:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECCX-00042B-AD for help-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:05:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jmdzJzkUFOj2Bc4zlBR4FJcukfHdxv9b8FO+x+WsgqE=; b=DhOZF3EkcKqC H3BpQPrCo4yU6IjbF31+be9kIUYemfBiW3VkjyCpWFkn4u+9OrCPW4LU/eswFPvzzZh+3hJCFVPrU k4cZPptuJ9vQOA4pX5DKLapLtfD6TQzf/BsGOEEJDthMKmedGCtm3gepnEFIk0VFFkTiRdHJc1euI /nCccMY4QNdZsELnqw1hHHrjqd32xmBLY5J7QpR91xbHrtYSpXIUOT7+M3p1+9whL7DlHyfg8Q9tv T35Yq/qNNiJ9btaYhy9cj2sljx7vHKFijlHGjiwTcBy4XpmFtZZB32KeDO3Yalkr24aHC9bFFM/V5 YC1bWfUgJC4HhwfTkO0ypg==; Original-Received: from [87.69.77.57] (port=1907 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECCW-0007Lu-PF for help-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:05:29 -0400 In-Reply-To: <874jzbhm0z.fsf@elite.giraud> (message from Manuel Giraud on Wed, 20 Jul 2022 16:54:52 +0200) 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:138542 Archived-At: > From: Manuel Giraud > Date: Wed, 20 Jul 2022 16:54:52 +0200 > > Hi, > > The bug found by Colin earlier led me to the following question: how > hard would it be to have the Lucid menu rebuilt from elisp code? > > As it is, if I do this: > --8<---------------cut here---------------start------------->8--- > (let ((class '((class color) (min-colors 89)))) > (custom-theme-set-faces > 'user > `(menu ((,class (:family "Iosevka" :foregroud "red" :background "blue")))))) > --8<---------------cut here---------------end--------------->8--- > > only the background color of the menu is changed. Not the family font > nor the foreground color. Isn't it true that the appearance of toolkit menus can be fully controlled only through X resources? Toolkits are not part of Emacs, so they don't abide by our Lisp trickery. We are all spoiled rotten by Emacs letting us control everything via Lisp objects and properties, but the truth is that it only works because Emacs has code to make it work. Toolkits don't: they have no idea what is a 'face' in its Emacs interpretation.