-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Stylesheet: Light/Dark themes hijack Spreadsheet font color behavior of cell text #17984
Comments
Hello @reald , TestI test it on :
so same OS but not on XFCE4 ... and after reseting all FreeCAD configuration and selecting light theme , I have white background and black text in spreadsheet. Videosimplescreenrecorder-2024-11-20_00.44.37.mp4HOWEVERThe color button to change the text color do NOT work, but the one for the background does. Interesting ... Requesting additional testCan you, @reald , execute command:
and then run FreeCAD and see if the error persists ? To get back your config, run:
Waiting reporter feedback |
(FYI safe mode: https://wiki.freecad.org/Std_RestartInSafeMode can also be used for temporarily testing without any user configurations) |
I can confirm the behavior @huguesdpdn-aerospace is describing
|
I can confirm @semhustej's observation that changing font color doesn't register in the Spreadsheet.
BUT
I can't reproduce OPs findings |
When I saw @reald screenshot, a thing popped into my mind and I tried this:
I think this is a Stylesheet issue related to UI Theme settings. I think OP's issue is also related to this as I remember in some situations when switching themes, the text in Light Theme stayed white on white background. I was not able to reproduce that behavior though. |
FYI @luzpaz : confirming @semhustej 's idea. Tested under Ubuntu with latest weekly build:
|
Nice teamwork, y'all! |
IIRC, spreadsheet has a bug which makes it impossible to clear the text and background override color. |
As stated the text color is bugged, there was no way to get this to work with stylesheets without bugs. |
Indeed I confused classic with light theme. Using light theme I have the same issue described above, font color cannot be changed. |
I was working on my project and then, pouf, @reald 's problem appears when I just created a Spreadsheet with light theme: So YES, I did had white text on white cells, but I don't know how to reproduce it. |
I can confirm a similar behavior with FreeCAD 1.0 using the Classic Theme on Windows 10 (12th Gen Intel i9-12950HX, NVIDIA RTX A3000). Adjusting the text color to RGB(0, 0, 0) causes the text to disappear unless the cell is selected. Switching to other themes results in slightly different behavior, as described in this issue. |
Is there an existing issue for this?
Problem description
Steps to reproduce:
light themeclassic themeResult: Text color is white on white background
Other text foreground colors can be used normally but black is always shown white.
Full version info
Subproject(s) affected?
None
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: