My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 31: Enable SourceList color customization.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  kenneth.orr
Closed:  Jan 2009
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by stencyl, Dec 04, 2008
The app I am creating uses an iMovie-like color scheme ( which is Apple's
dark gray scheme (http://www.apple.com/ilife/imovie/). I'd like to use
SourceList, but without being able to customize the colors, I can't get
that done unless I modify the source, which I rather not do.

Providing methods or some hooks to customize all the colors on an instance
to instance basis would be a good idea, whether it be a set of functions or
a mini "color theme" class for the SourceList that you can pass in. I'll
leave that up to you to decide what route to go.
Comment 1 by kenneth.orr, Dec 05, 2008
Could you email me a screen shot of the iMovie SourceList? 

kenneth.orr@gmail.com
Status: Accepted
Labels: -Type-Defect Type-Enhancement
Comment 2 by kenneth.orr, Dec 05, 2008
(No comment was entered for this change.)
Owner: kenneth.orr
Comment 3 by kenneth.orr, Dec 05, 2008
How does a SourceListColorScheme sound? This would provide the following:

1) background color
2) font colors (selected font color, non-selected font color)
3) selected item gradient colors (top active color, bottom active color, top inactive color, bottom inactive color)
4) badge colors (active color, inactive color)

I would provide two themes in the API, the first of which would be the current color scheme. The second 
would be the iMovie color scheme. I'm not sure whether I'd allow user's to supply additional themes yet.

Any feedback is welcome.
Comment 4 by stencyl, Dec 05, 2008
Yep. That sounds great to me.

If you notice in the screenshot I sent you, the iMovie scrollbars are a different
color from the normal ones. I will attach what those look like here since I didn't
provide a shot that showed the full bars.

To be honest though, I think that the standard iApp scrollbars are a better fit for
iMovie and would be perfectly happy with them as they are. Less work for you too. ;)
Picture 1.png
174 KB   View   Download
Comment 5 by kenneth.orr, Jan 17, 2009
I have this implemented, though not yet checked in. I've attached a jar file that you can run from - try the 
following demo:

com.explodingpixels.macwidgets.DSourceListIMovie

SourceList and SourceListTreeUI now have a setSourceListColorScheme on them which allows you to change 
the skin of the SourceList. I've provided two skins: SourceListStandardColorScheme and 
SourceListDarkColorScheme.

I've also attached a screen shot of what the dark color scheme looks like.

Please let me know if this implementation suits your needs.
source_list_dark.png
29.6 KB   View   Download
mac_widgets.jar
311 KB   Download
Status: Started
Comment 6 by kenneth.orr, Jan 18, 2009
I've committed the changes. Note that the scroll bars skinning for this style the dark Source List is separate from 
this enhancement.
Status: Fixed
Comment 7 by stencyl, Jan 22, 2009
Looking slick. I will send you screenshots of the app via e-mail for you to peruse.
Sign in to add a comment

Hosted by Google Code