-
Notifications
You must be signed in to change notification settings - Fork 152
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
Radio and check buttons text truncated under LUbuntu 24.04LTS (LXQt) #1758
Comments
Tried on the below version of ubuntu and i am seeing the buttons text properly. Environment Eclipse SDK |
Yes, the button text display properly on Ubuntu 24.04 (Gnome), it doesn't display properly on LUbuntu, that's a variant of Ubuntu running LXQt as desktop environment. Reference https://lubuntu.me/ |
Thanks for the details. 👍 |
Is this Wayland specific? I can't reproduce on RHEL 9.2/X11/KDE. |
I don't think so. Based on @deepika-u 's screenshot, it looks fine with a Ubuntu/Wayland combination. And on my side it's also broken, while using X11. I also doubt it's caused by anything in GTK, given that I'm using GTK 3.24.41, the same as in the Ubuntu case. |
It's the theme, just as @maccasoft suspected. The text is truncated when using the "Breeze" application style and fine when going back to the "default" theme. This is the same system using "Breeze" on the left and the "default" theme on the right. |
OK, that could be. We use breeze, but we pimped it to match our UX quality expectations. @trancexpress : could you please atach our pimped breeze style file? May be we should ask KDE devs to apply some/all fixes we made to breeze. |
See stylesheet we use for Eclipse
Patch for breeze GTK theme.
|
Thanks! I'll give it a try later but I think there's already a very high chance the reason you don't see it on your side is because of this section:
|
Thank you all, I found the GTK3 theme settings in LXQt (I'm not very familiar with LXQt or KDE) and indeed seems an issue only with Breeze, all other themes works correctly. Any chance to fix that in code, with layout settings or something ? I'm more concerned about my application rather than Eclipse, my problem is that I can't ask my users to patch the theme or do something "unusual". I don't mind adding a check to apply it only when the theme is Breeze. |
Can't you use the approach described in #1758 (comment) with your own, patched version of the Breeze theme? |
I would rather not have an external file, but if there are no other chances. Looks working, however doesn't seems possible to apply it only for Breeze, the org.eclipse.swt.internal.gtk.cssFile property must be set before instantiating Display, but the org.eclipse.swt.internal.gtk.theme seems to be set after Display instantiation, and I don't see an environment variable with the theme name. Is that correct ? Not sure what happens with other themes, maybe is a non-problem. |
Do you use/have |
Is not set in both my Ubuntu/LUbuntu machines. I did a |
Well, seems that tweaking the GridData settings a bit will fix the text display.
Not sure about the size increase, in my application it works with +8, with that snippet it needs +10, maybe it depends on the actual buttons layout. I guess that when (if) the theme is fixed upstream the display will be a bit ugly due to the negative horizontalIndent, this can be omitted since the increase of the widthHint seems enough. At least this works for me and can be apply to Breeze only. |
Describe the bug
Radio and check buttons text is truncated when running under LUbuntu 24.04LTS (LXQt) or generally KDE (users reports).
To Reproduce
An example with Eclipse SDK itself, open the Find / Replace dialog, all radio / check button labels are truncated.
Expected behavior
Text should not be truncated.
Screenshots
Environment:
Additional OS info (e.g. OS version, Linux Desktop, etc)
LUbuntu 24.04.1LTS
LXQt 1.4.0
Qt 5.15.13
JRE/JDK version
Temurin 21.0.6+7-LTS
Version since
Eclipse 4.34.0
SWT 3.128.0
Workaround (or) Additional context
No workaround, as far as I know.
The text was updated successfully, but these errors were encountered: