GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: show connection highlights for boolean inputs (#181) · SnoopyMod/scratch-blocks@303611a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/renderer
    • constants.js
    • renderer.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/renderer/constants.js‎

Copy file name to clipboardExpand all lines: src/renderer/constants.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { cssVarify } from "../colours.js";
99

1010
export class ConstantProvider extends Blockly.zelos.ConstantProvider {
1111
REPLACEMENT_GLOW_COLOUR = "#ffffff";
12+
SELECTED_GLOW_COLOUR = "#ffffff";
1213

1314
/**
1415
* Sets the visual theme used to render the workspace.
Collapse file

‎src/renderer/renderer.js‎

Copy file name to clipboardExpand all lines: src/renderer/renderer.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export class ScratchRenderer extends Blockly.zelos.Renderer {
2323
}
2424

2525
shouldHighlightConnection(connection) {
26-
return false;
26+
return (
27+
connection.type === Blockly.ConnectionType.INPUT_VALUE &&
28+
connection.getCheck()?.includes("Boolean")
29+
);
2730
}
2831
}
2932

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.