Issue #344 : Add image spriting using spritesmith

This commit is contained in:
jdescottes 2015-11-29 21:46:24 +01:00
parent 6f5e2f130e
commit 8aa6eff715
123 changed files with 449 additions and 260 deletions

View File

@ -236,6 +236,18 @@ module.exports = function(grunt) {
}, },
src: ['./dest/**/*', "./package.json", "!./dest/desktop/"] src: ['./dest/**/*', "./package.json", "!./dest/desktop/"]
} }
},
/**
*
* SPRITING
*
*/
sprite:{
all : {
src: 'src/img/icons/**/*.png',
dest: 'src/img/icons.png',
destCss: 'src/css/icons.css'
}
} }
}); });
@ -254,7 +266,7 @@ module.exports = function(grunt) {
grunt.registerTask('test', ['test-travis']); grunt.registerTask('test', ['test-travis']);
grunt.registerTask('precommit', ['test-local']); grunt.registerTask('precommit', ['test-local']);
grunt.registerTask('build', ['concat:js', 'concat:css', 'uglify', 'replace:main', 'replace:editor', 'copy']); grunt.registerTask('build', ['sprite', 'concat:js', 'concat:css', 'uglify', 'replace:main', 'replace:editor', 'copy']);
// Validate & Build // Validate & Build
grunt.registerTask('default', ['clean:before', 'lint', 'build']); grunt.registerTask('default', ['clean:before', 'lint', 'build']);

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 594 B

View File

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -30,11 +30,12 @@
"grunt-node-webkit-builder": "^1.0.2", "grunt-node-webkit-builder": "^1.0.2",
"grunt-open": "0.2.3", "grunt-open": "0.2.3",
"grunt-replace": "^0.8.0", "grunt-replace": "^0.8.0",
"grunt-spritesmith": "^6.1.0",
"jasmine-core": "^2.1.0",
"karma": "0.12.31", "karma": "0.12.31",
"karma-chrome-launcher": "^0.1.4", "karma-chrome-launcher": "^0.1.4",
"karma-jasmine": "^0.3.5", "karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4", "karma-phantomjs-launcher": "^0.1.4",
"jasmine-core": "^2.1.0",
"load-grunt-tasks": "^3.1.0" "load-grunt-tasks": "^3.1.0"
}, },
"window": { "window": {

View File

@ -3,17 +3,12 @@
bottom: 10px; bottom: 10px;
left: 10px; left: 10px;
padding: 1px 0 0 45px;
color : gold; color : gold;
font-weight: bold; font-weight: bold;
font-size : 1.25em; font-size : 1.25em;
line-height: 20px; line-height: 20px;
cursor : pointer; cursor: pointer;
background-image:url('../img/keyboard.png');
background-size:35px 20px;
background-repeat:no-repeat;
opacity: 0.5; opacity: 0.5;
z-index: 11000; z-index: 11000;
@ -81,9 +76,7 @@
height: 30px; height: 30px;
width: 30px; width: 30px;
margin: 0 10px 0 0; margin: 0 10px 0 0;
background-size: 30px 30px;
background-size: 20px 20px;
background-position: 5px 5px;
} }
.cheatsheet-description { .cheatsheet-description {
@ -170,4 +163,65 @@
position: absolute; position: absolute;
bottom: 10px; bottom: 10px;
right: 10px; right: 10px;
} }
.cheatsheet-icon-tool-circle {
background-image: url(../img/icons/tools/tool-circle.png);
}
.cheatsheet-icon-tool-colorpicker {
background-image: url(../img/icons/tools/tool-colorpicker.png);
}
.cheatsheet-icon-tool-colorswap {
background-image: url(../img/icons/tools/tool-colorswap.png);
}
.cheatsheet-icon-tool-dithering {
background-image: url(../img/icons/tools/tool-dithering.png);
}
.cheatsheet-icon-tool-eraser {
background-image: url(../img/icons/tools/tool-eraser.png);
}
.cheatsheet-icon-tool-lasso-select {
background-image: url(../img/icons/tools/tool-lasso-select.png);
}
.cheatsheet-icon-tool-lighten {
background-image: url(../img/icons/tools/tool-lighten.png);
}
.cheatsheet-icon-tool-move {
background-image: url(../img/icons/tools/tool-move.png);
}
.cheatsheet-icon-tool-paint-bucket {
background-image: url(../img/icons/tools/tool-paint-bucket.png);
}
.cheatsheet-icon-tool-pen {
background-image: url(../img/icons/tools/tool-pen.png);
}
.cheatsheet-icon-tool-rectangle-select {
background-image: url(../img/icons/tools/tool-rectangle-select.png);
}
.cheatsheet-icon-tool-rectangle {
background-image: url(../img/icons/tools/tool-rectangle.png);
}
.cheatsheet-icon-tool-shape-select {
background-image: url(../img/icons/tools/tool-shape-select.png);
}
.cheatsheet-icon-tool-stroke {
background-image: url(../img/icons/tools/tool-stroke.png);
}
.cheatsheet-icon-tool-vertical-mirror-pen {
background-image: url(../img/icons/tools/tool-vertical-mirror-pen.png);
}

View File

@ -55,24 +55,28 @@
} }
.add-frame-action { .add-frame-action {
border: #888 solid 4px;
font-size: 13px;
color: #888;
cursor: pointer;
padding: 6px 0;
border-radius: 4px;
margin-top: 8px; margin-top: 8px;
background-image: url(../img/plus.png); padding: 6px 0;
background-repeat: no-repeat; overflow: hidden;
background-position: 3px 7px; width: 96px;
background-size: 26px 26px;
text-indent: 18px; border: #888 solid 3px;
border-radius: 4px;
color: #888;
background-color: #222; background-color: #222;
font-size: 13px;
cursor: pointer;
}
.add-frame-action-icon {
margin: 3px;
float: left;
} }
.add-frame-action .label { .add-frame-action .label {
width: 80px; overflow: hidden;
margin: 0 auto; text-align: left;
} }
.add-frame-action:hover { .add-frame-action:hover {
@ -129,15 +133,9 @@
} }
.preview-tile .tile-overlay.delete-frame-action { .preview-tile .tile-overlay.delete-frame-action {
background-image: url(../img/garbage.png);
background-repeat: no-repeat;
top: 0; top: 0;
right: 0; right: 0;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
height: 30px;
width: 30px;
background-position: 5px 5px;
background-size: 20px;
cursor: pointer; cursor: pointer;
} }
@ -145,10 +143,6 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
background-image: url(../img/duplicate.png);
background-repeat: no-repeat;
background-position: 5px 5px;
background-size: 20px;
cursor: pointer; cursor: pointer;
} }
@ -156,10 +150,6 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
border-top-right-radius: 3px; border-top-right-radius: 3px;
background-image: url(../img/dragndrop.png);
background-repeat: no-repeat;
background-position: 5px 5px;
background-size: 20px;
cursor: move; cursor: move;
} }

View File

@ -1,24 +1,197 @@
.action-icon { /*
cursor: pointer; Icon classes can be used entirely standalone. They are named after their original file names.
height: 100%;
background-repeat: no-repeat;
background-position: 50%;
}
.edit-icon { ```html
background-image: url('../img/tools/pen.png'); <!-- `display: block` sprite -->
background-repeat: no-repeat; <div class="icon-home"></div>
}
.merge-icon { <!-- `display: inline-block` sprite -->
background-image: url('../img/merge-icon.png'); <img class="icon-home" />
background-repeat: no-repeat; ```
*/
.icon-common-keyboard-gold {
background-image: url(../img/icons.png);
background-position: -230px 0px;
width: 35px;
height: 20px;
} }
.icon-common-swapcolors-arrow-grey {
.plus-icon { background-image: url(../img/icons.png);
font-size:15px; background-position: -230px -46px;
text-align:center; width: 18px;
height: 18px;
}
.icon-frame-dragndrop-white {
background-image: url(../img/icons.png);
background-position: -198px -184px;
width: 30px;
height: 30px;
}
.icon-frame-duplicate-white {
background-image: url(../img/icons.png);
background-position: -168px -184px;
width: 30px;
height: 30px;
}
.icon-frame-plus-white {
background-image: url(../img/icons.png);
background-position: -230px -20px;
width: 26px;
height: 26px;
}
.icon-frame-recyclebin-white {
background-image: url(../img/icons.png);
background-position: -138px -184px;
width: 30px;
height: 30px;
}
.icon-minimap-popup-preview-arrow-gold {
background-image: url(../img/icons.png);
background-position: -230px -82px;
width: 18px;
height: 18px;
}
.icon-minimap-popup-preview-arrow-white {
background-image: url(../img/icons.png);
background-position: -230px -64px;
width: 18px;
height: 18px;
}
.icon-settings-export-white {
background-image: url(../img/icons.png);
background-position: -92px -92px;
width: 46px;
height: 46px;
}
.icon-settings-gear-white {
background-image: url(../img/icons.png);
background-position: -138px 0px;
width: 46px;
height: 46px;
}
.icon-settings-open-folder-white {
background-image: url(../img/icons.png);
background-position: -138px -46px;
width: 46px;
height: 46px;
}
.icon-settings-resize-white {
background-image: url(../img/icons.png);
background-position: -138px -92px;
width: 46px;
height: 46px;
}
.icon-settings-save-white {
background-image: url(../img/icons.png);
background-position: 0px -138px;
width: 46px;
height: 46px;
}
.icon-tool-circle {
background-image: url(../img/icons.png);
background-position: -46px -138px;
width: 46px;
height: 46px;
}
.icon-tool-colorpicker {
background-image: url(../img/icons.png);
background-position: -92px -138px;
width: 46px;
height: 46px;
}
.icon-tool-colorswap {
background-image: url(../img/icons.png);
background-position: 0px 0px;
width: 46px;
height: 46px;
}
.icon-tool-dithering {
background-image: url(../img/icons.png);
background-position: -184px 0px;
width: 46px;
height: 46px;
}
.icon-tool-eraser {
background-image: url(../img/icons.png);
background-position: -184px -46px;
width: 46px;
height: 46px;
}
.icon-tool-lasso-select {
background-image: url(../img/icons.png);
background-position: -184px -92px;
width: 46px;
height: 46px;
}
.icon-tool-lighten {
background-image: url(../img/icons.png);
background-position: -184px -138px;
width: 46px;
height: 46px;
}
.icon-tool-move {
background-image: url(../img/icons.png);
background-position: 0px -184px;
width: 46px;
height: 46px;
}
.icon-tool-paint-bucket {
background-image: url(../img/icons.png);
background-position: -46px -184px;
width: 46px;
height: 46px;
}
.icon-tool-pen {
background-image: url(../img/icons.png);
background-position: -92px -184px;
width: 46px;
height: 46px;
}
.icon-tool-rectangle-select {
background-image: url(../img/icons.png);
background-position: -138px -138px;
width: 46px;
height: 46px;
}
.icon-tool-rectangle {
background-image: url(../img/icons.png);
background-position: -46px -92px;
width: 46px;
height: 46px;
}
.icon-tool-shape-select {
background-image: url(../img/icons.png);
background-position: 0px -92px;
width: 46px;
height: 46px;
}
.icon-tool-stroke {
background-image: url(../img/icons.png);
background-position: -92px -46px;
width: 46px;
height: 46px;
}
.icon-tool-vertical-mirror-pen {
background-image: url(../img/icons.png);
background-position: -92px 0px;
width: 46px;
height: 46px;
}
.icon-tool-clone {
background-image: url(../img/icons.png);
background-position: -46px -46px;
width: 46px;
height: 46px;
}
.icon-tool-flip {
background-image: url(../img/icons.png);
background-position: 0px -46px;
width: 46px;
height: 46px;
}
.icon-tool-rotate {
background-image: url(../img/icons.png);
background-position: -46px 0px;
width: 46px;
height: 46px;
} }
.delete-icon {
}

View File

@ -103,22 +103,22 @@
.light-picker-background, .light-picker-background,
.light-canvas-background .canvas-background { .light-canvas-background .canvas-background {
background: url(../img/canvas_background/light_canvas_background.png) repeat; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABlBMVEXf39////8zI3BgAAAAHklEQVR4AWNghAIGCMDgjwgFCDDSw2M0PSCD0fQAACRcAgF4ciGUAAAAAElFTkSuQmCC') repeat;
} }
.medium-picker-background, .medium-picker-background,
.medium-canvas-background .canvas-background { .medium-canvas-background .canvas-background {
background: url(../img/canvas_background/medium_canvas_background.png) repeat; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABlBMVEW6urr///82MBGFAAAAHUlEQVR4AWOAAUYoQOePEAUj3v9oYDQ9gMBoegAAJFwCAbLaTIMAAAAASUVORK5CYII=') repeat;
} }
.lowcont-medium-picker-background, .lowcont-medium-picker-background,
.lowcont-medium-canvas-background .canvas-background { .lowcont-medium-canvas-background .canvas-background {
background: url(../img/canvas_background/lowcont_medium_canvas_background.png) repeat; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABlBMVEXV1dXb29tFGkCIAAAAHklEQVR4AWNghAIGCMDgjwgFCDDSw2M0PSCD0fQAACRcAgF4ciGUAAAAAElFTkSuQmCC') repeat;
} }
.lowcont-dark-picker-background, .lowcont-dark-picker-background,
.lowcont-dark-canvas-background .canvas-background { .lowcont-dark-canvas-background .canvas-background {
background: url(../img/canvas_background/lowcont_dark_canvas_background.png) repeat; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABlBMVEVMTExVVVUnhsEkAAAAHUlEQVR4AWOAAUYoQOePEAUj3v9oYDQ9gMBoegAAJFwCAbLaTIMAAAAASUVORK5CYII=') repeat;
} }
.canvas.onion-skin-canvas { .canvas.onion-skin-canvas {

View File

@ -21,55 +21,6 @@
margin-right: 0; margin-right: 0;
} }
/********************************************************** *j* j** j*j j j j** *****************/
/* Settings icons I I I I I\I \ */
/********************************************************** *** *** *** * * '** *****************/
.tool-icon.gallery-icon {
background-image: url(../img/gallery.png);
background-position: 3px 3px;
background-size: 39px 39px;
}
.tool-icon.resize-icon {
background-image: url(../img/resize-icon.png);
background-position: 10px 10px;
background-size: 26px 26px;
}
.tool-icon.save-icon {
background-image: url(../img/save.png);
background-position: 6px 6px;
background-size: 36px 36px;
}
.tool-icon.gear-icon {
background-image: url(../img/gear.png);
background-position: 6px 7px;
background-size: 32px 32px;
}
.tool-icon.export-icon {
background-image: url(../img/export.png);
background-position: 7px 5px;
background-size: 36px 36px;
position: relative;
}
.tool-icon.local-storage-icon {
background-image: url(../img/local-storage-icon.png);
background-position: 10px 12px;
background-size: 30px;
position: relative;
}
.tool-icon.import-icon {
background-image: url(../img/import-icon.png);
background-position: 10px 5px;
background-size: 26px;
position: relative;
}
.tool-icon .label { .tool-icon .label {
position: absolute; position: absolute;
left: 0; left: 0;

113
src/css/sprites.css Normal file
View File

@ -0,0 +1,113 @@
/*
Icon classes can be used entirely standalone. They are named after their original file names.
```html
<!-- `display: block` sprite -->
<div class="icon-home"></div>
<!-- `display: inline-block` sprite -->
<img class="icon-home" />
```
*/
.icon-cloud_export {
background-image: url(../img/spritesheet.png);
background-position: -512px -276px;
width: 50px;
height: 47px;
}
.icon-dragndrop {
background-image: url(../img/spritesheet.png);
background-position: -564px -173px;
width: 48px;
height: 48px;
}
.icon-duplicate {
background-image: url(../img/spritesheet.png);
background-position: -512px -369px;
width: 16px;
height: 16px;
}
.icon-export {
background-image: url(../img/spritesheet.png);
background-position: -564px -225px;
width: 43px;
height: 42px;
}
.icon-favicon {
background-image: url(../img/spritesheet.png);
background-position: -582px -151px;
width: 16px;
height: 16px;
}
.icon-gallery {
background-image: url(../img/spritesheet.png);
background-position: -512px -225px;
width: 52px;
height: 51px;
}
.icon-garbage {
background-image: url(../img/spritesheet.png);
background-position: 0px 0px;
width: 512px;
height: 512px;
}
.icon-gear {
background-image: url(../img/spritesheet.png);
background-position: -563px -323px;
width: 38px;
height: 37px;
}
.icon-import-icon {
background-image: url(../img/spritesheet.png);
background-position: -576px -69px;
width: 28px;
height: 36px;
}
.icon-keyboard {
background-image: url(../img/spritesheet.png);
background-position: -512px -133px;
width: 70px;
height: 40px;
}
.icon-local-storage-icon {
background-image: url(../img/spritesheet.png);
background-position: -512px 0px;
width: 100px;
height: 69px;
}
.icon-merge-icon {
background-image: url(../img/spritesheet.png);
background-position: -512px -69px;
width: 64px;
height: 64px;
}
.icon-plus {
background-image: url(../img/spritesheet.png);
background-position: -512px -323px;
width: 51px;
height: 46px;
}
.icon-popup-preview-arrow-gold {
background-image: url(../img/spritesheet.png);
background-position: -576px -105px;
width: 24px;
height: 18px;
}
.icon-popup-preview-arrow-white {
background-image: url(../img/spritesheet.png);
background-position: -582px -133px;
width: 24px;
height: 18px;
}
.icon-resize-icon {
background-image: url(../img/spritesheet.png);
background-position: -512px -173px;
width: 52px;
height: 52px;
}
.icon-save {
background-image: url(../img/spritesheet.png);
background-position: -562px -276px;
width: 43px;
height: 42px;
}

View File

@ -121,15 +121,18 @@
} }
.open-popup-preview-button { .open-popup-preview-button {
width : 18px;
height: 18px;
border : 2px solid white; border : 2px solid white;
background-image: url(../img/popup-preview-arrow-white.png);
background-color : rgba(0,0,0,0.3); background-color : rgba(0,0,0,0.3);
} }
.open-popup-preview-button:hover { .open-popup-preview-button:hover {
border-color: gold; border-color: gold;
background-image: url(../img/popup-preview-arrow-gold.png); }
/**
* The regular image is provided bby the sprite icons.png+icons.css
*/
.icon-minimap-popup-preview-arrow-white:hover {
background-image: url(../img/icons/minimap/minimap-popup-preview-arrow-gold.png);
background-position: 0 0;
} }

View File

@ -5,13 +5,6 @@
.layers-list-container { .layers-list-container {
} }
/*.layers-title {
background-image: url('../img/layers.svg');
background-size: 22px;
background-repeat: no-repeat;
background-position: 97%;
}*/
.layers-title { .layers-title {
position: relative; position: relative;
} }

View File

@ -137,10 +137,6 @@
outline: none; outline: none;
} }
.palettes-list-actions .edit-icon {
background-size: 15px;
background-position: 50%;
}
.palettes-list-no-colors { .palettes-list-no-colors {
height: 42px; height: 42px;
width: 100%; width: 100%;

View File

@ -5,9 +5,6 @@
height: 46px; height: 46px;
margin: 1px; margin: 1px;
background-color: #3a3a3a; background-color: #3a3a3a;
background-repeat: no-repeat;
background-position: 12px 12px;
background-size: 24px 24px;
} }
.tool-icon.selected { .tool-icon.selected {
@ -22,145 +19,49 @@
width : 100%; width : 100%;
border: 3px solid gold; border: 3px solid gold;
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box;
} }
.tool-icon:hover { .tool-icon:hover {
background-color: #444; background-color: #444;
} }
/*
* Tool icons:
*/
.tool-icon.tool-pen {
background-image: url(../img/tools/pen.png);
}
.tool-icon.tool-vertical-mirror-pen {
background-image: url(../img/tools/mirror.png);
background-position: 0px 10px;
background-size: 38px 27px;
}
.tool-icon.tool-paint-bucket {
background-image: url(../img/tools/paintbucket.png);
}
.tool-icon.tool-eraser {
background-image: url(../img/tools/eraser.png);
}
.tool-icon.tool-stroke {
background-image: url(../img/tools/stroke.png);
}
.tool-icon.tool-rectangle {
background-image: url(../img/tools/rectangle.png);
background-position: 12px 14px;
background-size: 24px 20px;
}
.tool-icon.tool-circle {
background-image: url(../img/tools/circle.png);
}
.tool-icon.tool-move {
background-image: url(../img/tools/hand.png);
background-size: 24px 24px;
}
.tool-icon.tool-rectangle-select {
background-image: url(../img/tools/rectangle_selection.png);
background-position: 12px 14px;
background-size: 24px 20px;
}
.tool-icon.tool-lasso-select {
background-image: url(../img/tools/lasso.png);
}
.tool-icon.tool-shape-select {
background-image: url(../img/tools/magicwand.png);
}
.tool-icon.tool-lighten {
background-image: url(../img/tools/lighten.png);
background-position: 8px 8px;
background-size: 30px 30px;
}
.tool-icon.tool-colorpicker {
background-image: url(../img/tools/eyedropper.png);
background-size: 23px 23px;
}
.tool-icon.tool-colorswap {
background-image: url(../img/tools/swap-colors.png);
background-position: 6px 6px;
background-size: 36px 36px;
}
.tool-icon.tool-flip {
background-image: url(../img/tools/flip.png);
background-position: 7px 11px;
background-size: 32px;
}
.tool-icon.tool-rotate {
background-image: url(../img/tools/rotate.png);
background-position: 10px 9px;
background-size: 26px;
}
.tool-icon.tool-clone {
background-image: url(../img/tools/clone.png);
background-position: 9px 15px;
background-size: 30px;
}
.tool-icon.tool-dithering {
background-image: url(../img/tools/dithering.png);
background-position: 8px 9px;
background-size: 30px;
}
/* /*
* Tool cursors: * Tool cursors:
*/ */
.tool-paint-bucket .drawing-canvas-container:hover, .tool-paint-bucket .drawing-canvas-container:hover,
.tool-colorswap .drawing-canvas-container:hover { .tool-colorswap .drawing-canvas-container:hover {
cursor: url(../img/icons/paint-bucket.png) 12 12, pointer; cursor: url(../img/cursors/paint-bucket.png) 12 12, pointer;
} }
.tool-vertical-mirror-pen .drawing-canvas-container:hover { .tool-vertical-mirror-pen .drawing-canvas-container:hover {
cursor: url(../img/icons/vertical-mirror-pen.png) 5 15, pointer; cursor: url(../img/cursors/vertical-mirror-pen.png) 5 15, pointer;
} }
.tool-pen .drawing-canvas-container:hover, .tool-pen .drawing-canvas-container:hover,
.tool-lighten .drawing-canvas-container:hover, .tool-lighten .drawing-canvas-container:hover,
.tool-dithering .drawing-canvas-container:hover { .tool-dithering .drawing-canvas-container:hover {
cursor: url(../img/icons/pen.png) 0 15, pointer; cursor: url(../img/cursors/pen.png) 0 15, pointer;
} }
.tool-eraser .drawing-canvas-container:hover { .tool-eraser .drawing-canvas-container:hover {
cursor: url(../img/icons/eraser.png) 0 15, pointer; cursor: url(../img/cursors/eraser.png) 0 15, pointer;
} }
.tool-stroke .drawing-canvas-container:hover { .tool-stroke .drawing-canvas-container:hover {
cursor: url(../img/icons/pen.png) 0 15, pointer; cursor: url(../img/cursors/pen.png) 0 15, pointer;
} }
.tool-rectangle .drawing-canvas-container:hover { .tool-rectangle .drawing-canvas-container:hover {
cursor: url(../img/icons/rectangle.png) 0 15, pointer; cursor: url(../img/cursors/rectangle.png) 0 15, pointer;
} }
.tool-circle .drawing-canvas-container:hover { .tool-circle .drawing-canvas-container:hover {
cursor: url(../img/icons/circle.png) 2 15, pointer; cursor: url(../img/cursors/circle.png) 2 15, pointer;
} }
.tool-move .drawing-canvas-container:hover { .tool-move .drawing-canvas-container:hover {
cursor: url(../img/icons/hand.png) 7 7, pointer; cursor: url(../img/cursors/hand.png) 7 7, pointer;
} }
.tool-rectangle-select .drawing-canvas-container:hover, .tool-rectangle-select .drawing-canvas-container:hover,
@ -169,26 +70,26 @@
} }
.tool-shape-select .drawing-canvas-container:hover { .tool-shape-select .drawing-canvas-container:hover {
cursor: url(../img/icons/wand.png) 15 15, pointer; cursor: url(../img/cursors/wand.png) 15 15, pointer;
} }
.tool-colorpicker .drawing-canvas-container:hover { .tool-colorpicker .drawing-canvas-container:hover {
cursor: url(../img/icons/dropper.png) 0 15, pointer; cursor: url(../img/cursors/dropper.png) 0 15, pointer;
} }
.swap-colors-icon { .swap-colors-button {
background-image: url(../img/tools/swap-arrow-square-small-grey.png);
position: relative; position: relative;
top: 50px; top: 50px;
left: 6px; left: 6px;
height: 18px; height: 18px;
width: 18px; width: 18px;
background-size: 18px;
opacity : 0.3; opacity : 0.3;
cursor : pointer; cursor : pointer;
} }
.swap-colors-icon:hover { .swap-colors-button:hover {
opacity : 1; opacity : 1;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 418 B

View File

Before

Width:  |  Height:  |  Size: 761 B

After

Width:  |  Height:  |  Size: 761 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

View File

Before

Width:  |  Height:  |  Size: 543 B

After

Width:  |  Height:  |  Size: 543 B

View File

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 656 B

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 557 B

View File

Before

Width:  |  Height:  |  Size: 707 B

After

Width:  |  Height:  |  Size: 707 B

0
src/img/icons/pen.png → src/img/cursors/pen.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

View File

Before

Width:  |  Height:  |  Size: 660 B

After

Width:  |  Height:  |  Size: 660 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

View File

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 603 B

0
src/img/icons/wand.png → src/img/cursors/wand.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 570 B

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

BIN
src/img/icons.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1015 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Some files were not shown because too many files have changed in this diff Show More