On 24.11.2013 12:54, David Chisnall wrote: > We still have some issues with theming though. In the app I demoed, > I have some quite ugly code for selecting a shade of green that is > visible on a scroll view. The default theme has a dark background, > Nesedah and Narcissus have a white background, so the default > [NSColor greenColor], which is very bright, is visible on the default > theme but completely invisible with themes. It would be nice to have > a simple standard way of getting default NSColor values that worked > on the themes. I wonder if there's any code that depends on > greenColor actually being 0,ff,0 - if not, then just having the theme > define greenColor (and redColor and so on) as darker shades would > probably be sensible.
I don't think redefining greenColor is the way to go. What you could use is GSTheme -colorNamed:state:, but for that you would need to have the theme know about your specific requirements. It is not very likely that a theme will provide a colour named "colourThatIsVisibleWhenUsedInAScrollView" :-) _______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep