Skip to content

Commit bf059c5

Browse files
authored
Update userscript.js
1 parent 576e144 commit bf059c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/addons/addons/editor-colored-context-menus/userscript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default async function ({ addon, console }) {
1717
widgetDiv.classList.add("sa-contextmenu-colored");
1818
widgetDiv.style.setProperty("--sa-contextmenu-bg", fill);
1919
widgetDiv.style.setProperty("--sa-contextmenu-border", border);
20+
if (block.textColour) widgetDiv.style.setProperty("--sa-contextmenu-text", block.textColour);
2021
};
2122

2223
const originalHandleRightClick = ScratchBlocks.Gesture.prototype.handleRightClick;

0 commit comments

Comments
 (0)