Open pedro-augusto-santana opened 3 years ago
You can fix it by changing vertical-adjust of all icons one by one, or you can change it everywhere with all-the-icons-default-adjust
variable. But changing the variable temporarily during calculation of icons is better IMO. So you can use let
and re-declare icons. Here is a block you can copy&paste from my old configuration: (note: icons and colors are selected by me, you can change the icon list part with the default that you can copy from company-box-icons.el)
(setq company-box-icons-alist 'company-box-icons-all-the-icons
company-box-icons-all-the-icons
(let ((all-the-icons-scale-factor 1)
(all-the-icons-default-adjust 0))
`((Unknown . ,(all-the-icons-faicon "question" :face 'all-the-icons-purple)) ;;question-circle is also good
(Text . ,(all-the-icons-faicon "file-text-o" :face 'all-the-icons-green))
(Method . ,(all-the-icons-faicon "cube" :face 'all-the-icons-dcyan))
(Function . ,(all-the-icons-faicon "cube" :face 'all-the-icons-dcyan))
(Constructor . ,(all-the-icons-faicon "cube" :face 'all-the-icons-dcyan))
(Field . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Variable . ,(all-the-icons-faicon "tag" :face 'all-the-icons-dpurple))
(Class . ,(all-the-icons-faicon "cog" :face 'all-the-icons-red))
(Interface . ,(all-the-icons-faicon "cogs" :face 'all-the-icons-red))
(Module . ,(all-the-icons-alltheicon "less" :face 'all-the-icons-red))
(Property . ,(all-the-icons-faicon "wrench" :face 'all-the-icons-red))
(Unit . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Value . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Enum . ,(all-the-icons-faicon "file-text-o" :face 'all-the-icons-red))
(Keyword . ,(all-the-icons-material "format_align_center" :face 'all-the-icons-red))
(Snippet . ,(all-the-icons-material "content_paste" :face 'all-the-icons-red))
(Color . ,(all-the-icons-material "palette" :face 'all-the-icons-red))
(File . ,(all-the-icons-faicon "file" :face 'all-the-icons-red))
(Reference . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Folder . ,(all-the-icons-faicon "folder" :face 'all-the-icons-red))
(EnumMember . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Constant . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(Struct . ,(all-the-icons-faicon "cog" :face 'all-the-icons-red))
(Event . ,(all-the-icons-faicon "bolt" :face 'all-the-icons-red))
(Operator . ,(all-the-icons-faicon "tag" :face 'all-the-icons-red))
(TypeParameter . ,(all-the-icons-faicon "cog" :face 'all-the-icons-red))
(Template . ,(all-the-icons-faicon "bookmark" :face 'all-the-icons-dgreen)))))
When I activate "all-the-icons" for company box, the icons get misaligned
With all-the-icons enabled :
![image](https://user-images.githubusercontent.com/48259258/98023800-31325d80-1de6-11eb-9627-4ef902991867.png)
(setq company-box-icons-alist 'company-box-icons-all-the-icons)
Expected behavior :My font is "Source Code Pro" height 135 if it helps