Commit f5a769a4 authored by ramiAbdou's avatar ramiAbdou Committed by Evan W. Patton

Improve Blockly controls

Fixed Issue #1352:

1. Cursor changes to pointer when hovering over the backpack and zoom elements on the right side of screen.
2. Zoom elements and trashcan are now black to increase their visibility on the screen, especially when the grey sidebar is extended over them.
3. Shifted the positioning of the zoom control images from the sprites.png image so that no more ugly lines display around the controls.
parent 4cfd02b1
...@@ -28,3 +28,11 @@ ...@@ -28,3 +28,11 @@
fill: #ddd; fill: #ddd;
fill-opacity: .8; fill-opacity: .8;
} }
.blocklybackpackImage:hover {
cursor: pointer;
}
.blocklyZoomButton:hover {
cursor: pointer;
}
...@@ -205,6 +205,9 @@ Blockly.Backpack.prototype.createDom = function(opt_workspace) { ...@@ -205,6 +205,9 @@ Blockly.Backpack.prototype.createDom = function(opt_workspace) {
this.svgGroup_); this.svgGroup_);
this.svgBody_.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', this.svgBody_.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href',
Blockly.pathToBlockly + this.BPACK_CLOSED_); Blockly.pathToBlockly + this.BPACK_CLOSED_);
this.svgBody_.setAttribute('class', 'blocklybackpackImage');
return this.svgGroup_; return this.svgGroup_;
}; };
......
Subproject commit 44ad45698c4625844629696be94dcc60ca691f48 Subproject commit c5ead64c2b930e0794031ea999df9dca62bcf0e1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment