rose-pine / hyper

Soho vibes for Hyper
https://www.npmjs.com/package/hyper-rose-pine
31 stars 3 forks source link

Dawn & Moon #6

Closed ng-hai closed 3 years ago

ng-hai commented 3 years ago

I want to make Dawn & Moon theme available for Hyper. Should I create a repo for each theme, or contribute to this repo to make it configurable via Hyper's settings?

mvllow commented 3 years ago

Honestly whatever you think is best. Most of our terminal themes are a simple file, eg. rose-pine.yaml so that's easy to have in a single repo but because this is on npm we may want a monorepo? I don't have much experience with those. If separate repos are easiest then that's fine too 😌

Thanks for wanting to contribute!

(@fvrests is the maintainer of this one so maybe they have something to add)

ng-hai commented 3 years ago

Yeah, waiting for @fvrests idea. Suddenly know Rosé Pine, and now I want everything uses Rosé Pine palette, even my website too 😄

ng-hai commented 3 years ago

My first draft

https://user-images.githubusercontent.com/19520278/117956312-20d5df00-b343-11eb-959d-856ebbde7544.mov

mvllow commented 3 years ago

Love it! I didn't even know switching variants like that was possible 😅

ng-hai commented 3 years ago

Actually I want to switch variants automatically based on System Preference > Appearance, even try to create a plugin for that, but got no luck because of Hyper's architecture.

fvrests commented 3 years ago

Sorry for the delay & thanks for your patience as my non-tech job is taking a lot of my bandwidth at the moment... Your additions look wonderful & I'm so glad you are loving Rosé Pine 🥰 Thank you so much for making this issue & contributing - the view menu item for switching themes is so clean!

If you are willing to contribute your changes as a PR & if it's possible to add it all to the main repo, I would absolutely accept the PR and credit you for the changes.

If not, I would be happy to link out to your repos or help build a monorepo if you think that's the best way to do it :) I admit I'm not the most experienced with how to best structure the repo for theme switching, so let me know what you think.

ng-hai commented 3 years ago

Thanks for your kind words. I have managed to do this out. The plugin now can react to Appearance Settings, in short it supports dark mode. I also add Rose Pine logo to each tab title.

But there is one issue, this only works with Hyper's canary release version. So I'm not sure it's a good idea to replace your current package.

https://user-images.githubusercontent.com/19520278/118404267-750ef500-b69c-11eb-92ae-8329ae89e2e7.mov

ng-hai commented 3 years ago

Please take a look, or test it out 😄

https://github.com/ng-hai/hyper-rose-pine

ng-hai commented 3 years ago

Hey, I have a good news, my fork is now compatible with the current original version. Tested on production by adding this line into your config.

plugins: [
    // another plugins...
    "hyper-rose-pine@git+https://github.com/ng-hai/hyper-rose-pine",
  ]

Then go to menu Plugins > Update or Cmd+Shift+U to make Hyper install new code.

fvrests commented 3 years ago
Screen Shot of Hyper terminal with Rose Pine theme

@ng-hai Oh no, just installed and it looks like this to me! The syntax theme doesn't look like it applied as well as the problem with the large icon. I had @mvllow try it on his and it looks similar to mine. I'll try to help take a look at it later when I'm done with work for the day, but let us know if there's anything else you need to help figure it out. ):

mvllow commented 3 years ago

Went ahead and added moon/dawn to the original base. Variant can be set via an option in ~/.hyper.js. We will gladly feature a hyper plugin that allows switching variants based on OS theme etc.

ng-hai commented 3 years ago

It's weird because I had fixed that bug before opening the PR :(