# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1602784875 0 # Node ID 7331f3c13fd7ac2d41aeda7f1d5cfdc253e86452 # Parent 4cb258fb67292f0fe58b54c357e306fc4196f8ab Mac: Copy text color to the NSTabelCellView's text field from the container. diff -r 4cb258fb6729 -r 7331f3c13fd7 mac/dw.m --- a/mac/dw.m Thu Oct 15 04:45:11 2020 +0000 +++ b/mac/dw.m Thu Oct 15 18:01:15 2020 +0000 @@ -2641,9 +2641,17 @@ _dw_table_cell_view_layout(result); - /* Copy the alignment setting from the column */ + /* Copy the alignment setting from the column, + * and set the text color from the container. + */ if([result textField]) - [[result textField] setAlignment:align]; + { + NSTextField *tf = [result textField]; + + [tf setAlignment:align]; + if(fgcolor) + [tf setTextColor:fgcolor]; + } /* Return the result */ return result;