mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-31 07:53:35 +00:00
Merge branch 'master' into tableview
This commit is contained in:
@@ -46,6 +46,11 @@ var cachedBlackColor,
|
||||
cachedLightGrayColor,
|
||||
cachedDarkGrayColor,
|
||||
cachedWhiteColor,
|
||||
cachedBrownColor,
|
||||
cachedCyanColor,
|
||||
cachedMagentaColor,
|
||||
cachedOrangeColor,
|
||||
cachedPurpleColor,
|
||||
cachedShadowColor,
|
||||
cachedClearColor;
|
||||
|
||||
@@ -291,6 +296,61 @@ var cachedBlackColor,
|
||||
return cachedYellowColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a brown color object (RGBA=[0.6, 0.4, 0.2, 1.0])
|
||||
*/
|
||||
+ (CPColor)brownColor
|
||||
{
|
||||
if (!cachedBrownColor)
|
||||
cachedBrownColor = [[CPColor alloc] _initWithRGBA:[0.6, 0.4, 0.2, 1.0]];
|
||||
|
||||
return cachedBrownColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a cyan color object (RGBA=[0.0, 1.0, 1.0, 1.0])
|
||||
*/
|
||||
+ (CPColor)cyanColor
|
||||
{
|
||||
if (!cachedCyanColor)
|
||||
cachedCyanColor = [[CPColor alloc] _initWithRGBA:[0.0, 1.0, 1.0, 1.0]];
|
||||
|
||||
return cachedCyanColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a magenta color object (RGBA=[1.0, 0.0, 1.0, 1.0])
|
||||
*/
|
||||
+ (CPColor)magentaColor
|
||||
{
|
||||
if (!cachedMagentaColor)
|
||||
cachedMagentaColor = [[CPColor alloc] _initWithRGBA:[1.0, 0.0, 1.0, 1.0]];
|
||||
|
||||
return cachedMagentaColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a orange color object (RGBA=[1.0, 0.5, 0.0, 1.0])
|
||||
*/
|
||||
+ (CPColor)orangeColor
|
||||
{
|
||||
if (!cachedOrangeColor)
|
||||
cachedOrangeColor = [[CPColor alloc] _initWithRGBA:[1.0, 0.5, 0.0, 1.0]];
|
||||
|
||||
return cachedOrangeColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a purple color object (RGBA=[0.5, 0.0, 0.5, 1.0])
|
||||
*/
|
||||
+ (CPColor)purpleColor
|
||||
{
|
||||
if (!cachedPurpleColor)
|
||||
cachedPurpleColor = [[CPColor alloc] _initWithRGBA:[0.5, 0.0, 0.5, 1.0]];
|
||||
|
||||
return cachedPurpleColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns a shadow looking color (RGBA=[0.0, 0.0, 0.0, 0.33])
|
||||
*/
|
||||
|
||||
@@ -1234,10 +1234,10 @@ CPTexturedBackgroundWindowMask
|
||||
var deviation = MIN(_mouseEnteredStack.length, mouseEnteredStack.length);
|
||||
|
||||
while (deviation--)
|
||||
if (_mouseEnteredStack[deviation] !== mouseEnteredStack[deviation])
|
||||
if (_mouseEnteredStack[deviation] === mouseEnteredStack[deviation])
|
||||
break;
|
||||
|
||||
var index = deviation,
|
||||
var index = deviation + 1,
|
||||
count = _mouseEnteredStack.length;
|
||||
|
||||
if (index < count)
|
||||
@@ -1248,7 +1248,7 @@ CPTexturedBackgroundWindowMask
|
||||
[_mouseEnteredStack[index] mouseExited:event];
|
||||
}
|
||||
|
||||
index = deviation;
|
||||
index = deviation + 1;
|
||||
count = mouseEnteredStack.length;
|
||||
|
||||
if (index < count)
|
||||
|
||||
Reference in New Issue
Block a user