From: Richard K. <ric...@us...> - 2005-07-20 18:51:36
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9249 Modified Files: ASTheme.as Log Message: playing with the first responder highlight Index: ASTheme.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASTheme.as,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ASTheme.as 20 Jul 2005 18:07:10 -0000 1.20 --- ASTheme.as 20 Jul 2005 18:51:25 -0000 1.21 *************** *** 54,58 **** */ private function ASTheme() { ! m_firstResponderColor = new NSColor(0xC55660); } --- 54,58 ---- */ private function ASTheme() { ! m_firstResponderColor = new NSColor(0x3333dd); } *************** *** 104,108 **** public function drawFirstResponderWithRectInView(rect:NSRect, view:NSView) { ! ASDraw.outlineRectWithRect(view.mcBounds(), rect, [firstResponderColor().value]); } --- 104,122 ---- public function drawFirstResponderWithRectInView(rect:NSRect, view:NSView) { ! var mc = view.mcBounds(); ! var x = rect.origin.x+1; ! var y = rect.origin.y+1; ! var width = rect.size.width-3; ! var height = rect.size.height-3; ! var color = firstResponderColor().value; ! ! mc.lineStyle(3, color, 30); ! mc.moveTo(x, y); ! mc.lineTo(x+width, y); ! mc.lineTo(x+width, y+height); ! mc.lineTo(x, y+height); ! mc.lineTo(x, y); ! ! //ASDraw.outlineRectWithRect(view.mcBounds(), rect, [firstResponderColor().value]); } |