-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom color palette #9540
Comments
Heyo! Can you take a couple of screenshots to show which cases you're running into palette issues? In most cases Definitely we expect there to be some level of customisation to the colour schemes. |
Ahha! This is rendered markdown which is controlled by https://github.com/charmbracelet/glamour and Some of them should be baked in (https://github.com/charmbracelet/glamour/tree/master/styles/gallery) but I know there is a possibility to create custom ones as well and I believe |
You might be able to use or draw inspiration from the theme here: charmbracelet/glamour#168 I put it in
Which gave me: Looks like it could be a good match or starting point? |
That's styled here to use cli/pkg/cmd/pr/shared/comments.go Line 111 in 25ee93d
I believe that's one of the base 16 ANSI colours that can be overridden. For example in iTerm2: I'm not too familiar with your theming setup or what gruvbox does with cyan. |
Cyan is ANSI number 6, right? It is configured to #689d6a in my terminal. But it doesn't render as that. It stays the github-theme cyan |
That does look like it's applying your colour scheming correctly. Not sure what to make of that 🤔 Let's have a closer look at the actual colour codes. You can force all the ANSI raw strings to file by doing:
Then opening up
So on my end it looks like we're seeing:
Worth having a look to see whether yours is the same? Also I thought you needed to use the |
Funny, it looks correct: And no, you didn't make up Interesting observation: this doesn't happen everytime. It only happens on this PR with |
That's very strange. I can't reproduce that at all and I can't see any possible variation in the codepath cli/pkg/cmd/pr/shared/comments.go Lines 109 to 113 in 2bd3c22
Could you take two screenshots, one of each PR, that includes both the command and the styled text? |
It's not consistent. I had to run it (right side) a few times with different font sizes. As soon as it had to use the pager - the color broke. Hah, and now I can reproduce: it only shows the wrong color in my pager. Now I will try different pagers to see if it happens across pagers or if it is Edit: correct behavior with |
Ahha! I can confirm that First without paging: Then with paging: I'm afraid that I don't know anything about lucc/nvimpager#101 could be related but I think this seems out of scope for me at this point. |
Hmm, I feel like the issue addresses a different problem. I have colors, but some of them are incorrect. Namely the colors from Edit: thank you so much for all the help debugging :) |
Could be! In my case the Note that the labels are using 256-bit colour to match the Web UI so I wouldn't expect them to be restyled. Good luck figuring it out! |
I suspect it relates to https://github.com/lucc/nvimpager/blob/da3bbf02fac10fa3f1d5df501f856c2959329ebf/lua/nvimpager/pager.lua#L53 but now I really need to stop being nerd sniped byeeeeee 😬 |
Describe the feature or problem you’d like to solve
I use gruvbox for everything.
gh
uses a different color scheme. Gruvbox feels very warm, your default theme is more on the cool side. To me, this is a big issue - is the color palette configurable? Or do I have to fork this repo to get what I want?Proposed solution
Additional configuration possible via the config file.
Additional context
A community-driven selection of themes can put hype to a project :)
The text was updated successfully, but these errors were encountered: