File tree Expand file tree Collapse file tree 5 files changed +65
-0
lines changed Expand file tree Collapse file tree 5 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -1287,6 +1287,57 @@ const styles = `
1287
1287
width: 1.25rem;
1288
1288
height: 1.25rem;
1289
1289
}
1290
+
1291
+ .blocklyCommentTopbar {
1292
+ height: 32px;
1293
+ --commentBorderColour: #e2db96;
1294
+ }
1295
+
1296
+ .blocklyCommentTopbarBackground {
1297
+ height: 32px;
1298
+ }
1299
+
1300
+ .blocklyFoldoutIcon {
1301
+ width: 32px;
1302
+ height: 32px;
1303
+ transform-origin: 16px 16px;
1304
+ }
1305
+
1306
+ .blocklyComment:not(.blocklyCollapsed) .blocklyCommentHighlight,
1307
+ .blocklySelected .blocklyCommentHighlight,
1308
+ .blocklyCollapsed .blocklyCommentTopbarBackground,
1309
+ .blocklyCollapsed.blocklySelected .blocklyCommentTopbarBackground {
1310
+ stroke: #bcA903;
1311
+ stroke-width: 1px;
1312
+ }
1313
+
1314
+ .blocklyCollapsed.blocklyComment .blocklyFoldoutIcon {
1315
+ transform: rotate(-180deg);
1316
+ }
1317
+
1318
+ .zelos-renderer.scratch-theme .blocklyComment .blocklyTextarea {
1319
+ border: none;
1320
+ --commentFillColour: #fef49c;
1321
+ font-size: 12pt;
1322
+ font-weight: 400;
1323
+ padding: 12px;
1324
+ color: #575e75;
1325
+ }
1326
+
1327
+ .zelos-renderer.scratch-theme .blocklyCommentText.blocklyText {
1328
+ font-weight: 400;
1329
+ }
1330
+
1331
+ .blocklyDeleteIcon {
1332
+ display: block;
1333
+ width: 32px;
1334
+ height: 32px;
1335
+ }
1336
+
1337
+ .blocklyResizeHandle {
1338
+ height: 20px;
1339
+ width: 20px;
1340
+ }
1290
1341
` ;
1291
1342
1292
1343
Blockly . Css . register ( styles ) ;
File renamed without changes.
Original file line number Diff line number Diff line change @@ -83,3 +83,4 @@ Blockly.FlyoutButton.TEXT_MARGIN_X = 40;
83
83
Blockly . FlyoutButton . TEXT_MARGIN_Y = 10 ;
84
84
Blockly . ContextMenuRegistry . registry . unregister ( 'blockDisable' ) ;
85
85
Blockly . ContextMenuRegistry . registry . unregister ( 'blockInline' ) ;
86
+ Blockly . ContextMenuItems . registerCommentOptions ( ) ;
You can’t perform that action at this time.
0 commit comments