# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1602785672 0 # Node ID 214e1ea303e2d92bba2463bbe4ea6ad7cb639b0c # Parent 7331f3c13fd7ac2d41aeda7f1d5cfdc253e86452 Mac: Same foreground/text color change for the tree widge. diff -r 7331f3c13fd7 -r 214e1ea303e2 mac/dw.m --- a/mac/dw.m Thu Oct 15 18:01:15 2020 +0000 +++ b/mac/dw.m Thu Oct 15 18:14:32 2020 +0000 @@ -3174,8 +3174,17 @@ icon = nil; if(view) { - [[view textField] setStringValue: text]; - [[view imageView] setImage:icon]; + NSTextField *tf = [view textField]; + NSImageView *iv = [view imageView]; + + if(tf) + { + [tf setStringValue: text]; + if(fgcolor) + [tf setTextColor:fgcolor]; + } + if(iv) + [iv setImage:icon]; } else view = _dw_table_cell_view_new(icon, text);