all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Lucid menu faces
Date: Wed, 20 Jul 2022 19:05:20 +0300	[thread overview]
Message-ID: <83mtd3lqgv.fsf@gnu.org> (raw)
In-Reply-To: <874jzbhm0z.fsf@elite.giraud> (message from Manuel Giraud on Wed,  20 Jul 2022 16:54:52 +0200)

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> 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.



  reply	other threads:[~2022-07-20 16:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20 14:54 Lucid menu faces Manuel Giraud
2022-07-20 16:05 ` Eli Zaretskii [this message]
2022-07-21  1:21   ` Po Lu
2022-07-21 13:23   ` Manuel Giraud
2022-07-21 13:27     ` Po Lu
2022-07-21 16:15       ` Manuel Giraud
2022-07-22  1:04         ` Po Lu
2022-07-22  6:38           ` Manuel Giraud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83mtd3lqgv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.