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

Define faces for company #209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

manankarnik
Copy link

Changes:

  • Update faces: company-preview, company-preview-search, company-tooltip-search, company-tooltip-search-selection
  • Remove obsolete faces: company-scrollbar-bg and company-scrollbar-fg
  • Remove TODO

Old:

image

New:

image

@bbatsov
Copy link
Contributor

bbatsov commented Feb 4, 2025

@manankarnik Can you post some actual screenshot with preview search, etc? I'm asking because it seems to me the colors you've picked are not aligned with how the most common library for completion (corfu) is styled and I believe some degree of consistency is important.

@manankarnik
Copy link
Author

@bbatsov Sure. I consulted the style guide while picking a color for company-preview-search (Red for Active Search). Although in hindsight, maybe the background should be red instead of the foreground, strictly following the guide. For company-preview I used the comment face, as it seemed the most fitting. For company-tooltip-search and company-tooltip-search-selection I used styles similar to Swiper search.
image

@bbatsov
Copy link
Contributor

bbatsov commented Feb 5, 2025

This looks reasonable to me, but as I noted it looks somewhat different from the built-in completion's font-locking right now:

image

Although in hindsight, maybe the background should be red instead of the foreground, strictly following the guide.

Yeah, this might be better.

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

Successfully merging this pull request may close these issues.

2 participants