From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Mon, 29 Sep 2003 19:11:06 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200309300011.h8U0B6021222@raven.dms.auburn.edu> 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> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064882026 6361 80.91.224.253 (30 Sep 2003 00:33:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2003 00:33:46 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 30 02:33:44 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 1A48SW-000573-00 for ; Tue, 30 Sep 2003 02:33:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A48SV-0003jP-00 for ; Tue, 30 Sep 2003 02:33:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A48Pa-0000ub-Hw for emacs-devel@quimby.gnus.org; Mon, 29 Sep 2003 20:30:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A48M4-0008OQ-Is for emacs-devel@gnu.org; Mon, 29 Sep 2003 20:27:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A48GX-0006pL-JF for emacs-devel@gnu.org; Mon, 29 Sep 2003 20:21:52 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A48AL-0005rB-Bz; Mon, 29 Sep 2003 20:14:57 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id h8U0EpAJ010510; Mon, 29 Sep 2003 19:14:52 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h8U0B6021222; Mon, 29 Sep 2003 19:11:06 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Mon, 29 Sep 2003 15:31:57 -0400) 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:16784 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16784 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? Let us set :foreground to blue and :background to red in the scroll-bar face. What happens? 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? 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. Is this a bug or is the trough color "hard coded" to be grey? Is it possible to give the arrows a different color from the thumb using X resources and if so how do we allow the user to specify three colors using the scrollbar face? GTK: 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. If nothing else, to quote Jan: style "scroll" { 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. >>From the above we see: four different scroll bars, four entirely different behaviors. Unless somebody else knows a lot about GTK, we might have to wait a week until Jan is back to further discuss the GTK case. Does anybody know more about the Xaw3d and Motif scroll bars? Stefan? Sincerely, Luc.