Skip to content

Conversation

@mxmou
Copy link
Member

@mxmou mxmou commented Nov 8, 2024

Changes

Updates "customizable block colors" and "always show number pad" to work with the new version of Blockly.

Tests

Tested both Scratch versions on Edge and Firefox.

@mxmou mxmou added scope: addon Related to one or multiple addons scope: upstream Related to something we depend on (like Scratch, a library, or the browser) labels Nov 8, 2024
@mxmou mxmou self-assigned this Nov 8, 2024
@Samq64
Copy link
Member

Samq64 commented Nov 17, 2024

Hat blocks become flat after dynamically changing theme3's settings and dragging the block.
screenshot-2024-11-17-21-18-28

@Samq64
Copy link
Member

Samq64 commented Nov 17, 2024

Resolves #5886
Closes #7781

@mxmou mxmou requested a review from Samq64 November 18, 2024 11:46
@Samq64
Copy link
Member

Samq64 commented Nov 18, 2024

The dial is inconsistent between Scratch versions with some settings. I made sure Scratch's high contrast mode was off before enabling the addon.

On the Scratch website:
screenshot-2024-11-18-12-54-45screenshot-2024-11-18-13-04-14

And on new Blockly:
screenshot-2024-11-18-12-54-55screenshot-2024-11-18-13-04-35

@mxmou
Copy link
Member Author

mxmou commented Nov 18, 2024

The dial is inconsistent between Scratch versions with some settings. I made sure Scratch's high contrast mode was off before enabling the addon.

On the current version of Scratch, the dial isn't affected by Scratch's high contrast mode and the addon doesn't change it either. This was changed in the new version and I think the way it looks with the addon is correct - the high contrast preset, for example, is identical to Scratch's high contrast mode:
image

@Samq64 Samq64 added the status: needs review PR needs 1 more approval label Nov 18, 2024
@WorldLanguages WorldLanguages removed the status: needs review PR needs 1 more approval label Nov 18, 2024
@mxmou mxmou merged commit 6d93eda into ScratchAddons:master Nov 18, 2024
@mxmou mxmou deleted the modern-blockly-theme3 branch November 18, 2024 19:26
Blockly.FieldNote.prototype.addOctaveButton_ = function (...args) {
let FieldNote;
if (Blockly.registry) FieldNote = Blockly.registry.getClass(Blockly.registry.Type.FIELD, "field_note");
FieldNote = Blockly.FieldNote;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxmou If FieldNote always gets set to a predetermined value, then the if-statement above will ultimately have no effect. Was there supposed to be an else keyword on this line?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #8836.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: addon Related to one or multiple addons scope: upstream Related to something we depend on (like Scratch, a library, or the browser)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants