From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: stipple in menu? Date: 21 Apr 2002 23:20:03 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87sn5pm8vg.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <5xofgd17tw.fsf@kfs2.cua.dk> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1019398892 25623 127.0.0.1 (21 Apr 2002 14:21:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2002 14:21:32 +0000 (UTC) Cc: storm@cua.dk (Kim F. Storm), emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zIDc-0006fA-00 for ; Sun, 21 Apr 2002 16:21:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zIDr-0007zC-00 for ; Sun, 21 Apr 2002 16:21:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zIDQ-0004gN-00; Sun, 21 Apr 2002 10:21:20 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zICR-0004eD-00; Sun, 21 Apr 2002 10:20:19 -0400 Original-Received: from tc-2-163.kawasaki.gol.ne.jp ([203.216.25.163] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 16zICO-0005Ij-00; Sun, 21 Apr 2002 23:20:17 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 1320D307E; Sun, 21 Apr 2002 23:20:03 +0900 (JST) Original-To: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?=) System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 14 X-Abuse-Complaints: abuse@gol.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2934 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2934 Pavel@Janik.cz (Pavel Jan=EDk) writes: > > Doesn't this assume that the menu bar is using black on light-gray. > > My menu bar is using white on (some dark shade of green) >=20 > My code is only proof of concept. The value gray60 is arbitrary (it looks > OK on my screen). Can you propose the reasonable default? Try using x_alloc_lighter_color (in xterm.c), with DELTA > 1 if fg < bg, and DELTA < 1 if fg > bg. -Miles --=20 "I distrust a research person who is always obviously busy on a task." --Robert Frosch, VP, GM Research