-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Windows] Paint bleeding when opening popups #172
Comments
@weisJ |
@Ilolka1337 I have still yet to reproduce the issue. As I have already mentioned until then there is nothing I can do really. Have you already tried version |
@weisJ |
Are you building with the newest native binaries? |
@weisJ |
Don't worry you won't need visual studio. I was just making sure you are using the latest binaries. Are you facing the same problems when opening the popup of a LafManager.install();
JPopupMenu.setDefaultLightWeightPopupEnabled(true); What happens if you set your display scale to |
No need for the video. Could you please answer the remaining two questions? |
I did not notice a problem with this
also found no problems |
@weisJ |
It seems to be a combination of the heavy weight popup and the display scaling. Although it’s a bit strange that only the combobox popup is affected. Could you check if using the system laf together with JPopupMenu.setDefaultLightWeightPopupEnabled(false); produce the issue? |
@weisJ |
@weisJ |
What I want you to check is whether using the System LookAndFeel instead of darklaf produces the issue. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JPopupMenu.setDefaultLightWeightPopupEnabled(false); Even though JPopupMenu.setDefaultLightWeightPopupEnabled(true); fixes the issue this isn't the way darklaf is intended to look. This way popups loose their shadow and the edges of the popup may be hard to spot. |
@weisJ |
@weisJ only now it is not fixed using |
Does this mean the problem went away in some intermediate versions?
This honestly reflects more what I am imagining would happen anyway. Good to know the issue Does LafManager.install();
JPopupMenu.setDefaultLightWeightPopupEnabled(true); still solve the issue? |
@weisJ |
By fixed do you mean the issue wasn't present or it could be circumvented by using
Could you provide sample code to reproduce the issue? Preferably for the popup menu case. |
it was fixed in one of the versions but I decided to install each new one so I don't remember the exact version |
Well couldn’t you try out the last few versions and check whether it works? Knowing which version doesn’t have the problem would be a great benefit in solving it. |
@weisJ in 2.4.2-SNAPSHOT JPopupMenu works again and without JPopupMenu the white background pops up again |
@weisJ my program just crashes after I go to one of the tabs where JList is used |
@weisJ |
Please create a separate issue with the necessary information. |
@weisJ |
You can do the following thing:
To get a grasp on this issue its necessary to know what parameters cause it. |
@weisJ |
does not solve the problem |
@weisJ |
I am not asking you to permanently change your screen resolution but to find out the threshold where the issue starts to appear and tell that to me. |
Which versions of java did you test it on? |
Java tested versions: |
From the readme
Please try a java version >= Java 9 |
but then I will have problems with other applications, they will appear hazy as if they were washed out with soap |
@weisJ |
This is absolutely not relevant to the issue. Again I am not asking you to stick with this setup but to tell be what setup works for you.
I do not intent to support High dpi scaling on Java versions older than 9. What you are experiencing is probably a misconfigured java installation, where the DPI scaling mechanism for |
I could see the correct operation of the program in Java 8 only when changing the screen parameters from 4k to 1920x1080 |
@weisJ |
Just to clarify the situation:
How does this tab look for you?
Well as I have said before I won't do any compatibility changes regarding high dpi issues for Java 8. The best I can do is disable the custom decorations if Java 8 is used. |
This is also caused by incorrect scaling and should be fixed by using Java 9. Though you can manually increase the font size with the following code: ThemeSettings.getInstance().setFontSizeRule(FonSizeRule.fromPreset(FontSizePreset.Large)); // Or some other preset. |
@weisJ |
I will still try to fix the issue for you but I can’t promise that this is something thats in may hand. The fact that it only happens with Java 8 indicates it may be a JDK specific bug. You will still have to tell me the scaling/resolution thresholds where the issue appears. Also please answer my question regarding the compatibility settings if your Java installation (both 8 and 9). |
@weisJ |
Did you follow these steps?
|
Yes |
@GraxCode |
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. |
@weisJ
I recorded a video so you can look at this problem
https://mega.nz/file/PuAhBYjK#MGC-euIl_ty86a9DsmDzpQBCXz0pcc-dOOmi0p1Uiz4
Originally posted by @Ilolka1337 in #162 (comment)
The text was updated successfully, but these errors were encountered: