Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created darkmode button and JS implementation according to Issue #383… #3876

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bengowang
Copy link

…8 and updated Tone.js to use AudioWorklet Node according to Issue #3555
Hi, I have been working with my colleague to complete these two tasks as part of a school project. We are both university students taking a software engineering course.

The changes we have implemented are not complete but do offer some functionality.

We created a darkmode button in index.html, mimicking the toolbar design to the best of our abilities but the styling is still a bit off. We implemented the JS code in both toolbar.js and activity.js again mimicking the patterns to the best of our ability.

We ran into an issue with the Turtles.js library because it is used to create a canvas that acts as an overlay on the website. We weren't able to figure out where we could access its background color within activity.js.
So far, the darkmode button works but only if you minimize the canvas using the collapse button in the top right below the toolbar.

Finally, we updated Tone.js to use AudioWorkletNode by finding the most recent version released by the library creators. However, they still use ScriptProcessorNode in some spots. Perhaps in the future they will completely migrate to AudioWorkletNode.

Thank you for reading!

…rlabs#3838 and updated Tone.js to use AudioWorklet Node according to Issue sugarlabs#3555
@walterbender
Copy link
Member

The background color is defined in js/utils/platformstyle.js

Probably you can do most of the work for dark mode by modifying that file.

I am a but wary of maintaining a fork of tone.js. Might make more sense to work upstream on that one.

@walterbender
Copy link
Member

Also, please create separate MRs for dark mode and AudioWorklet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants