| Summary: | [GTK][HiDPI] Native widgets/Checkboxes are not scaled correctly on HiDPI screen | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Peter Severin <peter> | ||||||||||
| Component: | SWT | Assignee: | Sravan Kumar Lakkimsetti <sravankumarl> | ||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | daniel_megert, gautier.desaintmartinlacaze, jan.public, lshanmug, lufimtse, niraj.modi, platform-swt-inbox, sravankumarl, wim.jongman | ||||||||||
| Version: | 4.6 | ||||||||||||
| Target Milestone: | 4.8 M7 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=506371 | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | 530932 | ||||||||||||
| Bug Blocks: | 517055 | ||||||||||||
| Attachments: |
|
||||||||||||
I could reproduce the same issue with Ubuntu 16.04 with scale factor of 2. There are other parts that do not scale correctly, like expand/collapse buttons in trees, radio boxes, various system dialogs (file, directory, print, ...). The easiest way to check for this problems is to install SWT Examples bundles and run Controls example. I've tested Eclipse 4.7M6 and this problem is still present, which makes HiDPI support on Linux almost unusable. Created attachment 271000 [details]
Eclipse 4.7 on GTK3
Here's another screenshot of what Eclipse 4.7 currently looks like on Linux.
Note small font in Problems View and in Preferences dialog.
This is using GTK3. With GTK2 things look a bit better.
Sravan, please investigate this. GTK apis have evolved after we implemented HiDPI. We need to identify the changes required to fix this issue. We are currently planning to investigate during Photon M6. After the investigation We will be able to comment on this. I tried to disable device scaling in cairo drawing this has resulted in no scaling at all. Even though we are supplying scaled up coordinates. This still need some more investigation moving to M7 Fixed as part of bug 530932 verified Eclipse SDK Version: Photon (4.8) Build id: I20180508-2000 OS: Linux, v.4.16.6-302.fc28.x86_64, x86_64 / gtk 3.22.30, WebKit 2.20.1 I'm testing the latest I20180515-2000 build on HiDPI display with x2 scaling. I see a regression when running with GTK2 as controls, menu icons and tree icons are not scaled correctly and remain small. There is also an issue with recently fixed getDPI method in Bug 518717 which might be related to this. Created attachment 274059 [details]
screenshot with GTK2
I am getting this screen shot. I don't see any small icons for projecct explorer
Created attachment 274061 [details]
Screenshot GTK2
This is what I see running Debian stable. GTK version is 2.24.31.
org.eclipse.swt.internal.deviceZoom=200
org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Adwaita
org.eclipse.swt.internal.gtk.version=2.24.31
|
Created attachment 262053 [details] Small checkboxes at x2 scale settings Tested with Eclipse Neon I20160525-2000 on a Debian system with GTK3 v3.20.4