domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

Maintain powerline height when using spaceline-all-the-icons in Spacemacs #114

Open ChrisMGeo opened 4 years ago

ChrisMGeo commented 4 years ago

Hi, I'm new to using Emacs and am starting with Spacemacs. I'm trying to enhance the spacemacs powerline using this plugin, and it does indeed work in making it look better, however, there are some problems I'm facing:

  1. The height of spaceline is changed, and cannot be edited using powerline-scale.
  2. There are some weird lines on the powerline glyphs

beforeslati Before using spaceline-all-the-icons afterslati After using spaceline-all-the-icons

Here is what I did to install this:

  1. Add spaceline-all-the-icons to configuration-layers along with all-the-icons.
  2. Add (require 'spaceline-all-the-icons) to user-config.
  3. Add the following to user-config:
    (use-package spaceline-all-the-icons
    :after spaceline
    :config (spaceline-all-the-icons-theme)
    )

Things I have tried:

  1. Setting powerline-scale
  2. Setting powerline-height

NOTE: I know this part isn't an issue, but I would love to know what theme or config was used for the screenshots in the homepage. slati

AoifeHughes commented 4 years ago

I'm getting this odd shearing too, would love a fix!

tjtrabue commented 3 years ago

I also experience this problem with spaceline. I love spaceline, I'm just at a loss as to how I should fix it.

tjtrabue commented 3 years ago

Hey folks, I stumbled upon something approaching a solution to the height problem. When I looked at spaceline, I noticed that the awkward shearing was only in the powerline separator characters, not in the rest of the modeline. I then started to look for Emacs variables relating to spaceline and its powerline separators, and found this handy variable:

spaceline-all-the-icons-separator-scale

It looks like it defaults to a value of 1.6, and by increasing it to 1.8 my modeline already looks a lot better. It's not perfect, but it is better. Increasing this variable's value beyond 1.8 didn't seem to make any further improvement, it just increased the height of the modeline without improving the height mismatch between the separators and the rest of the modeline.

All this being said, it'd be very nice to know how to get everything to match up perfectly in spaceline.

EDIT: So I figured out what was wrong with my modeline. It was all my fault. I had changed my spaceline-all-the-icons-primary-separator to a unicode diamond character that I've been using in my Bash prompt, which apparently has a non-standard height in Emacs even though the character itself looks very small. Anyways, once I changed that separator back to a monospaced font character, everything went back to normal. Sorry for the confusion.

-Tom

saharsadoghi commented 1 year ago

Hi. I have exactly the same problem and I didn't change anything like @tjtrabue. all things are what came with the package. I hope someone has a fix for this. thanks. image