gnustep-dev
[Top][All Lists]
Advanced

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

Background colors in NSTableView/NSOutlineView/NSBrowser


From: Nicolas Roard
Subject: Background colors in NSTableView/NSOutlineView/NSBrowser
Date: Fri, 20 Aug 2004 19:32:25 +0100

Hi,

I needed to set the color of thoses widgets separately (ie, using another color than just controlBackgroundColor)

I added 4 colors to NSColor system list and patched the widgets to use them.

the colors arerowTextColor, selectedRowTextColor, rowBackgroundColor and selectedRowBackgroundColor.
Actually only the *BackgroundColor are used.

Here is the patches:

<diff-NSBrowser.m><diff-NSBrowserCell.m><diff-NSColor.h><diff-NSColor.m><diff-NSTableView.m>

Though, it could perhaps be interesting to modify NSColor in order to put theses colors in the "color extensions list"
used by NSToolbar.

--
Nicolas Roard

Attachment: diff-NSBrowser.m
Description: Text document

Attachment: diff-NSBrowserCell.m
Description: Text document

Attachment: diff-NSColor.h
Description: Text document

Attachment: diff-NSColor.m
Description: Text document

Attachment: diff-NSTableView.m
Description: Text document


reply via email to

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