atomcorp / themes

Themes for Windows Terminal
https://windowsterminalthemes.dev/
Other
1.37k stars 77 forks source link

Can I integrate your work with PSWinTerminal? #25

Open sassdawe opened 4 years ago

sassdawe commented 4 years ago

Hello,

I wrote PSWinTerminal and with the latest release it supports importing themes from the clipboard.

I'm wondering about possible integration between your collection of themes and my module.

Searching and installing themes would be a nice feature I think.

What do you think?

atomcorp commented 4 years ago

Hey sounds cool, adding themes to Windows Terminal is pretty clunky so that seems like a nice tool to have!

I don't know what you'd need in practice, there's a sort of endpoint I have for the frontend https://www.atomcorp.dev/api/v1/themes. It's compiled once a day on a little server I have by merging the collection at https://github.com/mbadolato/iTerm2-Color-Schemes and the themes submitted to this repo.

Let me know how I can help!

sassdawe commented 4 years ago

That V1 endpoint looks perfect, with a simple request I can download the list. If you don't introduce any breaking changes this link to the endpoint is all what I needed.

Now I just have to figure out what to do with the data :)

One thing, can I somehow link to a specific theme on the site? I think a Show-WTTheme cmdlet which would open the site, could offer a "preview" experience to the users.

atomcorp commented 4 years ago

The only change I plan to make is to probably replace the isDark boolean with an object called meta at some point, you'll probably want to ignore those.

Yes you can link individual themes! eg https://atomcorp.github.io/themes/?theme=Operator%20Mono%20Dark

Exciting, keep me billed please!

edit: Looking at the direct links just now I noticied a bug where the background colour wasn't changed for the theme, it should be fixed now. Just in case you saw in the meantime.