Skip to content

Commit

Permalink
Adjust default rotation of the colorwheel and update plugin icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JarnoLeConte committed Nov 3, 2019
1 parent 05ca842 commit 63b2afc
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 4 deletions.
Binary file modified Release/me.hckr.findertags.streamDeckPlugin
Binary file not shown.
Binary file modified Sources/Resources/FinderTags.sketch
Binary file not shown.
7 changes: 4 additions & 3 deletions Sources/me.hckr.findertags.sdPlugin/color-wheel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const drawTagsOnCanvas = (tags, canvas, colorWheelImage) => {
ctx.drawImage(colorWheelImage, centerX - colorWheelImage.width/2, centerY - colorWheelImage.height/2);
}

const drawTag = (index, fillColor, strokeColor) => {
const a = (index / totalCount) * 2 * Math.PI - (0.5 * Math.PI);
const drawTag = (index, fillColor, strokeColor, lineDash = []) => {
const a = (index / totalCount) * 2 * Math.PI + (0.5 * Math.PI);
const x = centerX + centerRadius * Math.cos(a);
const y = centerY + centerRadius * Math.sin(a);
const r = 13;
Expand All @@ -38,13 +38,14 @@ const drawTagsOnCanvas = (tags, canvas, colorWheelImage) => {
ctx.lineWidth = 2

ctx.beginPath();
ctx.setLineDash(lineDash);
ctx.arc(x, y, r, 0, 2 * Math.PI);
if (strokeColor) ctx.stroke();
if (fillColor) ctx.fill();
}

// draw Custom tag
drawTag(0, null, "#98989B");
drawTag(0, null, "#98989B", [5, 5]);

// draw Color tags
enabledTags.forEach((tag, index) => {
Expand Down
Binary file modified Sources/me.hckr.findertags.sdPlugin/images/ColorWheelKey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Sources/me.hckr.findertags.sdPlugin/images/ColorWheelKey@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Sources/me.hckr.findertags.sdPlugin/images/PluginIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Sources/me.hckr.findertags.sdPlugin/images/PluginIcon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Sources/me.hckr.findertags.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"Name": "Finder Tags",
"Icon": "images/PluginIcon",
"URL": "https://github.com/JarnoLeConte/streamdeck-findertags",
"Version": "1.1.0",
"Version": "1.1.1",
"Category": "Finder Tags",
"CategoryIcon": "images/CategoryIcon",
"OS": [
Expand Down
Binary file modified screenshot-streamdeck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 63b2afc

Please sign in to comment.