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 fg-color of dark themes #501
Conversation
@monsta @bl0ckeduser |
No regressions for me with the foregoing patch |
As i said this fixes all 3 issues for me. |
Ok good, can be merged in both master and 1.12 then 😄 |
merged 1ff3468 |
Well there's a regression after all... When using custom background color (you can set it via Emblems & Background dialog), font color isn't changed. E.g. if I select dark bg color and font of my GTK+ theme is black, it will remain black (and thus unreadable). Tested in GTK+2 build. @bl0ckeduser: can anything be done about that? |
It is a quite complex issue. It seems eel_background_is_set and eel_background_is_dark routines are not functioning properly and returning bogus values on repeated calls. It might be a bug in mate-desktop, or in both. It would need some pretty detailed debugging to track down |
I am investigating some more. When the bug happens, for some reason update_label_color() fails to be called whereas in previous instances it is called succesfully. Before the call, eel_background_is_dark returns false which leads to incorrect theming while after the call it returns true. |
Hmm... but I can reproduce it every time. No matter which background color I choose, the font stays black. |
@bl0ckeduser |
I don't think, sorry
|
@alexandervdm: maybe you know what could cause the problem? See my description above. And if we'll revert 1ff3468 (which fixes the issue), we'll get #81 back, which isn't nice as well. |
Ok, now fixed with #526. |
fixes #81