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

Question: Which face is this? #116

Closed
ig-perez opened this issue Jan 3, 2021 · 2 comments
Closed

Question: Which face is this? #116

ig-perez opened this issue Jan 3, 2021 · 2 comments
Labels

Comments

@ig-perez
Copy link

ig-perez commented Jan 3, 2021

Hi, thanks for making this package! ... I want to reduce the font size of the documentation shown in the right side of the dropdown list, but I'm not able to find the face name. (I'm using list-faces-display) Can you help me please?

image

As you can see I successfully reduced the font size of the dropdown list items by customizing the tolltip face, but it didn't affect the documentation part, so I assume it is a different face..

Thanks!

@dgutov
Copy link
Member

dgutov commented Jan 6, 2021

Hi!

You seem to be using company-box. I think it has its own doc popup: https://github.com/sebastiencs/company-box/blob/master/company-box-doc.el

@ig-perez
Copy link
Author

ig-perez commented Jan 6, 2021

Thanks @dgutov ! It seems the dropdown list of candidates and the documentation box faces of company-box overrides the ones defined in company. I changed the font size like this:

(use-package company-box
  :after company
  :ensure t
  :hook (company-mode . company-box-mode)
  :config
  (setq company-box-show-single-candidate t)
  (setq x-gtk-resize-child-frames 'hide)  ;; This solves the variable scrollbar width. This is probably related to Wayland

  (add-to-list
   'company-box-frame-parameters
   '(font . "JetBrains Mono-11")
   )
  )

I don't like setting the font like that, I guess it is better to set a fixed face and inherit from it, but, I guess it is not possible in that case (not an Lisp expert)

Anyway, everything is as I like now.

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

No branches or pull requests

2 participants