[jbosstools-issues] [JBoss JIRA] (JBIDE-16913) Application wizard, Marker wizard: details panes (groups) look bad in MacOS

Andre Dietisheim (JIRA) issues at jboss.org
Thu Jun 12 09:23:40 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-16913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975634#comment-12975634 ] 

Andre Dietisheim edited comment on JBIDE-16913 at 6/12/14 9:23 AM:
-------------------------------------------------------------------

the root problem here is that I use a StyledText to make sure that the summary is wrapping and has vertical scrollbars. StyledText has a white background by default. Trying to override it by setting the background to the same value as its parent fails in MacOSX. Groups have a darker background than the usual containers in MacOSX. Unfortunately the group (and all its children) report the lighter default background color.
I tried with transparency which is not possible in StyledText unless you use a background picture. CLabel centers the text vertically for me, has huge line spacing and wont display scroll bars. I could go for a scrolled composite and listen to resize events, setting the vertical height accordingly. The StyledText solution nevertheless is the one suggested by https://bugs.eclipse.org/bugs/show_bug.cgi?id=180027#c11 and is much simpler (no need for resize-listeners). I'll therefore go for the transparent pixel background image so that the styled text has the right background color in MacOSX.  

Further references to these misbehaviours in wrapping text fields can be found here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194758
http://book.javanb.com/swt-the-standard-widget-toolkit/ch15lev1sec12.html


was (Author: adietish):
the root problem here is that I use a StyledText to make sure that the summary is wrapping and has vertical scrollbars. StyledText has a white background by default. Trying to override it by setting the background to the same value as its parent fails in MacOSX. Groups have a darker background than the usual containers in MacOSX. Unfortunately the group (and all its children) report the lighter default background color.
I tried with transparency which is not possible in StyledText unless you use a background picture. CLabel centers the text vertically for me, has huge line spacing and wont display scroll bars. I could go for a scrolled composite and listen to resize events, setting the vertical height accordingly. The StyledText solution nevertheless is the one suggested by https://bugs.eclipse.org/bugs/show_bug.cgi?id=180027#c11 and is much simpler (no need for resize-listeners). I'll therefore go for the transparent pixel background image so that the styled text has the right background color in MacOSX.  

Further references to these misbehaviours in wrapping text fields can be found here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194758

> Application wizard, Marker wizard: details panes (groups) look bad in MacOS
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-16913
>                 URL: https://issues.jboss.org/browse/JBIDE-16913
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.2.0.Beta1
>            Reporter: Andre Dietisheim
>            Priority: Minor
>              Labels: application_wizard, markers_wizard
>             Fix For: 4.2.0.Beta3
>
>         Attachments: application-cartridge-details.png, corrected-application-template-details.png, corrected-markers-details.png, corrected-source-code-explanation.png, marker-details.png, out-1.ogv, source-code-details.png
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>




--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list