christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Enable SourceList color customization. #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by sten...@gmail.com on 4 Dec 2008 at 5:51

GoogleCodeExporter commented 8 years ago
Could you email me a screen shot of the iMovie SourceList? 

kenneth.orr@gmail.com

Original comment by kenneth....@gmail.com on 5 Dec 2008 at 12:32

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 5 Dec 2008 at 12:36

GoogleCodeExporter commented 8 years ago
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.

Original comment by kenneth....@gmail.com on 5 Dec 2008 at 12:44

GoogleCodeExporter commented 8 years ago
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. ;)

Original comment by sten...@gmail.com on 5 Dec 2008 at 5:53

Attachments:

GoogleCodeExporter commented 8 years ago
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.

Original comment by kenneth....@gmail.com on 17 Jan 2009 at 6:55

Attachments:

GoogleCodeExporter commented 8 years ago
I've committed the changes. Note that the scroll bars skinning for this style 
the dark Source List is separate from 
this enhancement.

Original comment by kenneth....@gmail.com on 18 Jan 2009 at 6:27

GoogleCodeExporter commented 8 years ago
Looking slick. I will send you screenshots of the app via e-mail for you to 
peruse.

Original comment by sten...@gmail.com on 23 Jan 2009 at 6:37