diff --git a/Prism.sketchplugin/Contents/Sketch/build/Palette.js b/Prism.sketchplugin/Contents/Sketch/build/Palette.js index 2b744b6..6b72995 100644 --- a/Prism.sketchplugin/Contents/Sketch/build/Palette.js +++ b/Prism.sketchplugin/Contents/Sketch/build/Palette.js @@ -17,7 +17,7 @@ Palette = (function(superClass) { Palette.prototype.colorClassifier = new ColorClassifier(); function Palette(context, layer) { - var children, i, j, ref; + var children, color, colorsArray, documentColorAssets, i, j, ref; if (layer == null) { layer = null; } @@ -32,7 +32,12 @@ Palette = (function(superClass) { } } if (this.context.document) { - this.colors = this.context.document.documentData().assets().colors(); + documentColorAssets = this.context.document.documentData().assets().colorAssets().objectEnumerator(); + colorsArray = NSMutableArray.alloc().init(); + while (color = documentColorAssets.nextObject()) { + colorsArray.addObject(color.color()); + } + this.colors = colorsArray; } } diff --git a/Prism.sketchplugin/Contents/Sketch/manifest.json b/Prism.sketchplugin/Contents/Sketch/manifest.json index b0448d2..6c31c56 100644 --- a/Prism.sketchplugin/Contents/Sketch/manifest.json +++ b/Prism.sketchplugin/Contents/Sketch/manifest.json @@ -3,10 +3,10 @@ "description": "Creates a beautiful artboard with all the colors in your 'Document Colors' with its respective color label in a variety of formats.", "author": "Lalo Mrtnz & Adrián Rubio", "homepage": "https://github.com/ment-mx/Prism", - "version": "1.0.7", + "version": "1.0.8", "identifier": "com.ment.sketch.prism", "appcast": "https://raw.githubusercontent.com/ment-mx/Prism/master/appcast.xml", - "compatibleVersion": "41", + "compatibleVersion": "53", "bundleVersion": "2.0", "commands" : [ { diff --git a/Prism.sketchplugin/Contents/Sketch/src/Palette.coffee b/Prism.sketchplugin/Contents/Sketch/src/Palette.coffee index 275b11f..ce853a7 100644 --- a/Prism.sketchplugin/Contents/Sketch/src/Palette.coffee +++ b/Prism.sketchplugin/Contents/Sketch/src/Palette.coffee @@ -20,7 +20,11 @@ class Palette extends Base @artboard = layer if @context.document - @colors = @context.document.documentData().assets().colors() + documentColorAssets = @context.document.documentData().assets().colorAssets().objectEnumerator() + colorsArray = NSMutableArray.alloc().init() + while color = documentColorAssets.nextObject() + colorsArray.addObject(color.color()) + @colors = colorsArray regenerate: -> array = @getColorsDictionaries().map (colorDictionary) ->