Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CG.sketchplugin/Contents/Sketch/Images/Flickr Keywords.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function onRun(context){
var fill = layer.style().fills().firstObject();
fill.setFillType(4);

fill.setImage(MSImageData.alloc().initWithImage_convertColorSpace(newImage, false));
fill.setImage(MSImageData.alloc().initWithImageConvertingColorSpace(newImage));
fill.setPatternFillType(1);

}
Expand Down
2 changes: 1 addition & 1 deletion CG.sketchplugin/Contents/Sketch/Images/IG Keywords.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function process(selection, data, doc) {
var fill = layer.style().fills().firstObject();
fill.setFillType(4);

fill.setImage(MSImageData.alloc().initWithImage_convertColorSpace(newImage, false));
fill.setImage(MSImageData.alloc().initWithImageConvertingColorSpace(newImage));
fill.setPatternFillType(1);

}
Expand Down
2 changes: 1 addition & 1 deletion CG.sketchplugin/Contents/Sketch/js/loadImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var loadImages = function(context, dataPath, groupName, pictureName){
log(image)
var fill = layer.style().fills().firstObject();
fill.setFillType(4);
fill.setImage(MSImageData.alloc().initWithImage_convertColorSpace(image, false));
fill.setImage(MSImageData.alloc().initWithImageConvertingColorSpace(image));
fill.setPatternFillType(1);
}
}
Expand Down
2 changes: 1 addition & 1 deletion CG.sketchplugin/Contents/Sketch/js/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function replaceWithImages(images, context) {
if([layer class] == MSShapeGroup){
var fill = layer.style().fills().firstObject();
fill.setFillType(4);
fill.setImage(MSImageData.alloc().initWithImage_convertColorSpace(image, false));
fill.setImage(MSImageData.alloc().initWithImageConvertingColorSpace(image));
fill.setPatternFillType(1);
}
}
Expand Down