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

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

Open
ChrisMGeo opened this issue Mar 17, 2020 · 4 comments
Open

Comments

@ChrisMGeo
Copy link

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
Copy link

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

@tjtrabue
Copy link

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

@tjtrabue
Copy link

tjtrabue commented Aug 23, 2020

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
Copy link

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

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

4 participants