nafees87n / codebox

codeBox RCE is a service that provides a remote environment to run your code in. Execution occurs in a containerized space. The API supports programming in 3 languages (Python, Javascript and C++), potentially extendable to support more.
http://codebox.herokuapp.com/
MIT License
9 stars 9 forks source link

Added support for different colour themes #15

Closed kailash360 closed 3 years ago

kailash360 commented 3 years ago

@aaryak-shah, I have added different color themes for the editor and saved the Name-keyword pair in constants file. Although, we need to import each of the themes manually in the index.js of homepage folder. The theme is switched using a select element which updates the currentTheme state.

Cobalt is set as the default theme

This is for Issue #7 .

kailash360 commented 3 years ago

@nafees87n, I have made the suggested changes. Please have a look. I have also moved the value of default theme to the constants,js file, so that it can be changed later on easily.

kailash360 commented 3 years ago

@nafees87n, I have made the required changes, please take a look

nafees87n commented 3 years ago

Thank You @kailash360. Looks good to merge now. I hope you have learned something new while implementing this feature.