repo-visualizer icon indicating copy to clipboard operation
repo-visualizer copied to clipboard

Option to change color scheme

Open yangwao opened this issue 3 years ago • 2 comments

I was thinking to change the colour scheme of particular files, background and circles, would be that possible?

Happy to learn a new trick if you tell me how it could be done.

Oh found hints how to do it probably https://github.com/githubocto/repo-visualizer/blob/main/src/Tree.tsx#L85

yangwao avatar Jan 16 '22 13:01 yangwao

that could be a great way to customize the output! The colors are imported from this json file: https://github.com/githubocto/repo-visualizer/blob/main/src/language-colors.json https://github.com/githubocto/repo-visualizer/blob/main/src/Tree.tsx#L22

One way would be to extend that object with key/values passed in through an Action configuration.

Wattenberger avatar Jan 18 '22 18:01 Wattenberger

that could be a great way to customize the output! The colors are imported from this json file: https://github.com/githubocto/repo-visualizer/blob/main/src/language-colors.json https://github.com/githubocto/repo-visualizer/blob/main/src/Tree.tsx#L22

One way would be to extend that object with key/values passed in through an Action configuration.

Lovely! 🥰 Had just good morning to check back for your reply 😇

Let's see if someone can pick it up on our behalf and make PR to repo-visualizer https://github.com/kodadot/nft-gallery/issues/1928

yangwao avatar Jan 19 '22 10:01 yangwao