From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Sat, 04 Oct 2003 20:36:51 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F7F1343.2020208@swipnet.se> References: <87fzijz4th.fsf@raven.i.defaultvalue.org> <200309262123.h8QLNNi07638@raven.dms.auburn.edu> <200309272155.h8RLttv09524@raven.dms.auburn.edu> <200309281642.h8SGgxc11119@raven.dms.auburn.edu> <200309281801.h8SI1gV11332@raven.dms.auburn.edu> <200309300011.h8U0B6021222@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065292849 21745 80.91.224.253 (4 Oct 2003 18:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2003 18:40:49 +0000 (UTC) Cc: bob@rattlesnake.com, Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Oct 04 20:40:46 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A5rKg-0000AS-00 for ; Sat, 04 Oct 2003 20:40:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A5rKg-0007KI-01 for ; Sat, 04 Oct 2003 20:40:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A5rJ4-00035i-NS for emacs-devel@quimby.gnus.org; Sat, 04 Oct 2003 14:39:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A5rIW-0002rM-Op for emacs-devel@gnu.org; Sat, 04 Oct 2003 14:38:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A5rHz-0002dn-FY for emacs-devel@gnu.org; Sat, 04 Oct 2003 14:38:30 -0400 Original-Received: from [193.201.16.94] (helo=stubby.bodenonline.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A5rHT-0002Pi-4I; Sat, 04 Oct 2003 14:37:27 -0400 Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id h94JLZmh026144; Sat, 4 Oct 2003 21:21:35 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030921 X-Accept-Language: en-us, en Original-To: rms@gnu.org In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16930 Richard Stallman wrote: > This would be documenting the bug. That would be an improovement, but > what we really should do if at all feasible is fix the bug. This face > should have its special effect for all toolkits. > > The _same_ special effect? > > Yes, to the extent it makes sense. > > Native scrollbar: > > Has a thumb and a trough. Thumb is blue, trough is red. Wonderful. > > Xaw3d scrollbar: The default scroll bar. > > Has a thumb and a trough. Both are red. :foreground does not seem to > have any effect on anything. > > Is this a bug or is it quite simply not possible to give both > different colors? > > That's a bug. > > Motif: > > Has a thumb, a trough and two arrows. Thumb and arrows are red. Color > of trough is still the same old grey. :foreground does not seem to > have any effect on anything. > > That's a bug. This is possible to fix in Emacs. The trough can be set in Motif. > > Only one of the four I did not try out myself, but Bob tried it and > found that it had no effect whatsoever. things do not seem easy, > however. > > That's a bug. Yes, but where? It may be a bug that Emacs gives the impression that this can be changed, or it may be a limitation in the theme used, for not letting the user change things. It can also be a limitation in GTK itself. Some customizations possible to do in GTK can lead to things being drawn incorrectly, this happens for scrollbars with pixmaps. Maybe we should go the "official" GTK way and tell people to use themes for cuatomizations? > > { > fg[NORMAL] = "red" # The arrow color. > bg[NORMAL] = "yellow" # The thumb and background around the arrow. > bg[ACTIVE] = "blue" # The trough color. > bg[PRELIGHT] = "white" # The thumb color when the mouse is over it. > } > > Those are four colors to customize. If we want full customizability > through Custom, we would have to allow the user to specify four > colors. > > Maybe we want two or three faces to specify all these colors. What sould those faces mean in other toolkits? This still will not change the fact that pixmap based themes may not use these colours. Jan D.