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

Emacs focus gained/lost airline-themes rendering issue, OS X #20

Open
srustamo opened this issue Aug 18, 2016 · 5 comments
Open

Emacs focus gained/lost airline-themes rendering issue, OS X #20

srustamo opened this issue Aug 18, 2016 · 5 comments

Comments

@srustamo
Copy link

When switching away from GUI Emacs to another app, say with Cmd Tab, then returning to it, mode line looks so:

focus_lost

Clicking on anywhere on Emacs screen or hitting any key would re-render mode line properly, so:

focus_gained

GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) of 2015-05-01

@rpinder
Copy link

rpinder commented Nov 8, 2016

I managed to solve this problem by editing airline-solarized-gui-theme.el

by changing lines 27, 28, and 29 to this:

(inactive1-foreground (face-foreground 'fringe)) (inactive1-background "#465459")  ; (face-background 'highlight))
(inactive2-foreground (face-foreground 'fringe)) (inactive2-background "#778182")  ; (face-background 'highlight))
(inactive3-foreground (face-foreground 'fringe)) (inactive3-background "#dbd6c8")) ; (face-background 'highlight)))

This is what it looks like:
image

@srustamo
Copy link
Author

srustamo commented Mar 9, 2017

Thanks, this is helpful. Do you see a slight difference in vertical size between my screenshot and yours? Yours is perhaps a pixel taller, still breaks the visual appeal a bit.

I changed something in my set up and now can't remember what, but now I have this extra height, which I did not have. Incidentally, some airline themes don't have this extra hight, can't figure out what it depends on.

Yak shaving, of course, but wonder what happened.

@AnthonyDiGirolamo
Copy link
Owner

In terms of height differences I've gotten mixed results with the powerline glyphs using different fonts while using emacs on the terminal.

When using GUI emacs powerline draws its own image based glyphs and doesn't require a patched font.

iterm2 on osx lets you set different fonts and sizes for utf8 character drawing and that mostly lets me correct it.

@AnthonyDiGirolamo
Copy link
Owner

Looks like I need to update the solarized themes with the actual hex color values. I'll do that asap

@everwwww
Copy link

ehh.. i find this issue also disappointed me much.
im using Linux, and the airline dark theme.
i hope there can be an option that no need for the airline to be different look whether active or not.

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