File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11
11
border-top-color : var (--sa-contextmenu-border ) !important ;
12
12
}
13
13
.sa-contextmenu-colored .blocklyContextMenu .goog-menuitem .goog-menuitem-content {
14
- color : white ;
14
+ color : var ( --sa-contextmenu-text , # fff ) ;
15
15
}
16
+
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default async function ({ addon, console }) {
17
17
widgetDiv . classList . add ( "sa-contextmenu-colored" ) ;
18
18
widgetDiv . style . setProperty ( "--sa-contextmenu-bg" , fill ) ;
19
19
widgetDiv . style . setProperty ( "--sa-contextmenu-border" , border ) ;
20
+ if ( block . textColour ) widgetDiv . style . setProperty ( "--sa-contextmenu-text" , block . textColour ) ;
20
21
} ;
21
22
22
23
const originalHandleRightClick = ScratchBlocks . Gesture . prototype . handleRightClick ;
You can’t perform that action at this time.
0 commit comments