discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScroller and borders


From: Jeff Teunissen
Subject: Re: NSScroller and borders
Date: Wed, 19 Feb 2003 09:56:00 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9

Adam Fedor wrote:


Jeff Teunissen wrote:


Anyway, this post is to bring up the subject of NSScrollView's default border type. From my examimations, OPENSTEP's NSScrollView has no border by default, while GNUstep's defaults to having a bezelled border. Besides being consistent with OPENSTEP, I think that it's a good idea in general for scrollviews to be unadorned by default, and if wanted it should be set.

gnustep-gui itself will not look different if the default is changed, but there is a small problem with a few apps that don't explicitly set their border type but obviously want one (chiefly Gorm [though I have a patch for this] and GNUMail, though there are others). They look a little bit ugly until they have been patched.


I suppose it would be a good idea to change this before I make the next release, otherwise it could be a over a month before it's put in. People will have plenty of time before the next stable gui release (about a month from now) to update their apps.

Do you have a patch for it?

Easy. gui/Source/NSScrollView.m, change line 144 from:

_borderType = NSBezelBorder;

to

_borderType = NSNoBorder;

I have a patch for Gorm, but my local changes also include user-interface modifications for a cleaner interface. I'll send a patch to the list once I've gotten the diffs sorted out.

--
| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]