# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1342127881 0 # Node ID bed4320cb0ced3d1c802fa5ae40a55cbe88e3324 # Parent 2396655d43f1cf11b958f263cfdc134eafe13b02 Seems the cool looking bezeled look to the text field has changed in Mac 10.8. So for now, only use the bezeled look for 10.6 through 10.7. Also removed a duplicate call to textfield setDrawsBackground:NO]. diff -r 2396655d43f1 -r bed4320cb0ce mac/dw.m --- a/mac/dw.m Thu Jul 12 20:29:12 2012 +0000 +++ b/mac/dw.m Thu Jul 12 21:18:01 2012 +0000 @@ -5318,13 +5318,12 @@ { NSTextField *textfield = dw_text_new(text, cid); [textfield setBordered:YES]; - if(DWOSMinor > 5) + if(DWOSMinor > 5 && DWOSMinor < 8) { [textfield setBezeled:YES]; [textfield setBezelStyle:NSTextFieldSquareBezel]; } [textfield setBackgroundColor:[NSColor clearColor]]; - [textfield setDrawsBackground:NO]; [[textfield cell] setVCenter:YES]; return textfield; }