Fix powerline separators and make them configurable #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #18. Powerline dividers now render at the right height on emacs cocoa, they are still aliased but that can be another PR.
This also allows the powerline separator to be configured by the user using the
powerline-default-separator
variable that is built into powerline.The problem was that to fix another bug powerline stopped calculating the height of the bar and used the font height for the separators. I think one of the fancy spacemacs things made the bar higher than the font height, causing the separators to be the wrong height. This was fixed by setting the
powerline-height
variable to a reasonable value.The other changes are unrelated to the bug, they just make the theme use the
powerline-default-separator
variable so that it can be changed by the user. My editor (currently ST3, but that will change soon) also trimmed all trailing whitespace in the file, not a bad thing.Edit: I also fixed the aliasing a bit. See my comment for an updated screenshot.
Screenshot:
(taken after height fix but before aliasing fix.)