By default, frames use color 10 from the Terra color palette as a background color, but tab panes use 11 for their active tab color. The full standard palette is shown here:
http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/skin/terra/package-summary.html Though you can use any type of component as a tab in a tab pane, it is common to use a Border as the tab's root component, which, by default, uses a white background and draws a 1-pixel border using color 7. If you would prefer a different color, you can easily change the background of your tab (or any other container) by setting the "backgroundColor" style: <BoxPane styles="{backgroundColor:10}"> ... </BoxPane> This will set the background to color 10 from the palette. You can also use standard hexadecimal notation to choose a custom color; e.g. #ffffff. Other color styles can be set similarly. G On May 11, 2011, at 6:18 AM, Edvin Syse wrote: > OK, attached is a screenshot, and a Maven project with both sources and > binaries. I display one nice LoginFrame, and an ugyl version inside > Window->BoxPane->TabPane. > > I noticed that if I but the form in Window->BoxPane instead of inside the > TabPane, the background is white. > > What do you think? > > -- Edvin > > Den 11.05.2011 11:53, skrev Sandro Martini: >> Hi Edvin, >> can you post a minimal (working) sample (with sources inside a zip), so I >> can look at it faster ? >> And maybe even a screenshot ? :-) >> >> Thank you very much, >> Sandro >> >> >> -- >> View this message in context: >> http://apache-pivot-users.399431.n3.nabble.com/Reuse-colors-from-Frame-with-Form-on-BoxPane-with-Form-tp2925116p2926648.html >> Sent from the Apache Pivot - Users mailing list archive at Nabble.com. > <form-background.png><grayform.zip>
