forked from marva/sumorobot-web
update block and button colors
This commit is contained in:
parent
8440934c19
commit
5958c1d298
@ -44,14 +44,14 @@ a.btn-robot-go, a.btn-robot-go:hover {
|
|||||||
/* start code button */
|
/* start code button */
|
||||||
a.btn-start {
|
a.btn-start {
|
||||||
border-width: 3px !important;
|
border-width: 3px !important;
|
||||||
border-color: #4cae4c !important;
|
border-color: #18a952 !important;
|
||||||
background-color: #44CC00 !important;
|
background-color: #1cc761 !important;
|
||||||
}
|
}
|
||||||
/* stop code button */
|
/* stop code button */
|
||||||
a.btn-stop {
|
a.btn-stop {
|
||||||
border-width: 3px !important;
|
border-width: 3px !important;
|
||||||
border-color: #d43f3a !important;
|
border-color: #c0312f !important;
|
||||||
background-color: #b80000 !important;
|
background-color: #d63634 !important;
|
||||||
}
|
}
|
||||||
.btn:hover, .btn.hover {
|
.btn:hover, .btn.hover {
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
|
@ -6,7 +6,7 @@ window.addEventListener('load', function() {
|
|||||||
var controlBlockId = '';
|
var controlBlockId = '';
|
||||||
|
|
||||||
// Change the if block to be more cheerful
|
// Change the if block to be more cheerful
|
||||||
Blockly.Msg.LOGIC_HUE = '#44CC00';
|
Blockly.Msg.LOGIC_HUE = '#24c74f';
|
||||||
|
|
||||||
// Remote previous and next statement from control_if block
|
// Remote previous and next statement from control_if block
|
||||||
Blockly.defineBlocksWithJsonArray([
|
Blockly.defineBlocksWithJsonArray([
|
||||||
@ -80,7 +80,7 @@ window.addEventListener('load', function() {
|
|||||||
|
|
||||||
Blockly.Blocks['sumorobot_sleep'] = {
|
Blockly.Blocks['sumorobot_sleep'] = {
|
||||||
init: function() {
|
init: function() {
|
||||||
this.setColour('#E64C00');
|
this.setColour('#e98017');
|
||||||
this.appendDummyInput()
|
this.appendDummyInput()
|
||||||
.appendField('sleep')
|
.appendField('sleep')
|
||||||
.appendField(new Blockly.FieldTextInput('1000',
|
.appendField(new Blockly.FieldTextInput('1000',
|
||||||
@ -100,7 +100,7 @@ window.addEventListener('load', function() {
|
|||||||
['move forward', 'FORWARD'],
|
['move forward', 'FORWARD'],
|
||||||
['move backward', 'BACKWARD']
|
['move backward', 'BACKWARD']
|
||||||
];
|
];
|
||||||
this.setColour('#E60000');
|
this.setColour('#d6382d');
|
||||||
var dropdown = new Blockly.FieldDropdown(OPERATORS);
|
var dropdown = new Blockly.FieldDropdown(OPERATORS);
|
||||||
this.appendDummyInput().appendField(dropdown, 'MOVE');
|
this.appendDummyInput().appendField(dropdown, 'MOVE');
|
||||||
this.setPreviousStatement(true);
|
this.setPreviousStatement(true);
|
||||||
@ -153,8 +153,8 @@ window.addEventListener('load', function() {
|
|||||||
var blocklyArea = document.getElementById('blocklyArea');
|
var blocklyArea = document.getElementById('blocklyArea');
|
||||||
var blocklyDiv = document.getElementById('blocklyDiv');
|
var blocklyDiv = document.getElementById('blocklyDiv');
|
||||||
workspace = Blockly.inject(blocklyDiv, {
|
workspace = Blockly.inject(blocklyDiv, {
|
||||||
scrollbars: false,
|
|
||||||
media: 'assets/blockly/media/',
|
media: 'assets/blockly/media/',
|
||||||
|
scrollbars: false,
|
||||||
trashcan: true,
|
trashcan: true,
|
||||||
sounds: true,
|
sounds: true,
|
||||||
zoom: {
|
zoom: {
|
||||||
|
Loading…
Reference in New Issue
Block a user