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

Text not centered and underline chopping off letters. #311

Open
mbrumlow opened this issue Aug 11, 2018 · 5 comments
Open

Text not centered and underline chopping off letters. #311

mbrumlow opened this issue Aug 11, 2018 · 5 comments

Comments

@mbrumlow
Copy link

First off, thanks for making and keeping this repo up to date. It makes my emacs look nice!

That being said I forked this repo a while back to make mostly color changes at first but I realized I had fix -- or at least made a few things better visually non color related. I was wondering if anybody other than me had these issues and if so would be interested in me submitting a PR with what I found to fix them.

  1. The mode-bar never looked right on my system. The text was not really centered in it, and just looked off. I found the root cause for me to be underline and overline. After replacing the overline and underline on the mode bar with a box things looked alot better. I have attached images showing the difference for a inactive bar. Please ignore any color differences you see.

image

  1. The same can be said about headers. Again, the fix was to not use overline and underline and just use a box.

image

In both images the propsized fix is on the left, and current is on the right.
This may just be an issue with my system and my fonts.

Let me know if you would like me to submit a PR otherwise I will just keep my changes in my private repo.

@mbrumlow
Copy link
Author

Only now do I find the (setq x-underline-at-descent-line t) setting..

@mbrumlow
Copy link
Author

Well I don't feel totally horrible because that setting does not fix it well enough. Headers did not draw a continuous line on the package list. So I still think the better fix is simply to use the box.

@thomasf
Copy link
Collaborator

thomasf commented Aug 12, 2018

The box doesnt work well either, I don't remember the details but IIRC one problem is double or maybe triple borders when header and mode lines are stacked which also looks weird.. Sadly Emacs does not provide enough drawing options to really make a great solution here..

@mbrumlow
Copy link
Author

I did find the double/triple border issue, and was hopping the box primitive worked like a css box or something, but nope. My solution was to make the border 1px and the results (on the hte screenshots above) did not look that bad, as the max would be 2px which is the size it would normally be. But that is my setup, so I am not sure how it would actually work with other installs. I could not reproduce a triple border.

@thomasf
Copy link
Collaborator

thomasf commented Aug 13, 2018

It was so many years since I created these colors so that I don't really remember anymore.. Maybe the main problem is that you can't color a box with an individual color for each side, also interaction between active/inactive border might be a problem..

When looking on a situation like this it was problematic to not get lone between all the lines unless the only slightly stronger lines were the ones marking the end of a window buffer, if the same color appears at the top of the modeline it becomes hard to see where the fist and second window begins or ends..

image

A general low contrast look using a low contrast palette also doesn't provide much flexibility.

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

2 participants