-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Sketch color doesn’t change with theme #13980
Comments
@MisterMakerNL FYI |
Can't wait till this is fixed! |
I agree that this is annoying. |
Alternatively we choose 2 colors to refer to default. So if you set the point color to [0,1,2] then instead of a almost-black, we detect that its this particular color, and then we change it to default color 1 from preference. We could have several default colors by using near-black values : This has the advantage of being more flexible than previous solution : each color can be default or not. And also it does not need us to add more properties. It would not be backward compatible with existing documents. But I don't think any solution could be... |
Couldn't we add 2 colors to sketch, one is the version that is taken from the settings. |
@wwmayer can you please weigh in what is your prefered solution for this? |
This thing stops me from doing light backgrounds... |
This ensures that color of sketch gets updated with user changing preferences and after loading files. PointColor and LineColor should be hidden, marked as transient and removed from existing documents. This should still work for older versions of FreeCAD as it will load defaults. Fixes: FreeCAD#13980
This commit introduces AutoColor property for sketches that when enabled ensures that sketches are updated with the color of user preference. It ensures that sketches from different users will be still visible on different themes. To ensure backward compatiblity migration strategy is to compute default value for this property based on the color. If it is non-white (the default value in FreeCAD) we assume that the change was inentional and that it should be kept as-is turning automatic coloring off. In other cases it is enabled by default. Fixes: FreeCAD#13980
Is there an existing issue for this?
Problem description
When a sketch is created and viewed in the 3D view from outside sketch mode, it has a color defined by the theme: white with classic and OpenDark, black with OpenLight. When the theme is changed, the color stays the same: a sketch created with the classic theme will appear white if the theme is changed to OpenLight, making it barely visible against the light grey background.
The color of sketch shouldn’t be named directly, similar to word processor that have an “automatic” color, that can change depending on other parameters. FreeCAD should do the same, with an automatic sketch color, which value is set by the theme and not hard-coded in the theme. The color becomes a sketch parameter once the user changes it directly. They could even select back the automatic color if it was already changed.
Full version info
Subproject(s) affected?
Sketcher
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: