Hi everyone! 👋
A few weeks ago, I started building a VS Code extension called LightSwitch. It allows you to set-up two themes that swap around day & night. All you have to do is choose your themes and set your preferred times to switch them.
timrodz
/
vscode-light-switch
💡 Light Switch allows you to set-up two themes that swap around day & night. All you have to do is pick your themes and set your preferred times.
Update: thanks for all the support! I appreciate you all. ❤️
Any stars are more than welcome ⭐
Since we're in Hacktoberfest, building a tool together would be a great way to celebrate it (along with open source software)!
Why? 🤔
Not so long ago, I started wearing prescription glasses, and thus I have been swapping between light/dark themes according to where/when I'm working.
"Why not make a tool to automate this?!"
This was the perfect reason to work on a small project that would teach me the API, workflows of VS Code, along with Typescript.
I must admit, creating an MVP was incredibly easy, and I encourage all fellow devs to tinker with their own extensions — It's also a great way to get started with Typescript!
The extension 🚀
A basic implementation of LightSwitch is working, with the following features:
- Set themes to night and day
- Switch between night/day themes
- Switch themes according to a specific time
By collaborating in this project you will:
- Use Typescript to implement features, tests and fix bugs. Don't know the language? No worries! You can learn Typescript in 5 minutes.
- Be exposed to API methods that will help you understand how extensions work. Discover the VS Code API.
- Achieve your Hacktoberfest PRs (In case you need them).
- Work on a small Open Source project!
I' open to discussions of any kind. Any contribution is more than valid ❤
I'm in! Show me the issues 🛠
Woop Woop! The complete list of issues can be found here.
Discussion: Features & Enhancements
#12
Hi team!
If you have any features/enhancements you'd like to propose, this is the place to share them.
Add better screenshots / GIFs
#4
As of now, it can be a bit difficult to understand what this tool does. A set of new, clear screenshots and (better) GIFs would be great.
Add more tests
#5
Currently, the suite of tests is very basic. Ideally, we should be testing the following areas:
- Utilities i.e.
workskpace
- Commands i.e.
setTheme
,switchThemes
- Command binder - What could possibly go wrong?
- String verification through extension settings and
date
If you have ideas for any other tests, let me know.
Audit and improve util/workspace
#6
Currently, workspace
runs methods with little to no checks. We should cover potential breaking cases such as:
- User having multi-root workspaces
- Themes that don't exist (or have been deleted)
Photo by Hans-Peter Gauster on Unsplash.
Great idea Juan, I have a couple random feature thoughts I'll throw into the discussion and hopefully make a contribution!