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

Minor UI bugs in MacBook Pro with retina display #7917

Closed
lijingjiang opened this issue Dec 6, 2016 · 8 comments
Closed

Minor UI bugs in MacBook Pro with retina display #7917

lijingjiang opened this issue Dec 6, 2016 · 8 comments
Labels
- Forum - macOS stale marked as a stale issue/pr (usually by a bot)

Comments

@lijingjiang
Copy link

Hey guys. I also have some issues about the UI. I have two Macs. One of them is old with non-retina screen, the other one is relatively new with retina display.

However, I have experienced some display issues in my retina mac. For example, the flycheck mode, when I put my cursor at the error position, the prompt window looks like this. Firstly it is not in the correct position, then the window is very small.

4

But in my old Mac, everything works normally just like the screen capture in readme

3

Also, for the neotree, in my old Mac, it looks like this

screen shot 2016-12-05 at 10 54 46 pm

However, in my new Mac, the cursor is hollow when I placed it on the folder symbol

hehe

Both my old Mac and new Mac are running the OSX 10.12 system.

And the power line in the following picture looks pretty good, can the contributor share the configuration for this. In my retina display, if I am using the default power-line theme, it looks serrated.

pretty

Thank you very much.

@CarlQLange
Copy link
Contributor

Ah, cool! I hadn't thought of what might cause that first issue, with the tooltips.

What version of emacs are you using? Did you install it with brew? I no longer see the tooltips issue, having installed emacs with:

brew install --HEAD emacs --srgb --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick --with-spacemacs-icon

Unfortunately I can't help more than that, I can't remember when I last saw it or how I'd previously installed emacs.

The spaceline separators are listed here: https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org#powerline-separators

I think the one you're looking for is 'contour', so in your .spacemacs config function, add the line

  (setq powerline-default-separator 'contour)

@lijingjiang
Copy link
Author

Hi @CarlQLange,

Thank you for your reply. My Emacs was installed using the same way instructed by readme The version of Emacs in both machines are 25.1.1.

$ brew tap d12frosted/emacs-plus
$ brew install emacs-plus
$ brew linkapps emacs-plus

I have tried your suggested way to install the Emacs, but seems like it may have some compatibility issue with spacemacs. I even cannot start it.

image

The error message is:

Symbol's value as variable is void: default major mode.

And, yes, the contour separator is what I am looking for. But my question is, how to config it to make it looks more smooth. Currently it looks like this (on my retina-mac)

image

My configuration for powerline is default, the scale is 1.1

   dotspacemacs-default-font '("Fira Code"
                               :size 15
                               :weight normal
                               :width normal
                               :powerline-scale 1.1)

Thank you for your help!

@CarlQLange
Copy link
Contributor

So the powerline thing, there's a longstanding issue with Emacs on Mac OS X and colour spaces. You can read about it here: milkypostman/powerline#54 and here: #4955

In short, you can add this to your user-config in .spacemacs and it'll workaround the issue

  (setq ns-use-srgb-colorspace nil)

Unfortunately, it breaks the overall colour space, so it kind of depends on whether you prefer a baby or a clean bathtub. :)

Personally I set my separator to

  (setq powerline-default-separator 'utf-8)

and just deal with the kind of ugly arrow separators :)


The issue you're facing with the install not working looks like you need to delete the elpa directory in ~/.emacs.d and let it redownload the packages, but no promises :)

@lijingjiang
Copy link
Author

lijingjiang commented Dec 6, 2016

@CarlQLange

Thank you for the update! The setting (setq powerline-default-separator 'utf-8) looks pretty nice! Highly recommend every Mac user (with retina display especially) try it :)

Also I have removed the elpa and reinstalled the Emacs using your instruction, but still have the same error.

FYI the newly installed version is 26, but when I using brew install emacs-plus for installation, the corresponding version is 25.1.1

Anyway, thank you very much!

@shishirsharma
Copy link

Bump! Any solutions for this with latest version ?

@anuragm
Copy link

anuragm commented Sep 8, 2017

The power line color issue has been resolved recently by a commit I made here. You need to set powerline-image-apple-rgb to t in order to enable the workaround.

If someone has a newer Macbook with DCI-P3 color space, I will appreciate if you let me know if the workaround is working for you or not.

@CarlQLange
Copy link
Contributor

I've also added a PR changing the docs to this fix: #9550

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Forum - macOS stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

5 participants