Skip to content
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

WinBar highlight does not follow color scheme #237

Open
fedorenchik opened this issue Mar 30, 2021 · 12 comments
Open

WinBar highlight does not follow color scheme #237

fedorenchik opened this issue Mar 30, 2021 · 12 comments

Comments

@fedorenchik
Copy link

What happened

WinBar hightight colors left as defaults.

What I expected to happen

WinBar highlight groups ToolbarLine and ToolbarButton set to colors matching dracula theme.

Screenshot

Screenshot from 2021-03-30 12-38-16

Machine Info

  • Vim type: gvim
  • Vim version: 8.2.2601
  • OS: Manjaro Gnome
  • Terminal/Terminal Emulator/VTE: Kitty
  • TERM environment variable: xterm-kitty
@benknoble
Copy link
Member

Is this from a plugin? Where do the groups come from?

We can certainly add support for a plugin (?) or for something that's part of default vim; it's also possible to customize those colors yourself.

@fedorenchik
Copy link
Author

This is part of default vim. WinBar can be added as:

nnoremenu WinBar.test :test

and works like menu.

@benknoble
Copy link
Member

Apologies for the delay. I haven't given this much thought in terms of what colors are appropriate. Suggestions are welcome; perhaps @dsifford knows something about how we should style UI elements?

If you're keen on experimenting, :help dracula-customization makes a good starting point

@dsifford
Copy link
Member

dsifford commented Apr 5, 2021

I'll be honest and say I've never heard of winbar or any of the nnoremenu commands so I'm not even sure where to start.

I tried entering @fedorenchik's example in a blank editor and nothing seemed to happen.

@benknoble
Copy link
Member

@dsifford I think in non-gui vim you have to :runtime menu.vim, and then use :emenu <MenuName>.<item> to access the menu. In gvim, you have to not have M in guioptions. @fedorenchik are you using the toolbar also? On MacVim, the menu appears in the system's menu bar by default.

@fedorenchik
Copy link
Author

Here's recording of how WinBars work:
Peek 2021-04-05 22-35

@fedorenchik
Copy link
Author

I use Linux GTK3 GUI, Vim 8.2.2601

@fedorenchik
Copy link
Author

This also works in terminal, as long as terminal supports mouse.

@fedorenchik
Copy link
Author

This is demonstration of WinBar in terminal vim clicking split button with mouse:
Peek 2021-04-05 22-42

@benknoble
Copy link
Member

As I said I don't have much thought on this, nor the time to dig in to it. If we don't have a suggestion for a generic UI element, than I would recommend @fedorenchik try some things and come back with a suggestion.

@fedorenchik
Copy link
Author

@benknoble Sorry, I don't understand what you mean by 'generic UI element'? WinBar is similar to button toolbar, but can be attached to each window (and use "text" UI inside vim windows).

And what things you mean you recommend to try? If you mean real use case, there's vimspector (modern debugger for vim): https://github.com/puremourning/vimspector

Or you want me to send PR (should be pretty easy (add ToolbarLine and ToolbarButton highlights)) ?

@benknoble
Copy link
Member

It's a button /shrug we have all kinds of spec for programming- and markdown- specific syntax items, but the UI stuff (line numbers, etc.) is a bit more ad-hoc.

Yes, I'm suggesting you try some different things from the colorscheme's palette for those buttons and send a PR (w/ screenshot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants