Commit 3ab3e50f83aa5c2af4524823336ec206321b25d8
1 parent
010854c35d
Exists in
master
and in
1 other branch
update, fix trash icon
Showing 5 changed files with 5 additions and 4 deletions Side-by-side Diff
app/images/trash-hover.png
2.77 KB
app/images/trash.png
app/index.html
app/scripts/controllers/tshirtdesign.js
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | var pointer = canvas.getPointer(options.e); |
55 | 55 | if (pointer.x >= 567 && pointer.y >= 620 && pointer.x <= 600 && pointer.y <= 670){ |
56 | 56 | canvas.getActiveObject().remove(); |
57 | - $('.design-content .trash-design').css({'opacity':'1'}); | |
57 | + $('.design-content .trash-design img').attr({'src':'images/trash.png'}); | |
58 | 58 | return; |
59 | 59 | } |
60 | 60 | |
61 | 61 | |
... | ... | @@ -103,9 +103,9 @@ |
103 | 103 | function onIllustrationMoving(options) { |
104 | 104 | var pointer = canvas.getPointer(options.e); |
105 | 105 | if (pointer.x >= 567 && pointer.y >= 620 && pointer.x <= 600 && pointer.y <= 670){ |
106 | - $('.design-content .trash-design').css({'opacity':'0.5'}); | |
106 | + $('.design-content .trash-design img').attr({'src':'images/trash-hover.png'}); | |
107 | 107 | }else{ |
108 | - $('.design-content .trash-design').css({'opacity':'1'}); | |
108 | + $('.design-content .trash-design img').attr({'src':'images/trash.png'}); | |
109 | 109 | } |
110 | 110 | } |
111 | 111 |
app/views/tshirt-design.html
... | ... | @@ -61,6 +61,7 @@ |
61 | 61 | <!--<span ng-click="redoCanvas()" class="fa fa-repeat"> Redo</span><br>--> |
62 | 62 | <img src="images/trash.png" alt="trash design" /> |
63 | 63 | </div> |
64 | + <img style="display:none" src="images/trash-hover.png" alt="trash-hover cache" /> | |
64 | 65 | </div> |
65 | 66 | </section> |
66 | 67 | </div> |