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
Overlay fix for default windows style and other light theme's. #12573
Overlay fix for default windows style and other light theme's. #12573
Conversation
I am cleaning up my previous PR because of the white space removal. I now make a single commit with the white space stuff and one with Kadet fixes. Co-Authored-By: Kacper Donat <kacper@kadet.net>
screwed it up
Does it fix #11340? |
So when changing the background to a light one, it could be still hard to read the light text when transparency is enabled? |
@pierreporte I have no idea, it does clean it up a lot. You can test it by applying the added stylesheet eb04a7b |
I did not touch any preference. I simply exposed "transparent" property for the overlay dock widget so it could be targeted via |
@Rexbas you've currently made some fixed to mouse over/click through with the overlay panels active, do you know a fix? |
So this fix works pretty great, and should fix the windows overlay style issues. |
I would like to take a look, but what exactly is the problem, can someone show a video and/or reproduction steps? If I understand correctly this problem happens on Windows machines. Does it also happen on Linux? I prefer not having to setup development on Windows. |
Here you see the issue. With this PR the black text turns white when overlay transparency is active. These are windows default settings, so it is a big issue. |
@MisterMakerNL, I don´t understand style sheets. When I change something in src/Gui/Stylesheets nothing happens even if I remove files. How do you change something and see the result? |
You can use the added src/Gui/Stylesheets/overlay/Default_Light.qss |
@MisterMakerNL, try with this c06bb1b from my branch (https://github.com/Rexbas/FreeCAD/tree/overlay-transparent-property) |
Also if it works then we might be able to drop commit 0e5e755 |
edit seems like I missed the white space, seems to work now!! |
This fixes the mouse over issue! Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>
I added more overlay sheets, but I am having huge lag-spikes not sure if this is caused by this PR. |
Did it, tested, works fine! |
Works great! Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>
The reason there are 4 stylesheets is that it also sets the title bar icons, and we have light and dark icons. Might be a good idea too try to move these icons to the normal stylesheet, then we only have 2 overlay stylesheets, one for a light background and one for a dark background. I think in the future it would be feasible to set the overlay stylesheet automatically based on the color of the background. Although difficult here would be that we have a gradient and if you add a light and dark color then it will break the code. |
These additions changes the Tree text color based on the stylesheet with a transparency state.
#12424
This is how it looks with transparency on
This is how it looks with transparency off.
Current build if you use black text in the tree, you would get this with transparency on:
This is the reason we cannot do light theme's on dark background currently. This is also the reason I think overlay stylesheets are changing the background of normal widgets. So the text can stay white, in both states.
@kadet1090 Did all the difficult code stuff, I did the stylesheet.
Still not working correctly as the mouse over doesn't trigger the color change.