Am 10.11.2015 um 15:21 schrieb Riccardo Mottola: > Hi, > > Richard coded a fine extension to our themeing: given the Bundle > Identifier, one can supply alternatives icon, in specific the > Application Icon itself can be changed. > I tried and it works fine inside an App: the "alternative" icon gets > shown both in the Info panel as well as in the Dock Tile for windowmaker. > > However, GWorkspace doesn't pick up the "themed" icon. I want to change > that. > > I am actually trying to understand where the App icon gets found. > > in FSNodeRepIcon we have - (NSImage *)iconOfSize:(int)size > forNode:(FSNode *)nod > > and this will call > > baseIcon = [ws iconForFile: nodepath] > > ws is > > ws = [NSWorkspace sharedWorkspace]; > > > I wonder if NSWorkspace should become in this case theme aware or if I > should change GWorkspace (how?). I think the former is better.
What you need to make theme aware is the NSBundle method pathForImageResource:, which is what NSWorkspace uses internally. Fred _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
