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
FEM: hardcoded colors in solver job #13562
Comments
The function responsible is this one: FreeCAD/src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py Lines 189 to 195 in 700868f
How to expose colors? Any examples in other WBs? These functions may cause the same problem:
|
@obelisk79 what do you need to style color / how to use text color from the preferences? |
Just use the same variables as the Python Editor/report view should do the trick. Plus it would make things generally more consistent across the application. |
The CfdOF Wb already has this implemented, see https://github.com/jaheyns/CfdOF/blob/master/CfdOF/Solve/TaskPanelCfdSolverControl.py#L81 and https://github.com/jaheyns/CfdOF/blob/master/CfdOF/CfdTools.py#L370 I personally added bold to the time just to make it stand out when I'm benchmarking a model on different pieces of kit. |
@FEA-eng would you like to try the following changes https://github.com/FreeCAD/FreeCAD/compare/main...Syres916:FreeCAD:FEM_TaskPanel_Colours?expand in order to give a very similar output to the CfdOF screenshot above? |
@Syres916 I tested it, looks good. |
Is there an existing issue for this?
Problem description
Originally posted here: obelisk79/OpenTheme#38
The text is not legible with dark themes and the color is not exposed so a theme could style it / change color.
@FEA-eng FYI
Full version info
Subproject(s) affected?
FEM
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: