diff --git a/misc/icons/SVG/swap-colors-sq.svg b/misc/icons/SVG/swap-colors-sq.svg new file mode 100644 index 0000000..6dfafcb --- /dev/null +++ b/misc/icons/SVG/swap-colors-sq.svg @@ -0,0 +1,72 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/misc/icons/SVG/swap-colors.svg b/misc/icons/SVG/swap-colors.svg new file mode 100644 index 0000000..fd65298 --- /dev/null +++ b/misc/icons/SVG/swap-colors.svg @@ -0,0 +1,97 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/misc/icons/swap-colors-tests/swap-colors-square.png b/misc/icons/swap-colors-tests/swap-colors-square.png new file mode 100644 index 0000000..59c5c56 Binary files /dev/null and b/misc/icons/swap-colors-tests/swap-colors-square.png differ diff --git a/misc/icons/swap-colors-tests/swap-colors-twirl-2.png b/misc/icons/swap-colors-tests/swap-colors-twirl-2.png new file mode 100644 index 0000000..6959be5 Binary files /dev/null and b/misc/icons/swap-colors-tests/swap-colors-twirl-2.png differ diff --git a/misc/icons/swap-colors-tests/swap-colors-twirl-3.png b/misc/icons/swap-colors-tests/swap-colors-twirl-3.png new file mode 100644 index 0000000..b0ab7aa Binary files /dev/null and b/misc/icons/swap-colors-tests/swap-colors-twirl-3.png differ diff --git a/misc/icons/swap-colors-tests/swap-colors-twirl.png b/misc/icons/swap-colors-tests/swap-colors-twirl.png new file mode 100644 index 0000000..0b538e3 Binary files /dev/null and b/misc/icons/swap-colors-tests/swap-colors-twirl.png differ diff --git a/misc/icons/swap-colors-tests/swap.png b/misc/icons/swap-colors-tests/swap.png new file mode 100644 index 0000000..8071465 Binary files /dev/null and b/misc/icons/swap-colors-tests/swap.png differ diff --git a/src/css/tools.css b/src/css/tools.css index 4fe7d55..2e48805 100644 --- a/src/css/tools.css +++ b/src/css/tools.css @@ -97,6 +97,12 @@ background-size: 23px 23px; } +.tool-icon.tool-colorswap { + background-image: url(../img/tools/swap-colors-twirl-3.png); + background-position: 6px 6px; + background-size: 36px 36px; +} + /* * Tool cursors: */ diff --git a/src/img/tools/swap-colors.png b/src/img/tools/swap-colors.png new file mode 100644 index 0000000..b0ab7aa Binary files /dev/null and b/src/img/tools/swap-colors.png differ diff --git a/src/js/controller/ToolController.js b/src/js/controller/ToolController.js index 6b895ff..0193d27 100644 --- a/src/js/controller/ToolController.js +++ b/src/js/controller/ToolController.js @@ -9,8 +9,9 @@ this.tools = [ toDescriptor('simplePen', 'P', new pskl.drawingtools.SimplePen()), toDescriptor('verticalMirrorPen', 'V', new pskl.drawingtools.VerticalMirrorPen()), - toDescriptor('eraser', 'E', new pskl.drawingtools.Eraser()), toDescriptor('paintBucket', 'B', new pskl.drawingtools.PaintBucket()), + toDescriptor('colorSwap', 'F', new pskl.drawingtools.ColorSwap()), + toDescriptor('eraser', 'E', new pskl.drawingtools.Eraser()), toDescriptor('stroke', 'L', new pskl.drawingtools.Stroke()), toDescriptor('rectangle', 'R', new pskl.drawingtools.Rectangle()), toDescriptor('circle', 'C', new pskl.drawingtools.Circle()), @@ -18,8 +19,7 @@ toDescriptor('rectangleSelect', 'S', new pskl.drawingtools.RectangleSelect()), toDescriptor('shapeSelect', 'Z', new pskl.drawingtools.ShapeSelect()), toDescriptor('lighten', 'U', new pskl.drawingtools.Lighten()), - toDescriptor('colorPicker', 'O', new pskl.drawingtools.ColorPicker()), - toDescriptor('colorSwap', 'F', new pskl.drawingtools.ColorSwap()) + toDescriptor('colorPicker', 'O', new pskl.drawingtools.ColorPicker()) ]; this.currentSelectedTool = this.tools[0]; diff --git a/src/js/drawingtools/VerticalMirrorPen.js b/src/js/drawingtools/VerticalMirrorPen.js index e2e5e39..9738630 100644 --- a/src/js/drawingtools/VerticalMirrorPen.js +++ b/src/js/drawingtools/VerticalMirrorPen.js @@ -5,7 +5,7 @@ this.superclass.constructor.call(this); this.toolId = "tool-vertical-mirror-pen"; - this.helpText = "Vertical Mirror pen tool (hold CTRL for Horizontal, hold SHIFT for both)"; + this.helpText = "Vertical Mirror pen (CTRL for Horizontal, SHIFT for both)"; }; pskl.utils.inherit(ns.VerticalMirrorPen, ns.SimplePen);