Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 494724

Summary: [GTK][HiDPI] Native widgets/Checkboxes are not scaled correctly on HiDPI screen
Product: [Eclipse Project] Platform Reporter: Peter Severin <peter>
Component: SWTAssignee: 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:
Description Flags
Small checkboxes at x2 scale settings
none
Eclipse 4.7 on GTK3
none
screenshot with GTK2
none
Screenshot GTK2 none

Description Peter Severin CLA 2016-05-27 05:16:48 EDT
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
Comment 1 Peter Severin CLA 2016-06-01 02:19:46 EDT
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.
Comment 2 Peter Severin CLA 2017-04-26 04:51:31 EDT
I've tested Eclipse 4.7M6 and this problem is still present, which makes HiDPI support on Linux almost unusable.
Comment 3 Peter Severin CLA 2017-10-13 22:59:30 EDT
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.
Comment 4 Lakshmi P Shanmugam CLA 2018-01-05 05:55:19 EST
Sravan, please investigate this.
Comment 5 Sravan Kumar Lakkimsetti CLA 2018-01-15 01:47:38 EST
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.
Comment 6 Sravan Kumar Lakkimsetti CLA 2018-03-05 04:41:39 EST
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
Comment 7 Sravan Kumar Lakkimsetti CLA 2018-05-07 02:43:59 EDT
Fixed as part of bug 530932
Comment 8 Sravan Kumar Lakkimsetti CLA 2018-05-09 05:07:14 EDT
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
Comment 9 Peter Severin CLA 2018-05-16 03:38:54 EDT
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.
Comment 10 Sravan Kumar Lakkimsetti CLA 2018-05-16 04:39:21 EDT
Created attachment 274059 [details]
screenshot with GTK2

I am getting this screen shot. I don't see any small icons for projecct explorer
Comment 11 Peter Severin CLA 2018-05-16 05:11:29 EDT
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