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

Bug 108228

Summary: [Preferences] Scrollbars under GTK+ show ugly gray padding
Product: [Eclipse Project] Platform Reporter: Mario Scalas <mario.scalas>
Component: UIAssignee: Duong Nguyen <duongn>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: billy.biggs, douglas.pollock, Tod_Creasey
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Gray padding on scrollbars
none
Show the gray padding when only the horizontal scrollbar is shown none

Description Mario Scalas CLA 2005-08-28 17:39:38 EDT
It seems that SWT shows the GTK scrollbars with some gray padding: when  
scollbars are painted over a white background (as in the preferences dialog)  
the final effect is ugly. This has been verified with several GTK themes  
(ClearLooks 0.6.2, RH's BlueCurve and default GTK theme). In windows it seems  
there is no such side effect.  
 
With minor visibility the effect seems to be present in the Package Explorer 
view too, where it is minor in size and often shadowed by the thin colored 
contour eclipse draws around the currently focused view (shown in green in the 
attached screenshot). In the preferences dialog there is all white around and 
the gray padding is pretty obvious (shown in red). 
 
All screenshots comes from the ClearLooks attempt and while using Eclipse 3.1 
platform with GTK+ 2.6.7.
Comment 1 Mario Scalas CLA 2005-08-28 17:40:53 EDT
Created attachment 26574 [details]
Gray padding on scrollbars
Comment 2 Mario Scalas CLA 2005-08-28 17:48:20 EDT
Created attachment 26575 [details]
Show the gray padding when only the horizontal scrollbar is shown
Comment 3 Billy Biggs CLA 2005-08-29 15:30:14 EDT
A GtkScrolledWindow puts 3 pixels of padding beside the scrollbars it creates:

http://developer.gnome.org/doc/API/2.0/gtk/GtkScrolledWindow.html#GtkScrolledWindow--scrollbar-spacing

This value is read-only and not something an application can set.  You will
notice this padding near the scrollbars of trees and tables in all GTK+
applications.

I think the layout of the preferences dialog is at fault here, they should not
have padding around this tree, or maybe use the BORDER style in some way. 
Moving to UI.
Comment 4 Tod Creasey CLA 2007-06-13 15:54:24 EDT
There are currently no plans to work on this however I would be happy to look over a contribution