TheBB / spaceline

Powerline theme from Spacemacs
GNU General Public License v3.0
535 stars 59 forks source link

Pixelated powerline #117

Open ethanabrooks opened 7 years ago

ethanabrooks commented 7 years ago

For some reason, the field separators in my spaceline are really pixelated. There's some other distortion in there as well. I'm using GNU Emacs 25.1.1 in OSx. Thanks!

screen shot 2016-10-27 at 12 32 32 pm

Here are the settings in my user-config:

(defun dotspacemacs/user-config ()
  "Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
  (setq ns-use-srgb-colorspace nil)
  ;; (setq powerline-default-separator 'bar)

  ;; Load company-coq when opening Coq files
  (add-hook 'coq-mode-hook #'company-coq-mode)

  ;; (load "~/.emacs.d/lisp/PG/generic/proof-site")
  (global-linum-mode) ; Show line numbers by default

  ;; treat underscores like spaces
  (modify-syntax-entry ?_ "w")
  )
TheBB commented 7 years ago

https://github.com/TheBB/spaceline/issues/113

One or more of the following:

ethanabrooks commented 7 years ago

Thanks. So that mostly worked--the trick was (setq powerline-default-separator 'utf-8) However, the separators are still a washed out color: image

One thing (weirdly) that temporarily fixes this is adding the line (setq ns-use-srgb-colorspace nil), reloading my dotfile, and then deleting the line. Nonetheless, the colors are always messed up when I restart spacemacs.

TheBB commented 7 years ago

Well, to make it permanent, you need to put it in your dot file permanently of course :-P

See spacemacs FAQ for more on that.

ethanabrooks commented 7 years ago

Right. I don't think I was very clear in my previous post. Putting it in the dotfile permanently does not solve the problem. These steps solve the problem:

  1. Put the line in the dotfile.
  2. Reload the dotfile (problem persists)
  3. Comment out the line.
  4. Reload the dotfile (screen colors change and problems go away).
TheBB commented 7 years ago

I mean, I'm not here to teach you how to set variables to values. Setting ns-use-srgb-colorspace to nil ought to fix the color difference on Mac. If you're not seeing the colors right check if the variable has the value you expect. If it doesn't you're not setting it correctly.