Update of /cvsroot/actionstep/actionstep/src/org/actionstep
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32520
Modified Files:
ASTheme.as ASThemeProtocol.as ASFieldEditor.as
Log Message:
move first responder color to ASTheme
Index: ASThemeProtocol.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASThemeProtocol.as,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ASThemeProtocol.as 19 Jul 2005 22:13:17 -0000 1.11
--- ASThemeProtocol.as 20 Jul 2005 00:16:14 -0000 1.12
***************
*** 44,47 ****
--- 44,51 ----
interface org.actionstep.ASThemeProtocol
{
+ /**
+ * First responder color
+ */
+ public function firstResponderColor():NSColor;
/**
***************
*** 80,85 ****
public function drawBorderButtonDisabledWithRectInView(rect:NSRect, view:NSView);
public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView);
!
public function drawListWithRectInView(rect:NSRect, view:NSView);
--- 84,95 ----
public function drawBorderButtonDisabledWithRectInView(rect:NSRect, view:NSView);
+ /**
+ * Draws the border around the button when it has key focus
+ */
public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView);
!
! /**
! * Draws the the ASList background
! */
public function drawListWithRectInView(rect:NSRect, view:NSView);
Index: ASFieldEditor.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASFieldEditor.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** ASFieldEditor.as 19 Jul 2005 23:41:41 -0000 1.12
--- ASFieldEditor.as 20 Jul 2005 00:16:15 -0000 1.13
***************
*** 33,36 ****
--- 33,37 ----
import org.actionstep.NSNotificationCenter;
import org.actionstep.ASUtils;
+ import org.actionstep.ASTheme;
import org.actionstep.constants.NSTextMovement;
***************
*** 254,258 ****
m_textField.tabEnabled = false;
m_textField.border = true;
! m_textField.borderColor = 0xC55660;
var tform:TextFormat;
--- 255,259 ----
m_textField.tabEnabled = false;
m_textField.border = true;
! m_textField.borderColor = ASTheme.current().firstResponderColor().value;
var tform:TextFormat;
Index: ASTheme.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASTheme.as,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** ASTheme.as 19 Jul 2005 22:13:17 -0000 1.18
--- ASTheme.as 20 Jul 2005 00:16:14 -0000 1.19
***************
*** 48,51 ****
--- 48,52 ----
private static var g_current:ASThemeProtocol;
+ private var m_firstResponderColor:NSColor;
/**
***************
*** 53,56 ****
--- 54,58 ----
*/
private function ASTheme() {
+ m_firstResponderColor = new NSColor(0xC55660);
}
***************
*** 96,102 ****
drawBorderButtonDown(view.mcBounds(), rect);
}
public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView) {
! ASDraw.outlineRectWithRect(view.mcBounds(), rect, [0xC55660]);
}
--- 98,108 ----
drawBorderButtonDown(view.mcBounds(), rect);
}
+
+ public function firstResponderColor():NSColor {
+ return m_firstResponderColor;
+ }
public function drawFirstResponderButtonWithRectInView(rect:NSRect, view:NSView) {
! ASDraw.outlineRectWithRect(view.mcBounds(), rect, [firstResponderColor().value]);
}
|