Open mnesarco opened 1 week ago
Oh yeah. This feature is a real eyesore. White text on a yellow background is a separate torture.
I still don't know how to make this themable, but at least I can make it text black over yellow background as a temporal workaround (it will work on light or dark modes). Would you accept that change as a PR?
It's a good start!
Light or dark modes? Are you talking about the themes or your linux theme setting?
Light or dark modes? Are you talking about the themes or your linux theme setting?
It does not matter, as selection colors are fixed by code, black over yellow is readable no matter the freecad theme o linux theme. currently the code sets background as yellow no matter which color is text, this workaround sets text color to black so it is always readable over yellow. At least until this can be made customizable by themes.
Wait a minute, apparently I have found a better solution that makes it theme-able. Or at least not hard coded colors.
That last solution would be nice, as stylesheets use accent color 1 as selection color. And general text color is also set to white or black. Having it hardcoded here while every other Qlabel aka textbox just uses these colors is a bit wrong.
Is there an existing issue for this?
Problem description
Editor dialog for List based properties has colors set by c++ code. It makes it impossible to customize based on theme.
Code is here: https://github.com/FreeCAD/FreeCAD/blob/614a14fe87af6ea0a978ee6312b298e4033f1839/src/Gui/Widgets.cpp#L1359
Full version info
Subproject(s) affected?
Core
Anything else?
No response
Code of Conduct