Permalink
Browse files

Merge branch 'development'. Added support for gradients and images. A…

…dded modal for choosing global vs document section and choosing fill types.
  • Loading branch information...
2 parents 16531b8 + 36f037a commit acf4fe6f224421b45a0ee3651d1dda35f6e28d45 @andrewfiorillo committed Apr 27, 2017
View
@@ -1,30 +1,29 @@
# Sketch Palettes
-A Sketch plugin that lets you save and load colors into the color picker.
+A Sketch plugin for exporting and importing fill presets. It supports colors, gradients, and Pattern fills.
<img src="palettes.png" style="width: 100%; max-width:800px;" />
# Installation
-Move the Sketch Palettes plugin into your Plugins folder. You can get access to that folder by opening the Plugins menu, and choosing "Reveal Plugins Folder..."
-
+Move the Sketch Palettes plugin into your Plugins folder or double-click the .sketchplugin file.
# Usage
#### Saving Palettes
-You can save color palettes from either the Global Colors section of the color picker or from the Document Colors section. Selecting "Save Palette..." in either menu will save those colors as a .sketchpalette file to whatever location you choose.
+You can save palettes from either the Global presets section or from the Document presets section of the color picker. You can also select which of the available fill types you'd like to include. The plugin supports colors, gradients, and pattern fills. Saving will create a .sketchpalette file at whatever location you choose.
#### Loading Palettes
-You can load colors into either the Global Colors section of the color picker or into the Document Colors section. Selecting "Load Palette..." from either menu will prompt you to open a .sketchpalette file containing the colors you want to load. Colors will then be appended to the corresponding color picker section.
+Running the "Load Palette..." command in the plugin menu will allow you to choose a .sketchpalette file containg the presets you like to import. You can load palettes into either the Global presets section or into the Document presets section of the color picker. You can also select which of the available fill types you'd like to load. Fill presets will then be appended to the corresponding preset sections.
#### Removing Palettes
-Select "Clear Palette" to remove all colors from either the Global Colors section of the color picker or from the Document Colors section.
+Select "Clear Palette..." to remove fill presets from either the Global presets or Document presets section of the color picker. You can select which fill types you'd like to clear.
# Info & Feedback
-If you have any questions, find a bug, or have ideas for ways to improve the plugin, ping me on twitter: <a href="https://twitter.com/AndrewFiorillo" target="_blank">@andrewfiorillo</a>
+This plugin would not have been possible without the help of some other awesome people. <a href="https://github.com/alandickinson" target="_blank">Alan Dickinson</a> was enormously helpful and implemented the long-standing feature request to support gradients, as well as some other nice enhancements and bug fixes. <a href="https://twitter.com/wbobeirne" target="_blank">William O'Beirne</a> helped with some of the trickier parts earlier on, like making sense of the <a href="http://stevenygard.com/projects/class-dump/" target="_blank">class-dump</a> of Sketch, to figure out how to use undocumented Sketch functionality. And <a href="https://github.com/bomberstudios" target="_blank">Ale Muñoz</a> lent a hand fixing bugs here and there.
-Also, big thanks to <a href="https://twitter.com/wbobeirne" target="_blank">William O'Beirne</a> for helping me with some of the trickier parts, like making sense of the <a href="http://stevenygard.com/projects/class-dump/" target="_blank">class-dump</a> of Sketch, to figure out how to use undocumented Sketch functionality.
+If you have any questions, find a bug, or have ideas for ways to improve the plugin, ping me on twitter: <a href="https://twitter.com/AndrewFiorillo" target="_blank">@andrewfiorillo</a>
@@ -3,79 +3,38 @@
"description": "Plugin to load palettes into color picker",
"author": "Andrew Fiorillo",
"homepage": "http://github.com/andrewfiorillo/sketch-palettes",
- "version": "1.5",
+ "version": "2.0",
"identifier": "com.andrewfiorillo.sketch.sketch-palettes",
"compatibleVersion": "39",
- "bundleVersion": "1.5",
+ "bundleVersion": "2.0",
"commands": [
-
-
{
"name": "Load Palette...",
- "identifier": "loadDocumentPalette",
+ "identifier": "loadPalette",
"shortcut": "",
"script": "sketchPalettes.js",
- "handler": "loadDocumentPalette"
+ "handler": "loadPalette"
},
{
"name": "Save Palette...",
- "identifier": "saveDocumentPalette",
+ "identifier": "savePalette",
"shortcut": "",
"script": "sketchPalettes.js",
- "handler": "saveDocumentPalette"
+ "handler": "savePalette"
},
{
- "name": "Clear Palette",
- "identifier": "clearDocumentPalette",
+ "name": "Clear Palette...",
+ "identifier": "clearPalette",
"shortcut": "",
"script": "sketchPalettes.js",
- "handler": "clearDocumentPalette"
- },
-
-
-
- {
- "name": "Load Palette...",
- "identifier": "loadGlobalPalette",
- "shortcut": "",
- "script": "sketchPalettes.js",
- "handler": "loadGlobalPalette"
- },
- {
- "name": "Save Palette...",
- "identifier": "saveGlobalPalette",
- "shortcut": "",
- "script": "sketchPalettes.js",
- "handler": "saveGlobalPalette"
- },
- {
- "name": "Clear Palette",
- "identifier": "clearGlobalPalette",
- "shortcut": "",
- "script": "sketchPalettes.js",
- "handler": "clearGlobalPalette"
+ "handler": "clearPalette"
}
-
-
],
"menu": {
"items": [
- {
- "title": "Document Colors",
- "items": [
- "loadDocumentPalette",
- "saveDocumentPalette",
- "clearDocumentPalette"
- ],
- },
- {
- "title": "Global Colors",
- "items": [
- "loadGlobalPalette",
- "saveGlobalPalette",
- "clearGlobalPalette"
- ],
- }
+ "loadPalette",
+ "savePalette",
+ "clearPalette"
]
}
}
Oops, something went wrong.

0 comments on commit acf4fe6

Please sign in to comment.