Skip to content

feat: add srcery theme for clap#48

Merged
MindTooth merged 2 commits into
masterfrom
add_clap_theme
Aug 26, 2020
Merged

feat: add srcery theme for clap#48
MindTooth merged 2 commits into
masterfrom
add_clap_theme

Conversation

@MindTooth

Copy link
Copy Markdown
Member

No description provided.

@MindTooth

Copy link
Copy Markdown
Member Author

Screen Shot 2020-08-03 at 12 04 01

@MindTooth MindTooth closed this Aug 3, 2020
@MindTooth MindTooth reopened this Aug 3, 2020
@roosta

roosta commented Aug 4, 2020

Copy link
Copy Markdown
Member

Looking good! always nice with new inclusions

@MindTooth

Copy link
Copy Markdown
Member Author

Still needs to fix the white corners. liuchengxu/vim-clap#380

@MindTooth

Copy link
Copy Markdown
Member Author

Screen Shot 2020-08-08 at 00 28 21

Seems that the theme is a bit broken when switching between transparent and regular version. Now that I know that, I might be able to track down the issue.

One major issue is as you can see in the original image that the two symbols on either side of the search is colored wrongly. The Normal highlight group is the culprit. Disabling transparant mode show the two symbols correctly.

@roosta

roosta commented Aug 8, 2020

Copy link
Copy Markdown
Member

hmm, yea transparent background can cause issues, had similar problems in Emacs. Do you have a fix in mind? I had to fork the plugin that caused the issue to be able to offer a fix, but that is less than ideal i think.

@MindTooth

MindTooth commented Aug 8, 2020 via email

Copy link
Copy Markdown
Member Author

@roosta

roosta commented Aug 8, 2020

Copy link
Copy Markdown
Member

the problem with the plugin i referred to was that it tried to hide certain leading characters in org-mode files by setting the foreground color to whatever is the default background color was for a given color scheme, but in srcery the color was nil or none in vims case which resulted in undesirable results similar to your screenshots.

My fix was to change what the plugin used as a hidden face, and luckily org-mode already had a hidden face that worked fine so I just changed the plugin to use that instead.

For reference here's my fork, but there is also a pull request thats been open since 2017 from what I can tell, author just isn't maintaining the plugin.

Not sure if this is applicable to your issue here, but was similar enough for me to mention it. A possible fix is this case could be to change the hi group for whatever clap uses as a background for that rounded corner, which is probably a link to the Normal group if I were to guess.

@MindTooth

Copy link
Copy Markdown
Member Author
highlight SignColumn ctermbg=NONE guibg=NONE

fixed the problem with the black column. Still needs to fix the white corners on the top bar when transparent is enabled.

Screen Shot 2020-08-19 at 12 44 37

Do you think it's bad setting hightlight settings inside a plugin's color schema? Does not seem to be affecting Vim itself.

@roosta

roosta commented Aug 19, 2020

Copy link
Copy Markdown
Member

which settings do you mean?

@MindTooth

Copy link
Copy Markdown
Member Author

Setting the highlight SignColumn ctermbg=NONE guibg=NONE inside the plugins autoload (autoload/clap/themes/srcery.vim).

@roosta

roosta commented Aug 19, 2020

Copy link
Copy Markdown
Member

If it works locally for that plugin I'm all for it

Comment thread autoload/clap/themes/srcery.vim

@roosta roosta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent solution, had a few thoughts.

Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim
@MindTooth MindTooth self-assigned this Aug 21, 2020
@MindTooth MindTooth force-pushed the add_clap_theme branch 2 times, most recently from fc4a33b to da25a79 Compare August 25, 2020 16:56
@MindTooth MindTooth marked this pull request as ready for review August 25, 2020 16:56
@MindTooth

Copy link
Copy Markdown
Member Author

Done the finishing touches. Please read the comments to either fix grammer and/or spelling mistakes. Just felt for writing stuff. 😜

Hopefully this is now complete enough for merging. Thanks for the comments and help.

@roosta roosta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be overly pedantic, but you did ask 😄 If you don't agree with my suggestions feel free to ignore them.

Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
@MindTooth

Copy link
Copy Markdown
Member Author

I've tackled the grammar/spelling suggestions.

Next is reading the colors from the definitions instead.

Comment thread autoload/clap/themes/srcery.vim Outdated
Comment thread autoload/clap/themes/srcery.vim Outdated
@roosta

roosta commented Aug 26, 2020

Copy link
Copy Markdown
Member

Ok, I'll stop now :) hope you found it useful and not to nitpicky.

@MindTooth

Copy link
Copy Markdown
Member Author

All feedback is good feedback, right. 😉

@roosta

roosta commented Aug 26, 2020

Copy link
Copy Markdown
Member

I guess so :) go ahead and merge whenever you're ready

@MindTooth MindTooth merged commit c284913 into master Aug 26, 2020
@MindTooth MindTooth deleted the add_clap_theme branch August 26, 2020 19:46
@MindTooth

Copy link
Copy Markdown
Member Author

Finally we made it happen. 👍🏻 Thanks for all the comments. Much appreciated.

@roosta

roosta commented Aug 26, 2020

Copy link
Copy Markdown
Member

yay! glad I could help 👍

pull Bot referenced this pull request in tkntjsdw/srcery-vim Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants