CPCursor will now look in the theme to get system cursors

This commit is contained in:
Antoine Mercadal committed 2013-01-10 11:14:59 -08:00
1 parent 35e29a0615
commit 844ed59dd8
1 file changed
+5 -1
+5 -1
View File
@@ -159,7 +159,11 @@ var currentCursor = nil,
var cssString;
if (doesHaveImage)
cssString = [CPString stringWithFormat:@"url(%@/CPCursor/%@.cur), %@", [[CPBundle bundleForClass:self] resourcePath], cursorName, aString];
{
var themeResourcePath = [[CPApp themeBlend]._bundle resourcePath];
cssString = [CPString stringWithFormat:@"url(%@/cursors/%@.cur), %@", themeResourcePath, cursorName, aString];
}
else
{
// IE <= 8 does not support some cursors, map them to supported cursors