Skip to content

Commit

Permalink
Merge pull request #7 from t32k/v3.8
Browse files Browse the repository at this point in the history
Compatible with Sketch v3.8
  • Loading branch information
t32k committed Jun 3, 2016
2 parents 1777f27 + b76fec5 commit 2c4331c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
![Material Design Color Palette](material-design-color-palette.sketchplugin/Contents/Resources/cover.png)
![Material Design Color Palette](http://i.imgur.com/bXF7WZa.png)

> Sketch 3 plugin generate a palette of Google Material Design color for you.

## Demo

![Demo](material-design-color-palette.sketchplugin/Contents/Resources/demo.gif)
![Demo](http://i.imgur.com/MMkfgL0.gif)


## Shortcuts
Expand All @@ -19,7 +19,7 @@

## Installation

![Sketch Toolbox.app](material-design-color-palette.sketchplugin/Contents/Resources/sketchtoolbox.png)
![Sketch Toolbox.app](http://i.imgur.com/cupsSvX.png)

You can find this plugin on [Sketch Toolbox.app](http://sketchtoolbox.com/), so you just search and download it.

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function addHuePalette(groupIndex, hexColor, isWhite, valueIndex) {
x: 0, y: 0,
width: 200, height: 50
});
var colorBlockFill = colorBlock.style().fills().addNewStylePart();
var colorBlockFill = colorBlock.style().addStylePartOfType(0);
colorBlockFill.color = MSColor.colorWithSVGString(hexColor);

var textColor = (isWhite === 1) ? '#FFF' : '#222';
Expand Down Expand Up @@ -55,7 +55,7 @@ function addValuePalette(groupIndex, hexColor, isWhite, colorIndex) {
x: 0, y: 0,
width: 50, height: 50
});
var colorBlockFill = colorBlock.style().fills().addNewStylePart();
var colorBlockFill = colorBlock.style().addStylePartOfType(0);
colorBlockFill.color = MSColor.colorWithSVGString(hexColor);

var textColor = (isWhite === 1) ? '#FFF' : '#222';
Expand Down Expand Up @@ -103,7 +103,7 @@ function addSwatch(hexColor, index, isWhite) {
x: 0, y: 0,
width: 100, height: 100
});
var colorBlockFill = colorBlock.style().fills().addNewStylePart();
var colorBlockFill = colorBlock.style().addStylePartOfType(0);
colorBlockFill.color = MSColor.colorWithSVGString(hexColor);

var textColor = (isWhite === 1) ? '#FFF' : '#222';
Expand Down

0 comments on commit 2c4331c

Please sign in to comment.