mode-line: fix color space for spaceline separators on MacOS

This commit is contained in:
syl20bnr 2018-01-28 22:40:58 -05:00
parent 3eb6ae20ea
commit 665c09b684
3 changed files with 2 additions and 22 deletions

View File

@ -167,28 +167,6 @@ After completing the Spacemacs [install process](#install), then it's also
recommended to add the [osx layer][] to your [dotfile][]. Installation
instructions are available in the documentation for the [osx layer][].
If the powerline separators on the spaceline have a different (less saturated)
color than the rest of the line, then you can add the following snippet to the
`dotspacemacs/user-config` section in your `~/.spacemacs` file:
```elisp
(setq ns-use-srgb-colorspace nil)
```
Keep in mind that this is not an ideal solution as it affects all colours in
Emacs. Another option is to change the powerline separators. For example to
`alternate` or `bar`, they diminish the color difference. Or change them to
`utf-8`, which makes them go away completely, without having to change colour
space. In order to change the powerline separators, put the following snippet in
the `dotspacemacs/user-config` section of your `~/.spacemacs` file:
```eslip
(setq powerline-default-separator 'utf-8)
```
For more information about powerline separators, please refer to the
[powerline documentation][]
### Windows
You can download good quality builds from the [emacs-w64 project][emacs-for-windows].
It is recommended to install the most recent [stable build][emacs-for-windows-stable].

View File

@ -21,6 +21,7 @@ globally defines common OSX keybindings.
** Features:
- ~⌘~ is set to ~hyper~ and ~⌥~ is set to ~meta~
- In =dired= use =gls= instead of =ls=
- Fix separator colors of Spaceline mode-line
* Philosophy
While this layer enables common OSX bindings, it does not implement OSX

View File

@ -71,6 +71,7 @@
'(spacemacs custom))
(spacemacs/mode-line-separator))
'wave)
powerline-image-apple-rgb (spacemacs/system-is-mac)
powerline-scale (or (spacemacs/mode-line-separator-scale) 1.5)
powerline-height (spacemacs/compute-mode-line-height))
(spacemacs|do-after-display-system-init