Has anyone found a way to segment the internal components of a block via the background color and/or another grouping method? So, very simply:
- Top section of the block has some labels and editable fields, has a color background
- Bottom section of the block also has some labels and editable field, has a different color background
What is a clever way and/or a standard way in Blockly to create logical groups of these components, internally to the block? I saw a screenshot of someone's Blockly project (now I can't find it) where they had two shades of grey, one light and one dark, and within each shade there were a grouping of labels and editable fields (dropdowns I believe). It was nice because there was a clear separation between the two sections internal to the block.
Here is a code example of something that DOES NOT work, but illustrates what making of these sections could be like:
```
Blockly.Blocks['block_type'] = {
init: function () {
this.appendDummyInput()
.appendField("Welcome to field 1:")
.appendField(new Blockly.FieldTextInput("Write here"), "NAME");
.setColour(120);
this.appendDummyInput()
.appendField("Welcome to field 2:")
.appendField(new Blockly.FieldTextInput("Write here"), "NAME");
.setColour(230);
this.setTooltip("");
this.setHelpUrl("");
}
};
```
I've tried making a label with just a line in it to separate sections, but it's not very clean looking as compared to what simply applying different colors to dummy inputs would be like.
Thanks!