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
Use dark-theme friendly colors for compiler messages #3013
Conversation
Good idea. Blue is ok, not so fond of the baby poop brown .. sorry gamboge 😀 I use mid grey |
I'm just worried there may be some grey themes out there. So maybe just pick some other color nobody hates...
Yeah, cool, didn't know that. |
I share the concerns that grey foreground color could interfere with
grey themes. And I actually like the proposed "baby poop brown" :D.
Good idea and, IMO, good choice of the new colors.
|
Well the good thing is that users can change any questionable choice the team makes 😄 No colour is perfect for every theme, the important thing is that they have a difference in saturation from the standard light or dark themes, but that of course makes them unsuitable for mid themes. 🤷 |
Yeah, it's not baby poop, it's amber :-) We could change the colors this way (had to try the color highlighting on github myself ;-):
Some comments: The original color I would keep the pink |
Colours 1 and 2 are fine (here). |
I don't care about colors (2) and (4) much myself. As for (1) and (3), these are the ones I found most legible in both light and dark themes from the options I tried. It's quite possible there is some better color so feel free to suggest some. |
Basically the only option for |
I don't disagree that 3 is practical, I just do not like it. And therein is the problem with colours, two of us can't agree, whats going to happen with ALL the Geany users involved 😄 Agree more orange than brown might be better. For 4 I use a similar colour but less saturated, its not pretty, its sort of strawberry milk shake, but visible and obviously reddish for error, but probably not suitable for a default colour. |
@elextr What about this:
(1) is slightly darker - still legible in dark theme and better contrast in light theme |
Or maybe something like |
The new 1 and 2 are still fine (here) but so were your previous ones, your choice. For (3) I found the Mint-Y-Dark theme gtk.css and it uses For (4) Note that as I am already overriding the existing colours, changing the defaults won't bother me, the current ones were unacceptable anyway. I am just trying to be in the place of a user who wants a reasonable experience out of the box and doesn't want to edit geany.css. Maybe in the end we have to merge something and I will send the complaints to you 😈 |
OK, I played with the colors for (3) a bit more - basically, we have 2 choices - either dim the red a little or go towards the orange color. The original color So the colors would be:
The colors are a little on the darker side in dark themes but still usable and I don't want to make the colors much worse for light themes which I think more users still use so I prioritized contrast for light themes with the colors. I guess it's impossible to find perfect colors, you can always find some backgrounds for which it doesn't work. Also, maybe I have a little too good monitor for this - but I tried with an external monitor which is worse than the one on the MacBook and these colors seem to be OK there too. |
For me (1) and (2) are just rearranging the deckchairs on the titanic (unless you had problems with them since I guess your theme is different to Mint-Y-Dark, and you keep changing them each time I said they were fine 😁). This value of (3) The (4) My colour vision is slightly off "normal", but I can still tell red from green well enough to be allowed to fly aeroplanes. There are others who are much worse. But even for me, So that is actually the most important one to change to give a useful out of the box experience. Therefore we havn't actually helped anybody leaving Since (3) and (4) have to be different, you can have your Gamboge PS, it was a genius idea of yours to reduce it to four colours, imagine what it would have been like if we tried to agree the original seven colours. |
Note, I normally use a light theme. According to this test, I have normal color vision.
Based on checking with RGBlind browser plugin, an orange for 3 would be preferable to dark red because shades of red all become pretty much indistinguishable. It's also difficult to get 2, 3, and 4 to all be different for both protanopia and deuteranopia. Based on the proposed uses, it seems more important to distinguish 4 from 2/3 than to distinguish 2 and 3 from each other Making 2 more cyan would help with this: |
@elextr @xiota For me the most important colors are (1) and (3). We agree on (1). For (3) I'm fine both with (2) for me is "whatever", @xiota's
Since we all use different monitors, monitor brightness and different lighting conditions, I wouldn't take such tests too seriously. That said, I took the test and have normal color vision too. |
Actually I reduced it to 2 initially but still, it is 2^48 combinations to fight for ;-). And yeah, I expected a long discussion here. But seriously, in the next release nobody will notice Scintilla 5, updated ctags, meson build, etc., but everybody will see the color changes made here so better not to screw up much. |
Yes, thats why the colours need to be such that they will contrast to both dark and light backgrounds but not generate artefacts, so they are legible even if the colour can't be perceived. Unfortunately mid range themes will likely need adjustment, but thats why we have geany.css, we can never make everybody happy. (1) agreed. (2) happy to shuffle the deckchair to @xiota's (3) @xiota's suggestion of (4)
Correct. (3) and (4) need to be distinguishable since they show in the same compiler message window, but the lines coloured (4) are clickable and those coloured (3) are not. For simple languages like C its pretty obvious which are clickable, but guess which ones are clickable in this single error message from the C++ file I have been using for testing of the compiler colours.
Sadly you are very much correct 😜 |
These colors seem to provide good legibility for both light and dark themes and seem to be better defaults regardless of what theme users use.
6f2123d
to
95c9947
Compare
I've updated the commit with the new colors.
That color is inside |
@elextr Since you have a color-vision deficiency, is it any easier to tell Otherwise, the colors look good to me. |
As a single reference point within a range of colour perceptions I prefer the latter. |
One is better than none, and it's impossible to address everything. At the least, the most likely problems will have been considered, and it will have been deemed reasonable to direct people to the manual (Customizing Geany's appearance using GTK+ CSS). |
Leave this PR for a week in case any others have an objection, then merge before any more changes 😁 |
I'm much less experienced with colors and also cannot properly judge so detailed changes. I'd also vote for merge! |
OK, nobody seemed to be against it here so I merged it (so people who are against it notice it and become vocal ;-). |
When playing with the macOS bundle to look well both in light and dark themes, I noticed that in the dark theme colors in the message window are extremely hard to read with the default colors. While it may be hard to determine whether users use light or dark themes as discussed here
#2644
I think we should rather improve the default colors we use so they look reasonably well both in light and dark environments. I took the colors from the middle of the color spectrum here
https://uxplanet.org/create-an-easily-switchable-light-dark-styles-in-figma-ffee3cd542a7
and the result looks quite good IMO:
I changed just the
geany-compiler-context
andgeany-compiler-message
colors which are the worst dark-theme offenders but we could update all the colors so we use a single color palette. The palette I used is just an example which looks good IMO but we could use other palette if someone has some better idea.What do you think?