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 */
|
||||
a.btn-start {
|
||||
border-width: 3px !important;
|
||||
border-color: #4cae4c !important;
|
||||
background-color: #44CC00 !important;
|
||||
border-color: #18a952 !important;
|
||||
background-color: #1cc761 !important;
|
||||
}
|
||||
/* stop code button */
|
||||
a.btn-stop {
|
||||
border-width: 3px !important;
|
||||
border-color: #d43f3a !important;
|
||||
background-color: #b80000 !important;
|
||||
border-color: #c0312f !important;
|
||||
background-color: #d63634 !important;
|
||||
}
|
||||
.btn:hover, .btn.hover {
|
||||
border-width: 3px;
|
||||
|
@ -6,7 +6,7 @@ window.addEventListener('load', function() {
|
||||
var controlBlockId = '';
|
||||
|
||||
// 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
|
||||
Blockly.defineBlocksWithJsonArray([
|
||||
@ -80,7 +80,7 @@ window.addEventListener('load', function() {
|
||||
|
||||
Blockly.Blocks['sumorobot_sleep'] = {
|
||||
init: function() {
|
||||
this.setColour('#E64C00');
|
||||
this.setColour('#e98017');
|
||||
this.appendDummyInput()
|
||||
.appendField('sleep')
|
||||
.appendField(new Blockly.FieldTextInput('1000',
|
||||
@ -100,7 +100,7 @@ window.addEventListener('load', function() {
|
||||
['move forward', 'FORWARD'],
|
||||
['move backward', 'BACKWARD']
|
||||
];
|
||||
this.setColour('#E60000');
|
||||
this.setColour('#d6382d');
|
||||
var dropdown = new Blockly.FieldDropdown(OPERATORS);
|
||||
this.appendDummyInput().appendField(dropdown, 'MOVE');
|
||||
this.setPreviousStatement(true);
|
||||
@ -153,8 +153,8 @@ window.addEventListener('load', function() {
|
||||
var blocklyArea = document.getElementById('blocklyArea');
|
||||
var blocklyDiv = document.getElementById('blocklyDiv');
|
||||
workspace = Blockly.inject(blocklyDiv, {
|
||||
scrollbars: false,
|
||||
media: 'assets/blockly/media/',
|
||||
scrollbars: false,
|
||||
trashcan: true,
|
||||
sounds: true,
|
||||
zoom: {
|
||||
|
Loading…
Reference in New Issue
Block a user