Skip to content
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

[Tooltip] Shadow broken on KDE-Plasma #233

Open
weisJ opened this issue Mar 14, 2021 · 13 comments
Open

[Tooltip] Shadow broken on KDE-Plasma #233

weisJ opened this issue Mar 14, 2021 · 13 comments
Labels
bug Something isn't working linux

Comments

@weisJ
Copy link
Owner

weisJ commented Mar 14, 2021

@GraxCode wrote:
image
Manjaro Linux

@weisJ wrote:
@GraxCode
This looks like a slightly different problem to me. Rather than what is happening here, there seems to be a problem with the >painting of the tooltip shadow. This may be caused by some weird alpha compatibility. What desktop environment are you >using and does this issue occur every time?

@GraxCode wrote:
I am on KDE-Plasma 5.20 (Framework 5.77). This always happens the first time hovering on something after starting the GUI. >After the first hover, it doesn't occur anymore.

Originally posted by @weisJ in #172 (comment)

weisJ added a commit that referenced this issue Mar 14, 2021
…with better approach.

Previously we checked whether the window of the tooltip could possibly be painted multiple times and then set a flag to prevent the shadow from being painted more than once. It is a lot easier to simply erase the background with a transparent color. This may also help with #233.
@GraxCode
Copy link

Still has those weird lines
image

@weisJ
Copy link
Owner Author

weisJ commented Mar 26, 2021

Is this only the first time per tooltip or for the first tooltip all together?

@GraxCode
Copy link

GraxCode commented Apr 5, 2021

Pretty sure it was first time for everything. (Can't test due to: java.lang.NoClassDefFoundError: Unable to load class com.github.weisj.darklaf.ui.text.DarkTextUI due to missing dependency com/github/weisj/swingdsl/laf/VisualPaddingProvider)

@weisJ
Copy link
Owner Author

weisJ commented Apr 9, 2021

I think the NoClassDefFoundError should be fixed now. That is an artifact because of a separate library I am currently creating.

Pretty sure it was first time for everything.

That is very strange. It might be related to the configuration of the tooltip window. As pretty much the same window is shared for (almost) all tooltips that could explain why it only happens when the first tooltip is displayed.

@weisJ weisJ added bug Something isn't working linux labels Apr 9, 2021
@GraxCode
Copy link

Still throws that error after cleaning, rebuilding multiple times. Do i have to delete cache or something?

@weisJ
Copy link
Owner Author

weisJ commented Apr 11, 2021

Oh I think this may be related to gradle not supporting transitive dependencies with latest.integration as their version. The problem should go away if you declare
com.github.weisj:swing-dsl-laf-support:latest.integration as a dependency manually.

@GraxCode
Copy link

Doesn't fix the problem.

@GraxCode
Copy link

But I can tell you, instead of the original lines, now a black background is behind the tooltip.

@weisJ
Copy link
Owner Author

weisJ commented Jun 13, 2021

Interesting. I think I'll have to setup a local KDE-Plasma environment to investigate this issue.

@weisJ
Copy link
Owner Author

weisJ commented Jun 23, 2021

I was not able to reproduce this issue on my machine. Are you using X-Server or wayland? Also try to to disable opengl rendering in the system settings. As I am running plasma through wsl I can only test it for X-Server with XRender instead of opengl. This gives me the reason to believe it may be related to either one.

@GraxCode
Copy link

I am using KWin and X11. Issue is still happening.

@weisJ
Copy link
Owner Author

weisJ commented Apr 20, 2022

You can disable the shadow by setting UIManager.put("ToolTip.paintShadow", false). Until I can reproduce the issue this is the best I can offer.

@loerting
Copy link

loerting commented Jun 9, 2023

2023-06-09-121758_1920x1080_scrot This is what tooltips look on Manjaro i3. The shadow is rendered by i3, it doesn't know the real size of the tooltip. Setting ToolTip.paintShadow to false does not change anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

No branches or pull requests

3 participants