app/assets/htmls/gs-element-blockly.html in gobstones-blockly-0.24.3 vs app/assets/htmls/gs-element-blockly.html in gobstones-blockly-0.25.0

- old
+ new

@@ -6876,10 +6876,25 @@ forEachNode(toolbar, (toolbarNode) => { const isLabel = toolbarNode.classList && toolbarNode.classList[0] === "blocklyTreeLabel"; const isTheRightCategory = toolbarNode.textContent === name; if (isLabel && isTheRightCategory) { - toolbarNode.innerHTML = `<strong>${toolbarNode.innerText}</strong>`; + const row = toolbarNode.parentElement; + row.style["pointer-elements"] = "none"; + row.style["background"] = "#15546f"; + row.style["color"] = "#ffffff"; + row.style["margin-top"] = "15px"; + row.style["margin-bottom"] = "15px"; + row.style["pointer-events"] = "none"; + row.style["user-select"] = "none"; + + if (toolbarNode.innerText.startsWith("*")) { + row.style["margin-bottom"] = "-15px"; + row.style["font-weight"] = "900"; + toolbarNode.innerText = toolbarNode.innerText.replace("*", ""); + } + + toolbarNode.innerHTML = `<span>${toolbarNode.innerText}</span>`; } }); } }); }, \ No newline at end of file