Bug 563410

Summary: Git Staging View shows black stripes when icons are larger
Product: [Eclipse Project] Platform Reporter: Christian Miethling <mollehoo>
Component: SWTAssignee: Project Inbox <3p-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: sdamrong
Version: 4.15Keywords: ui, usability
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564097
Whiteboard:
Attachments:
Description Flags
eclipse acting funny with icon size 140 in task submit
none
eclipse running normal with icon size 100 in task submit none

Description Christian Miethling CLA 2020-05-20 14:13:17 EDT
-- Configuration Details --
Product: Eclipse IDE 4.15.0.20200313-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.18.300.v20200305-0155
Versioning Plugin:
 org.eclipse.platform 4.15.0.v20200305-0155
 
 
 Hello, 
 with the properties
 -Dswt.autoScale=150
-Dswt.enable.autoScale=true
-Dswt.autoScale.method=nearest
I successfully enlarged all the icons in eclipse.

Now when I want to open the Git Staging View everything turns black and I can't control much anymore.

Notes:
-I have installed DevStyle Darkest Dark theme, when I disable it EVERY view in eclipse acts funny this way.
- when I set -Dswt.autoScale=102, so very small, there is only little black at the bottom >> it increases with the autoScale value
- when I set  -Dswt.autoScale=100 everything is fine
- The same behaviour is also in this open tab ("new task" or however you call it)

Thanks for looking into this
Comment 1 Christian Miethling CLA 2020-05-20 14:18:30 EDT
Created attachment 282963 [details]
eclipse acting funny with icon size 140 in task submit
Comment 2 Christian Miethling CLA 2020-05-20 14:19:06 EDT
Created attachment 282964 [details]
eclipse running normal with icon size 100 in task submit
Comment 3 Soraphol (Paul) Damrongpiriyapong CLA 2020-06-02 17:38:48 EDT
Hello, I was able to also reproduce the bug. With those flags, the UI goes insane for some reason. Is your goal for using those flags to just increase the size of the icons? Asking because from investigating, those flags more or less adjust the zoom of the entire UI.
Comment 4 Christian Miethling CLA 2020-06-20 02:32:50 EDT
Yeah it's only for the icons to be larger. Even though they should fit into the UI and not overlap with the UI and other icons if possible. If you know some other flags than these please let me know.
Comment 5 Soraphol (Paul) Damrongpiriyapong CLA 2020-06-26 14:27:42 EDT
Hello, just an update on the fixes. Currently there is a gerrit change waiting for review that will fix the icon scaling issues without the use of the -DswtAutoScale flag.

For now another fix has been placed in the integration build that fixes the entire UI scaling issues (black stripes) at higher scaling factors.

https://download.eclipse.org/eclipse/downloads/drops4/I20200625-1800/

If you would like to run Eclipse on fractional scaling please use the system settings to set this. This is so that SWT can recognize the change in scale. 

You may need to enable fractional scaling using this command (may require restart to have an effect):
dconf write /org/gnome/mutter/experimental-features "['scale-monitor-framebuffer']"
Comment 6 Christian Miethling CLA 2020-07-04 08:48:16 EDT
Hello, cheers bro for the update. I'm using Xubuntu 20.04 and don't think fractional scaling is available (at least not in an easy way...). Also the download link is already out of date, could be because I look into my email not too frequently :D 
It sounds very good that you guys are looking into it!