vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.46k stars 3.52k forks source link

Easier way to change theme #2942

Open greenbech opened 6 years ago

greenbech commented 6 years ago

It would be nice to have some sort of shortcut and possibly have a option under view that open a grafical theme picker that resembled https://hyper.is/themes and when you clicked a theme it automatically changed in .hyper.js and the theme was updated. I believe this would made the transition to Hyper easier for most people!

webp net-gifmaker

albinekb commented 6 years ago

You can type hyper i <theme name> to install/preview a theme 👍

greenbech commented 6 years ago

But that still dosen't solve the problem that you have to comment out/remove/uninstall the last theme you had. See picture for what happened when I first installed "hyper-solarized-light" then "hyper-one-light".

hyper i <theme name> should probably comment out or remove all the other themes in plugins.

plugins: ["hyper-solarized-light", "hyper-one-light"]: plugins: ["hyper-one-light", "hyper-one-light"]

For reference hyper-one-light: skjermbilde 2018-04-27 19 28 42

hyper-solarized-light: skjermbilde 2018-04-27 19 28 27

rosejn commented 5 years ago

Yeah, this doesn't make sense to me either. There is a difference between installing a theme or plugin and choosing which one to use. If you install a few themes, which you will naturally do when trying some out, then there should be an equivalently straight forward way to select one. Maybe something like:

hyper theme hyper-solarized-light

devniel commented 5 years ago

Had this same problem, I was checking themes, now I want to use specifically one but there is no direct way to do it.

I tried hyper i verminal again but I got the verminal is already installed error.

Thanks.

apjanco commented 5 years ago

I agree that a command to change the theme is needed. For now, you can uninstall hyper u <theme-name> and then re-install hyper i <theme-name>.

le0n commented 5 years ago

I second this, need a much easier way to change theme

mihirkumar commented 5 years ago

This was opened over a year ago. Has there been any development on this issue? It's central to Hyper's usage 😞 I like the project but changing themes is so cumbersome.

Stanzilla commented 5 years ago

@mihirkumar nope, sorry. the original authors and maintainers of the project all left, PRs welcome though.

iamjaredwalters commented 5 years ago

the original authors and maintainers of the project all left

@Stanzilla is this in reference to the theme switching functionality described in this issue or the Hyper project as a whole?

phrazzld commented 4 years ago

Keeping a commented list in my .hyper.js file isn't terrible, but it isn't great.

hyper theme <theme-name> would be ideal, using <theme-name> if it's installed, or installing and using it if it is not.

rdewolff commented 4 years ago

Maybe that means refactoring the config file. We could have a dedicated propery themes: [] so we clearly separate them from plugins: []. Then either the first theme of the array would be the active one, or using an additional property activeTheme.

What do you think?

ppot commented 4 years ago

This is something I vouched for some times. Will require a bigger refactor in order to do so. Feel free to propose something.

GeoBrodas commented 3 years ago

OK guys I finally found out how to change the theme on hyper I don't know whether this fix was declared but here it is I figured it out myself So what hyper does is if you have installed a particular theme already its shows theme already installed and there is no provision as such to select between themes...so here's what you can do

Go to preferences in edit section Click preferences It'll open up a json file I suppose that's because hyper is built using Electron Scroll down to plugins Clear the theme you want to set if its shown in the list and save the file Go back to the terminal and install it normally! It'll work!

Alhough this is a manual proccedure it would be better if Hyper provides us to select between themes. Thankyou!

edisim commented 3 years ago

@GeoBrodas as @apjanco mentioned before, you could just type hyper u <theme-name> && hyper i <theme-name> to reinstall it, which seems to be a faster approach

GeoBrodas commented 3 years ago

@edisim hyper i does'nt work I have tried it will try hyper u as you suggested

SynergyBest commented 3 years ago

@edisim hyper i does'nt work I have tried it will try hyper u as you suggested

you have to install the cli tool

Screen Shot 2021-03-01 at 1 18 47 PM

plugins >> install Hyper CLI in PATH

SynergyBest commented 3 years ago

didn't mean to mention you edisim, my bad 😬

ng-hai commented 3 years ago

Hi, I have just released a theme that supports Dark Mode. It worked on Hyper Canary. https://github.com/ng-hai/hyper-rose-pine-next

https://user-images.githubusercontent.com/19520278/119014347-15795800-b9c2-11eb-9557-8a33086c5413.mov

tbremer commented 3 years ago

I was wanting a simple light/dark mode theme switcher and was inspired by @ng-hai and released a plugin that allows for just that (themes used here are hyper-papercolor & hyper-oceans16).

https://github.com/tbremer/hyper-prefers-color-scheme

https://user-images.githubusercontent.com/2998575/130810231-0292bc59-ae7c-4b8d-a5fc-fb47f8faae65.mp4

omysandbag commented 2 years ago

Hello,

Is it possible to change the theme per tab or window?

This proposes when I work with multiple cluster servers via ssh and the theme would help separate them by color.

Thank you.

vPackets commented 1 year ago

Yep I agree, would be awesome to just type "hyper theme " and voila !

Yb2S3 commented 11 months ago

I highly suggest to have a command to switch the theme. Use u/i is not good idea which seems too naive.

chillyspoon commented 9 months ago

A UI feature for this is really lacking - given that the array is already there in the preferences json indicates that the intention was to support multiple themes with an ability to flip between them but it straight up doesn't work properly so I ended up here looking at a 6 year old feature request when I couldn't figure out from the website themes page how to quickly test drive and compare themes apart from re-installation, and ended up searching for answers on the interweb - please add a menu item for this bit of QoL. It would make an already great terminal even greater!