-
Notifications
You must be signed in to change notification settings - Fork 164
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
fix default-theme to correctly highlight focused attachments #1687
Conversation
In what sense is it broken? The commit you mention is from #1640, @meeuw what was the motivation for the change from green to gray at this point specifically? I checked on xterm's default theme and it might be a little hard to read there: @paumr can you please also check your change with the |
@lucc thanks for looking into this. Your terminal probably only supports 16 colors, in which case everything works as expected. As you can see here: https://alot.readthedocs.io/en/latest/configuration/theming.html#colour-attributes
means #1640 kept the 16c highlighted-background at light green, but set the 256c background to "dark gray" (the same color as the non-highlighted setting). I assume this was a copy and paste error. If you want to reproduce this issue open alot in a 256color terminal. Then you won't see any attachment highlighting. |
Ok now I understand what you say about #1640 braking the theme (having a typo) at this point. My point about it being hard to read after your proposed change is the contrast between the fg and bg of the selected attachement: I consider that light gray to be hard to read on the light green. Do you mind changing the fg or bg a bit so that it is easier to read the text? |
Ok, as requested I changed the |
I don't remember changing green to gray, my main rationale was to change the colors to make them both usable for black on white as well as white on black terminals. I actually think it's a typo (from me) |
@meeuw can I ask you to review this? Otherwise I would merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I did some quick testing and it's readable on both black-on-white as white-on-black terminals.
Thanks for fixing!
e90da9b broke the highlighting of focused_attachments.
This PR resets the faulty value in question to its prior color.