P5-492 change colors on buttons and move canvas 3d image down

This commit is contained in:
Martin
2017-06-26 17:24:14 +02:00
parent e5e9245b3c
commit f4b6286396
3 changed files with 8 additions and 6 deletions
+2
View File
@@ -94,6 +94,8 @@ function ThreeDHandler(canvas) {
*/
this.setImage = function (img) {
img.set({
// Image should be about 20px lower than the center (because of the buttons)
top: 20,
originX: 'center',
originY: 'center',
});
+4 -4
View File
@@ -9,8 +9,8 @@ module.exports = {
activeFill: '#ffffff',
},
rect: {
fill: '#000000',
activeFill: '#444444',
fill: '#343434',
activeFill: '#494949',
width: 100,
},
},
@@ -22,8 +22,8 @@ module.exports = {
activeFill: '#ffffff',
},
rect: {
fill: '#000000',
activeFill: '#444444',
fill: '#343434',
activeFill: '#494949',
},
}
+2 -2
View File
@@ -4,8 +4,8 @@ module.exports = {
rect: function(width, height) {
return {
fill: '#000000',
activeFill: '#444444',
fill: '#343434',
activeFill: '#494949',
originX: 'center',
originY: 'center',
width: width || 1,