Community
Participate
Working Groups
When using Section along with title styles (TITLE_BAR or SHORT_TITLE_BAR) and setting section background to any color but the background color of the parent composite, the section background "leaks through" above the titlebar borders, making the whole titlebar thing look rather bad. This way it is impossible to create titled sections that have different background color than the default background color of the whole form (and still look good).
Created attachment 21709 [details] screenshot of section background color bleeding Attaching a screenshot - see how the background color of the section bleeds around the title bar border? (Yeah - I picked these colors to stand out more) Ideally I'd expect the area behind the titlebar to have the same background as its parent. Actually - this screenshot reveals another Section widget weirdnesses: Section title has its own background color (Bug 81961)
This is a known limitation. Section title is currently using an SWT Label widget which is opaque. Until this is fixed, you are advised to use light, airy gradients that minimise this problem (as in the default colors).
No - You misunderstand me... I filed this bug report to display a problem with section background color (red on the screenshot) leaking above and beyond the section content. the way it is implemented now - I can not usa a section that has a different background than it's parent, since the background color of this section fills the entire gectangle the Section widget occupies... I would at least expect that areas above the title bar and on the sides (margin width) would be painted with the same background color as parents. On a related note - there is a weird 4 pixel gap between section margin and it's client Control - why would this be necessary?
Created attachment 104495 [details] Section with background color in 3.4 RC3 I tried this in 3.4 RC3 and found that the background color lines up with the title bar now.
Closing as WORKSFORME.