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

How to configure border width and colour? #199

Open
SreenivasVRao opened this issue Jul 16, 2023 · 2 comments
Open

How to configure border width and colour? #199

SreenivasVRao opened this issue Jul 16, 2023 · 2 comments

Comments

@SreenivasVRao
Copy link

I'd like a white border on both the completion suggestions and the documentation.
How do I do that?

I think I need to modify company-box-frame-parameters / company-box-doc-frame-parameters...

image

@djs42012
Copy link

djs42012 commented Jul 19, 2023

Would like to know the same!
I've tried:

(after! company-box
  (setq company-box-frame-parameters
        '((border-width . 1)
          (border-color . "#ffffff")
          (left . -1)
          (no-accept-focus . t)
          (no-focus-on-map . t)
          (min-width . 0)
          (width . 0)
          (min-height . 0)
          (height . 0)
          (internal-border-width . 3)
          (horizontal-scroll-bars)
          (left-fringe . 0)
          (right-fringe . 0)
          (menu-bar-lines . 0)
          (tool-bar-lines . 0)
          (line-spacing . 0)
          (undecorated . nil)
          (top . -1)
          (visibility)
          (mouse-wheel-frame)
          (no-other-frame . t)
          (cursor-type)
          (drag-internal-border . t)
          (left-fringe . 0)
          (right-fringe . 0)
          (tab-bar-lines . 0)
          (no-special-glyphs . t)))
          (left . -1)
          (border-color . "#ffffff")
          (no-accept-focus . t)
          (no-focus-on-map . t)
          (min-width . 0)
          (width . 0)
          (min-height . 0)
          (height . 0)
          (internal-border-width . 3)
          (horizontal-scroll-bars)
          (left-fringe . 0)
          (right-fringe . 0)
          (menu-bar-lines . 0)
          (tool-bar-lines . 0)
          (line-spacing . 0)
          (undecorated . nil)
          (top . -1)
          (visibility)
          (mouse-wheel-frame)
          (no-other-frame . t)
          (cursor-type)
          (drag-internal-border . t)
          (left-fringe . 0)
          (right-fringe . 0)
          (tab-bar-lines . 0)
          (no-special-glyphs . t))))

but no luck

@SPFabGerman
Copy link

I have the following code, that I think solves your issue:

(set-face-attribute 'child-frame-border nil :background "#ffffff")
(setq company-box-doc-frame-parameters '((left-fringe . 10) (right-fringe . 10)))

The important part is the first line, which changes the color of the border.
The second line basically just readds the fringes to the documentation window, so that the text isn't literally hugging the border, which makes it look a bit nicer.

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

No branches or pull requests

3 participants