GeezerVison is showing github.com — fix: enable and style workspace comments (#82) · SnoopyMod/scratch-blocks@98ccb62
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: core/css.js +51Lines changed: 51 additions & 0 deletions | 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); |
Collapse file
Copy file name to clipboard +10Lines changed: 10 additions & 0 deletions - Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboard File renamed without changes.
Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboardExpand all lines: src/index.js +1Lines changed: 1 addition & 0 deletions | 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(); |