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

feat: Create Hacker mode theme #1988 #2091

Merged
merged 7 commits into from
Dec 15, 2023

Conversation

shivalipatel6
Copy link
Contributor

@shivalipatel6 shivalipatel6 commented Dec 4, 2023

I created a theme with a black background, black block fill for all blocks, a white shadow for all blocks (still working on putting in an actual outline), dark toolbox, dark flyout, and monospace text. I am still working on putting in green text for all block text. Need to fix CSS issue first.

The basics

The details

Resolves

Fixes #1988

Proposed Changes

This pull request creates a new blockly theme that has a black background for everything, black fill in for blocks and a white highlight. Theme is currently incomplete as it is missing green text color, but it will be fixed later once some CSS work is fixed.
hacker-modescreenshot1

Reason for Changes

Test Coverage

Documentation

Once the theme is made public, the documentation about themes will need to be updated to let users know the theme exists. As well documentation about how to download the theme will be needed.

Additional Information

I created a theme with a black bacground, black block fill for all blocks, a white shadow for all blocks (still working on putting in an actual outline),
dark toolbox, dark flyout, and monospace text. I am still working on putting in green text for all block text. Need to fix CSS issue first.
@shivalipatel6 shivalipatel6 requested a review from a team as a code owner December 4, 2023 12:38
@shivalipatel6 shivalipatel6 requested review from maribethb and removed request for a team December 4, 2023 12:38
@BeksOmega BeksOmega assigned BeksOmega and unassigned maribethb Dec 5, 2023
@BeksOmega BeksOmega requested review from BeksOmega and removed request for maribethb December 5, 2023 16:18
Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

This is looking great so far! Thank you for putting the work into this and dealing with all of the crazy rebasing =)

plugins/theme-hackermode/package.json Show resolved Hide resolved
plugins/theme-hackermode/package.json Show resolved Hide resolved
plugins/theme-hackermode/package.json Outdated Show resolved Hide resolved
plugins/theme-hackermode/package.json Outdated Show resolved Hide resolved
plugins/theme-hackermode/README.md Outdated Show resolved Hide resolved
plugins/theme-hackermode/package.json Outdated Show resolved Hide resolved
plugins/theme-hackermode/package.json Outdated Show resolved Hide resolved
plugins/theme-hackermode/package.json Outdated Show resolved Hide resolved
plugins/theme-hackermode/src/index.js Outdated Show resolved Hide resolved
plugins/theme-hackermode/src/index.js Show resolved Hide resolved
@maribethb
Copy link
Contributor

Hi @shivalipatel6 you can also run the create-package script with the --first-party flag and it will use the correct values for many of the things Beka noted. Whether you want to re-run the script and then re-apply your changes, or just fix the issues Beka noted manually is up to you!

Made theme private, updated descriptions, and updated formatting errors in readme, pagkage.json and index.
Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes! Just a few more nits then this should be good to go =)

plugins/theme-hackermode/src/index.js Outdated Show resolved Hide resolved
plugins/theme-hackermode/src/index.js Outdated Show resolved Hide resolved
plugins/theme-hackermode/src/index.js Outdated Show resolved Hide resolved
plugins/theme-hackermode/README.md Outdated Show resolved Hide resolved
Deleted out To-do comments and marked the package private in the package.json file.
@BeksOmega
Copy link
Contributor

@shivalipatel6 Please resolve the build errors. You should be able to run npm run build to reproduce the problem. Let me know if you need help!

Deleted line 1 in index that privated the file so that build can run successfully.
@shivalipatel6
Copy link
Contributor Author

I fixed up the build issues, but I am still unsure what is up with the format issues... I could use some pointers for figuring this out.

@BeksOmega
Copy link
Contributor

I fixed up the build issues, but I am still unsure what is up with the format issues... I could use some pointers for figuring this out.

Can you try running npm ci and then npm run format from the root level of the repository? That should create some changes you can commit to fix it!

Ran npm ci and npm run format to fix formatting issues.
@shivalipatel6
Copy link
Contributor Author

I fixed up the build issues, but I am still unsure what is up with the format issues... I could use some pointers for figuring this out.

Can you try running npm ci and then npm run format from the root level of the repository? That should create some changes you can commit to fix it!

I was able to run both commands and produce changes, but it was unable to fix the format issues. Is there anything I can run that will help me diagonse these problems?

@BeksOmega
Copy link
Contributor

I fixed up the build issues, but I am still unsure what is up with the format issues... I could use some pointers for figuring this out.

Can you try running npm ci and then npm run format from the root level of the repository? That should create some changes you can commit to fix it!

I was able to run both commands and produce changes, but it was unable to fix the format issues. Is there anything I can run that will help me diagonse these problems?

Hm you're right. I also pulled your branch and the format check passed.

Could you try rebasing onto the latest master and then rerunning the formatting commands? It could be that the quoting change you fixed in your other PR (thank you again!) is causing conflicts.

@shivalipatel6
Copy link
Contributor Author

I ran npm ci and npm run format after I rebased and merged the changes from master into this branch but there was no changes to commit...

@BeksOmega
Copy link
Contributor

Hiya @shivalipatel6 Wanted to let you know I saw this but my team is doing a hackathon this week! So I'll get back to you about this in a few days. Sorry for the delay!

@shivalipatel6
Copy link
Contributor Author

Hiya @shivalipatel6 Wanted to let you know I saw this but my team is doing a hackathon this week! So I'll get back to you about this in a few days. Sorry for the delay!

Have fun at the hackathon!! Good luck with your projects!

@BeksOmega
Copy link
Contributor

I pushed a commit to your branch with the formatting fixes! Thanks for the work on this @shivalipatel6 =)

@BeksOmega BeksOmega merged commit f642f46 into google:master Dec 15, 2023
8 checks passed
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.

"Hacker mode" theme
3 participants