From: Richard K. <ric...@us...> - 2005-07-20 22:33:28
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1666 Modified Files: NSButtonCell.as NSTextFieldCell.as Log Message: change highlighting for first responder Index: NSButtonCell.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSButtonCell.as,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** NSButtonCell.as 20 Jul 2005 18:07:11 -0000 1.25 --- NSButtonCell.as 20 Jul 2005 22:33:16 -0000 1.26 *************** *** 660,664 **** } if (m_showsFirstResponder) { ! ASTheme.current().drawFirstResponderWithRectInView(cellFrame, inView); } } --- 660,668 ---- } if (m_showsFirstResponder) { ! if (image != null) { ! ASTheme.current().drawFirstResponderWithRectInView(new NSRect(imageLocation.x-1, imageLocation.y-1, imageSize.width+2, imageSize.height+2), inView); ! } else { ! ASTheme.current().drawFirstResponderWithRectInView(cellFrame, inView); ! } } } Index: NSTextFieldCell.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSTextFieldCell.as,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** NSTextFieldCell.as 20 Jul 2005 18:07:11 -0000 1.19 --- NSTextFieldCell.as 20 Jul 2005 22:33:16 -0000 1.20 *************** *** 223,228 **** } ! tf._x = x; ! tf._y = y + (height - fontHeight)/2; tf._width = width-1; tf._height = fontHeight; --- 223,228 ---- } ! tf._x = x+(m_drawsBackground ? 3 : 0); ! tf._y = y + (m_drawsBackground ? (height - fontHeight)/2 : 0); tf._width = width-1; tf._height = fontHeight; |